Arduino Homeseer sketch

All about Arduino, Jeenode and other Clones (hardware & Software)

Moderator: Mdamen

Arduino Homeseer sketch

Postby esschenk » Sun Nov 28, 2010 10:52 pm

Hello,

When i try to upload the Jeenode sketch i get the following error

c:\arduino-0021\libraries\rf12\rf12sio.cpp:5:19: error: ports.h: no such file or directory
in file included from c:\arduino-0021\libraries\rf12\rf12sio.cpp:7;
c:\arduino-0021\libraries\rf12\rf12sio.h:8: error:'millitimer'does not name a type

I have placed a rf12 lib in the correct directory

Any ideas

Ed
User avatar
esschenk
Member
Member
 
Posts: 345
Joined: February 2008
Location: Netherlands

Re: Arduino Homeseer sketch

Postby Mdamen » Sun Nov 28, 2010 11:35 pm

You are missing the ports library..
Download it here and also place it in the libraries directory of Arduino...
http://cafe.jeelabs.net/sw/library_-_ports/#index4h1
Mdamen
Forum Moderator
Forum Moderator
 
Posts: 409
Joined: November 2008
Location: Netherlands

Re: Arduino Homeseer sketch

Postby Digit » Sun Nov 28, 2010 11:43 pm

You can also find it in your copy of the USB stick that was available during the workshop;
\Domotica Workshop\Software\Libs en sketches\Ports.zip
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3111
Joined: March 2006
Location: Netherlands

Re: Arduino Homeseer sketch

Postby esschenk » Mon Nov 29, 2010 9:29 am

Thanks

i will try that tonight


Ed
User avatar
esschenk
Member
Member
 
Posts: 345
Joined: February 2008
Location: Netherlands

Re: Arduino Homeseer sketch

Postby esschenk » Tue Nov 30, 2010 9:26 am

Hello,

Thanks guys it works

ed
User avatar
esschenk
Member
Member
 
Posts: 345
Joined: February 2008
Location: Netherlands

Re: Arduino Homeseer sketch

Postby esschenk » Wed Dec 01, 2010 12:33 am

Hello,

Yes great my arduino works with Homeseer

I have 2 questions

One:
what is doing the led2 I can switch him on and off
With the control button : with on the led is going off and with off the led is going on.

Two
But when the Pir is seeing movement I see the led status within homeseer changing
But the led is staging in it’s on or off status
Is this normal

Thanks

Ed
User avatar
esschenk
Member
Member
 
Posts: 345
Joined: February 2008
Location: Netherlands

Re: Arduino Homeseer sketch

Postby Digit » Wed Dec 01, 2010 1:03 am

Before I can answer your questions, what sketch did you use?
The fact that you have a LED2 device, makes me think you used the JeeNode.pde from the JeeNode for Homeseer zip file, am i right?
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3111
Joined: March 2006
Location: Netherlands

Re: Arduino Homeseer sketch

Postby esschenk » Wed Dec 01, 2010 9:10 am

Hello Digit,

Yes thats right i use the sketch from the workshop

Ed
User avatar
esschenk
Member
Member
 
Posts: 345
Joined: February 2008
Location: Netherlands

Re: Arduino Homeseer sketch

Postby Digit » Wed Dec 01, 2010 10:05 am

That's not the right one; check the handout, all the files that need to be used are described there including the exact path.
Taking this offline now to speed up things a bit more, we'll report the results when all questions are resolved.
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3111
Joined: March 2006
Location: Netherlands

Re: Arduino Homeseer sketch

Postby Digit » Thu Dec 02, 2010 12:27 am

AFAIK, esschenk is the first who has Homeseer integration working!
After uploading the right sketch, everything works as it should.

FYI: do not use anything from the JeeNode for Homeseer zip file; this was only added for reference.
Use the files from the \Domotica Workshop\Software\HomeSeer\Workshop\ directory.
These files contain some modifications which make life easier, like storing some configuration values in a INI file and some other issues.

This weekend I'll post additional information about the scripts and sketches from the HomeSeer integration part of the workshop.
With this information you should be able to change how it all works (if you haven't already done that :?: )
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3111
Joined: March 2006
Location: Netherlands

Re: Arduino Homeseer sketch

Postby esschenk » Sun Dec 05, 2010 10:05 pm

Hello,

Is it possible to display the temp from the Jeenode like 20,4
Instead off 204
Or must I do this with a virtual device within Homeseer.

Ed
User avatar
esschenk
Member
Member
 
Posts: 345
Joined: February 2008
Location: Netherlands

Re: Arduino Homeseer sketch

Postby Digit » Sun Dec 05, 2010 10:18 pm

Ed,

You could do it in the script jeeNode.txt, above line 239.
There you could do some "post processing" on the values before they are submitted to HomeSeer.
For example, you could do this based on the Device name, as in divide the value by 10 when the Device name = "Temp".

Another option is the one you suggested: a virtual device.
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3111
Joined: March 2006
Location: Netherlands

Re: Arduino Homeseer sketch

Postby esschenk » Wed Jun 22, 2011 9:07 pm

Hello,

I do not want all device’s to be created by the sketch.
I like only 2, say light and temp
I have been looking what to do, but i can’t find not the right rules
Is there anybody know how to do this

Thanks in advanced

Ed
User avatar
esschenk
Member
Member
 
Posts: 345
Joined: February 2008
Location: Netherlands

Re: Arduino Homeseer sketch

Postby Digit » Wed Jun 22, 2011 11:06 pm

You'll have to change it in the sketch; comment out those lines that define the devices you don't want/need.
I think you'll also have to adjust some other things related to the resulting number of devices in the modified sketch.
It has been a while, I haven't looked at the sketch right now, so if I forget something please forgive me :)
If you don't succeed, PM me the sketch and I'll have a look.
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3111
Joined: March 2006
Location: Netherlands


Return to Arduino, Jeenode and other Arduino clones Forum

Who is online

Users browsing this forum: No registered users and 2 guests

cron