Here over the years have used 1-wire sensors (well since the 1990's).
Last HS2 configuration utilized 3 Temp-08's and 1 Temp-05 plus one USB 9097 with all of the cabling done with cat5x home run to the basement. It was done in a star fashion as suggested way long time ago. That changed over the years here. Along with said 1-wire networks here utilized xAP.
Fast forward to now...and using extra RPi's. Some of the Homeseer 3 work today is being done by other computers (RPi) which forward data to the main mothership.
Trying to keep it simple here went with one RPi in the attic using a USB Maxim 9097U and connecting it to a few temperature and temperature humidity sensors in the second floor. This 1-wire hub is using Digitemp which write a text file every few minutes which is read by a HS3 script which converts the data to HS3 variables. (thank you Rob). Roots of said script are a simple read of the CPU temperature of the RPi.
A new endeavor as of yesterday. I built a new RPi 1-wire temperature - sensor hub with a collection of old AAG, Midon and Hobby boards combo sensors and temperature sensors. I have a few extra RPi's around and many 1-wire sensors.
Step 1
Installed OWFS and Digitemp to have a look see at the sensors connected to a USB 9097U. Here using 22/4 or 22/2 alarm cable instead of catXX.
(apt-get install owfs and apt-get install digitemp then adjust configuration files).
Mini-Network read (from workbench).
Stretch175:/opt/digitemp# ./digitemp.sh
10A04713000800D9 : DS1820/DS18S20/DS1920 Temperature Sensor
10AE56130008007B : DS1820/DS18S20/DS1920 Temperature Sensor
10A147E900080084 : DS1820/DS18S20/DS1920 Temperature Sensor
10F197E101080043 : DS1820/DS18S20/DS1920 Temperature Sensor
104B5613000800B9 : DS1820/DS18S20/DS1920 Temperature Sensor
265CD3F1000000DC : DS2438 Temperature, A/D Battery Monitor
2606157500000054 : DS2438 Temperature, A/D Battery Monitor
ROM #0 : 10A04713000800D9
ROM #1 : 10AE56130008007B
ROM #2 : 10A147E900080084
ROM #3 : 10F197E101080043
ROM #4 : 104B5613000800B9
ROM #5 : 265CD3F1000000DC
ROM #6 : 2606157500000054
Mar 09 07:00:48 Sensor 0 C: 21.19 F: 70.14
Mar 09 07:00:49 Sensor 1 C: 21.31 F: 70.36
Mar 09 07:00:50 Sensor 2 C: 21.00 F: 69.80
Mar 09 07:00:51 Sensor 3 C: 21.25 F: 70.25
Mar 09 07:00:53 Sensor 4 C: 20.81 F: 69.46
Mar 09 07:00:53 Sensor 5 C: 21.00 F: 69.80 H: 45%
Mar 09 07:00:54 Sensor 6 C: 20.69 F: 69.24 H: 48%
Step 2 here installed Node Red. It's a one script install
bash <(curl -sL hxxps://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)
Node-RED is a flow-based development tool developed originally by IBM for wiring together hardware devices, APIs and online services as part of the Internet of Things.
Node-RED provides a browser-based flow editor, which can be used to create JavaScript functions. Elements of applications can be saved or shared for re-use. The runtime is built on Node.js. The flows created in Node-RED are stored using JSON. Since version 0.14 MQTT nodes can make properly configured TLS connections.
In 2016, IBM contributed Node-RED as an open source JS Foundation project.
node-red -v
9 Mar 07:03:32 - [info]
Welcome to Node-RED
===================
9 Mar 07:03:32 - [info] Node-RED version: v0.18.4
9 Mar 07:03:32 - [info] Node.js version: v8.10.0
9 Mar 07:03:32 - [info] Linux 4.9.59-v7+ arm LE
9 Mar 07:03:34 - [info] Loading palette nodes
9 Mar 07:03:39 - [info] Settings file : /root/.node-red/settings.js
9 Mar 07:03:39 - [info] User directory : /root/.node-red
9 Mar 07:03:39 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
9 Mar 07:03:39 - [info] Flows file : /root/.node-red/flows_ICS-Stretch175.json
9 Mar 07:03:39 - [info] Creating new flow file
Stretch175:/opt/digitemp# npm -v
5.6.0
Step-3
Next is learning the node-red graphical design interface. What is interesting is that you can start with node-red importing a flow as I have done here.
[ATTACH]67344[/ATTACH]
Last HS2 configuration utilized 3 Temp-08's and 1 Temp-05 plus one USB 9097 with all of the cabling done with cat5x home run to the basement. It was done in a star fashion as suggested way long time ago. That changed over the years here. Along with said 1-wire networks here utilized xAP.
Fast forward to now...and using extra RPi's. Some of the Homeseer 3 work today is being done by other computers (RPi) which forward data to the main mothership.
Trying to keep it simple here went with one RPi in the attic using a USB Maxim 9097U and connecting it to a few temperature and temperature humidity sensors in the second floor. This 1-wire hub is using Digitemp which write a text file every few minutes which is read by a HS3 script which converts the data to HS3 variables. (thank you Rob). Roots of said script are a simple read of the CPU temperature of the RPi.
A new endeavor as of yesterday. I built a new RPi 1-wire temperature - sensor hub with a collection of old AAG, Midon and Hobby boards combo sensors and temperature sensors. I have a few extra RPi's around and many 1-wire sensors.
Step 1
Installed OWFS and Digitemp to have a look see at the sensors connected to a USB 9097U. Here using 22/4 or 22/2 alarm cable instead of catXX.
(apt-get install owfs and apt-get install digitemp then adjust configuration files).
Mini-Network read (from workbench).
Stretch175:/opt/digitemp# ./digitemp.sh
10A04713000800D9 : DS1820/DS18S20/DS1920 Temperature Sensor
10AE56130008007B : DS1820/DS18S20/DS1920 Temperature Sensor
10A147E900080084 : DS1820/DS18S20/DS1920 Temperature Sensor
10F197E101080043 : DS1820/DS18S20/DS1920 Temperature Sensor
104B5613000800B9 : DS1820/DS18S20/DS1920 Temperature Sensor
265CD3F1000000DC : DS2438 Temperature, A/D Battery Monitor
2606157500000054 : DS2438 Temperature, A/D Battery Monitor
ROM #0 : 10A04713000800D9
ROM #1 : 10AE56130008007B
ROM #2 : 10A147E900080084
ROM #3 : 10F197E101080043
ROM #4 : 104B5613000800B9
ROM #5 : 265CD3F1000000DC
ROM #6 : 2606157500000054
Mar 09 07:00:48 Sensor 0 C: 21.19 F: 70.14
Mar 09 07:00:49 Sensor 1 C: 21.31 F: 70.36
Mar 09 07:00:50 Sensor 2 C: 21.00 F: 69.80
Mar 09 07:00:51 Sensor 3 C: 21.25 F: 70.25
Mar 09 07:00:53 Sensor 4 C: 20.81 F: 69.46
Mar 09 07:00:53 Sensor 5 C: 21.00 F: 69.80 H: 45%
Mar 09 07:00:54 Sensor 6 C: 20.69 F: 69.24 H: 48%
Step 2 here installed Node Red. It's a one script install
bash <(curl -sL hxxps://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)
Node-RED is a flow-based development tool developed originally by IBM for wiring together hardware devices, APIs and online services as part of the Internet of Things.
Node-RED provides a browser-based flow editor, which can be used to create JavaScript functions. Elements of applications can be saved or shared for re-use. The runtime is built on Node.js. The flows created in Node-RED are stored using JSON. Since version 0.14 MQTT nodes can make properly configured TLS connections.
In 2016, IBM contributed Node-RED as an open source JS Foundation project.
node-red -v
9 Mar 07:03:32 - [info]
Welcome to Node-RED
===================
9 Mar 07:03:32 - [info] Node-RED version: v0.18.4
9 Mar 07:03:32 - [info] Node.js version: v8.10.0
9 Mar 07:03:32 - [info] Linux 4.9.59-v7+ arm LE
9 Mar 07:03:34 - [info] Loading palette nodes
9 Mar 07:03:39 - [info] Settings file : /root/.node-red/settings.js
9 Mar 07:03:39 - [info] User directory : /root/.node-red
9 Mar 07:03:39 - [warn] Projects disabled : set editorTheme.projects.enabled=true to enable
9 Mar 07:03:39 - [info] Flows file : /root/.node-red/flows_ICS-Stretch175.json
9 Mar 07:03:39 - [info] Creating new flow file
Stretch175:/opt/digitemp# npm -v
5.6.0
Step-3
Next is learning the node-red graphical design interface. What is interesting is that you can start with node-red importing a flow as I have done here.
[ATTACH]67344[/ATTACH]
Comment