Hi all
I have published the code of my vivarium controller using Arduino Yun, DS18B20 and 8 way relay controller. This chunk is the Arduino Sketch, I am working on preparing the linux/OpenWRT side for publishing too.
Unlike the previous version which had a local LCD and keypad, this one uses REST API via YUN bridge to effect control and read sensor values. It logs to collectd on the OpenWRT side, which forwards to an ASUS Chromebox I have flashed with Ubuntu. There the collectd server publishes the data to the Graphite dashboard application.
The temperatures are set like :
http://192.168.0.xx/arduino/b/1/1/1/27.22,27.00,27.22 (Target, lo threshold, hi threshold)
OK
The data is read like:
http://192.168.0.xx/arduino/s/
SENS,C,F
2864244c05000021,28.19,82.74
2862170606000046,27.00,80.60
2857c24d0500005c,27.19,80.94
SKT,ON,CTRL,SENS,LC,TC,HC,TI
0,0,0,0000000000000000,0.0,0.0,0.0,0
1,0,1,2857c24d0500005c,27.02,27.22,27.22,40
2,0,1,2862170606000046,27.02,27.22,27.22,40
3,0,1,2862170606000046,27.02,27.22,27.22,40
4,1,1,2864244c05000021,27.28,27.78,27.78,40
5,0,2,0000000000000000,0.0,0.0,0.0,0
6,1,1,2864244c05000021,27.28,27.78,27.78,40
7,0,2,0000000000000000,0.0,0.0,0.0,0