Arduino Homeseer sketch

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

Moderator: Mdamen

Post Reply
User avatar
esschenk
Member
Member
Posts: 426
Joined: Sun Feb 17, 2008 10:34 pm
Location: Netherlands
Contact:

Arduino Homeseer sketch

Post by esschenk »

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
Mdamen
Forum Moderator
Forum Moderator
Posts: 390
Joined: Sat Nov 22, 2008 6:58 pm
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by Mdamen »

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
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by Digit »

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
esschenk
Member
Member
Posts: 426
Joined: Sun Feb 17, 2008 10:34 pm
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by esschenk »

Thanks

i will try that tonight


Ed
User avatar
esschenk
Member
Member
Posts: 426
Joined: Sun Feb 17, 2008 10:34 pm
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by esschenk »

Hello,

Thanks guys it works

ed
User avatar
esschenk
Member
Member
Posts: 426
Joined: Sun Feb 17, 2008 10:34 pm
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by esschenk »

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
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by Digit »

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
esschenk
Member
Member
Posts: 426
Joined: Sun Feb 17, 2008 10:34 pm
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by esschenk »

Hello Digit,

Yes thats right i use the sketch from the workshop

Ed
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by Digit »

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.
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by Digit »

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
esschenk
Member
Member
Posts: 426
Joined: Sun Feb 17, 2008 10:34 pm
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by esschenk »

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
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by Digit »

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
esschenk
Member
Member
Posts: 426
Joined: Sun Feb 17, 2008 10:34 pm
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by esschenk »

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
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Re: Arduino Homeseer sketch

Post by Digit »

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.
Post Reply

Return to “Raspberry, Arduino, Cubietruck and other clones Forum”