Jeenode Roomboards with Webserver

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

Moderator: Mdamen

Post Reply
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Jeenode Roomboards with Webserver

Post by Bwired »

Hi,

I have now running 3 Roomboards (JeeNode with Roomboard on top) for measering Light, Temp, Motion and Humidity.
The boards are sending the data every 2 minutes to the Jeelabs Webserver (Ether Card, Carrierboard with Jeenode).
I can poll the webserver via TCP-IP and read the data of all the sensors at once.
The sensors are sending the data to the webserver, and the Webserver is showing me the last 10 received transmissions.
Now the Webserver gives me back a HTML page but I want to change that to XML.

The Roomboards are running on the latest Roomnode Sketch (with improved battery life (thanks JC), lets see how long :) )
projects.jeelabs.net/projects/cafe/repo ... omNode.pde

The Jeelabs Webserver is running on Sketch:
code.jeelabs.org/libraries/EtherCard/ex ... erNode.pde

Translated data comming from the Jeelabs webserver
Data comming from the jeelabs webserver
Data comming from the jeelabs webserver
jeelabswebserver.jpg (44.1 KiB) Viewed 6498 times
Roomboard data displayed in Bwired Home control system
Roomnode data displayed in Bwired Home control system
Roomnode data displayed in Bwired Home control system
bwiredhcs.jpg (41.81 KiB) Viewed 6498 times
The Webserver is a Jeelabs Ethercard, Carrierboard and a Jeenode.
Webserver ethercard
Webserver ethercard
webserver.jpg (36.39 KiB) Viewed 6498 times
Roomboard for sending Temp, Humidity, Light and Motion to the webserver
Roomboard
Roomboard
roomboard.jpg (42.97 KiB) Viewed 6486 times
http://www.bwired.nl Online Home, Domotica, Home Automation. Weblog. http://blog.bwired.nl
User avatar
JohnieBraaf
Starting Member
Starting Member
Posts: 32
Joined: Sat Sep 18, 2010 3:21 am
Location: Amsterdam
Contact:

Re: Jeenode Roomboards with Webserver

Post by JohnieBraaf »

Can I ask why you chose the JeeNode webserver, instead of a JeeLink plugged in directly to the main server?
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Re: Jeenode Roomboards with Webserver

Post by Bwired »

Simply, i hate usb and the software drivers for it.
Also usb devices on the server are not optimal, i have allmost all my devices on IP and talking directly IP as well.
Furthermore I can place the webserver where I want and have multiple connections to the device.
User avatar
JohnieBraaf
Starting Member
Starting Member
Posts: 32
Joined: Sat Sep 18, 2010 3:21 am
Location: Amsterdam
Contact:

Re: Jeenode Roomboards with Webserver

Post by JohnieBraaf »

I can imagine some of the aversion against usb, as I recently had a heavy struggle simply installing the PLCBUS interface on a COM port The FTDI drivers installad flawlesly btw.
IP communication does allow for more strategically placed receiver nodes around the house for sure.
Anyway, taking a short look at your code, could it be a solution to implement a second okHeader type, with an XML metatype instead of HTML, or omit the HTML header if its not needed...
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Re: Jeenode Roomboards with Webserver

Post by Bwired »

If you have a example for me that would be great!
I still need to dive in on this and figur it out :roll:
Akatar
Senior Member
Senior Member
Posts: 1135
Joined: Thu Nov 22, 2007 12:25 am
Location: the netherlands

Re: Jeenode Roomboards with Webserver

Post by Akatar »

pieter,

the software or sketches that you use, are that the standard sketches from the jeenode website or did you change them?
do you need a special version of the sketch for the jeenode because that jeenode must work as master for the other jeenodes?
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Re: Jeenode Roomboards with Webserver

Post by Bwired »

I used the standard sketch which is in my above posting. Just change your IP number in there and you should be set to go.
static byte myip[4] = { 192,168,178,203 };
Post Reply

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