Installing an MQTT broker on my test RPi2 / Wheezy running in the attic. (well it was already installed anyhow).
Base Homeseer 3 configuration is running on two machines.
1 - HS3 Pro V.420 is running on an Intel Haswell i-Series motherboard with 16Gb of RAM Ubuntu 16.04 64 bit (Plus Oracle VB's for some Windows HS3 stuff).
2 - HS3 Lite V.420 is running on a Pine64 2Gb machine Ubuntu 16.04 64bit
This POE connected RPi2 is multifunctioning today serving as a 1-wire temperature hub, ZNet like device and NOAA SDR capture device running Wheezy (still).
Switched here to using the Pine64 running Ubuntu 16.04 64 bit for HS3 and reusing the old RPi's for tinker toys these days.
Will be upgrading the Pine64 to a Rock64 (4Gb RAM and 32Gb eMMC drive) - hopefully an RTC will be integrated in to the next Rock64 build.
The Pine64 / HS3 lite box / mcsMQTT plugin with be initially utilized as a broker to the RPi - DigiTemp 1-wire sensor hub.
Every minute or so DigiTemp writes a CSV file: (Note too the box is currently running OWFS).
Feb 27 18:00:03 Sensor 0 C: 18.25 F: 64.85
Feb 27 18:00:04 Sensor 1 C: 18.78 F: 65.81 H: 46%
Feb 27 18:00:05 Sensor 2 C: 18.81 F: 65.86 H: 52%
Feb 27 18:00:05 Sensor 3 C: 19.41 F: 66.93 H: 52%
Feb 27 18:00:06 Sensor 4 C: 19.06 F: 66.31 H: 51%
Feb 27 18:00:06 Sensor 5 #0 36
Feb 27 18:00:06 Sensor 5 #1 36
Sensors 5 is a dual counter.
[ATTACH]67065[/ATTACH]
Currently for Homeseer 3 the data file sits in the /HomeSeer/data directory and is read by a VB script one variable at a time every 5 minutes.
The script is very hands on as I am using the 1-wire mac addresses one at a time for the reads.
Here it will be a curl or perl or python script sending out the 1-wire stuff.
Looking at the RPi in the attic and MQTT was already all installed...tested fine:
~# mosquitto_pub -d -t pete_mqtt -m "hello pete"
Client mosqpub|6933-ICS-ZNet sending CONNECT
Client mosqpub|6933-ICS-ZNet received CONNACK
Client mosqpub|6933-ICS-ZNet sending PUBLISH (d0, q0, r0, m1, 'pete_mqtt', ... (10 bytes))
Client mosqpub|6933-ICS-ZNet sending DISCONNECT
~# mosquitto_sub -d -t pete_mqtt
Client mosqsub|6928-ICS-ZNet sending CONNECT
Client mosqsub|6928-ICS-ZNet received CONNACK
Client mosqsub|6928-ICS-ZNet sending SUBSCRIBE (Mid: 1, Topic: pete_mqtt, QoS: 0)
Client mosqsub|6928-ICS-ZNet received SUBACK
Subscribed (mid: 1): 0
Client mosqsub|6928-ICS-ZNet sending PINGREQ
Client mosqsub|6928-ICS-ZNet received PINGRESP
Client mosqsub|6928-ICS-ZNet received PUBLISH (d0, q0, r0, m0, 'pete_mqtt', ... (10 bytes))
hello pete
Client mosqsub|6928-ICS-ZNet sending PINGREQ
Client mosqsub|6928-ICS-ZNet received PINGRESP
Client mosqsub|6928-ICS-ZNet sending PINGREQ
Client mosqsub|6928-ICS-ZNet received PINGRESP
Client mosqsub|6928-ICS-ZNet sending PINGREQ
Client mosqsub|6928-ICS-ZNet received PINGRESP
@Michael,
Am I approaching this OK for testing?
Been lately maxi testing using the RPi's I have. I also have Arduino's to test but waiting for a bit on these.
Base Homeseer 3 configuration is running on two machines.
1 - HS3 Pro V.420 is running on an Intel Haswell i-Series motherboard with 16Gb of RAM Ubuntu 16.04 64 bit (Plus Oracle VB's for some Windows HS3 stuff).
2 - HS3 Lite V.420 is running on a Pine64 2Gb machine Ubuntu 16.04 64bit
This POE connected RPi2 is multifunctioning today serving as a 1-wire temperature hub, ZNet like device and NOAA SDR capture device running Wheezy (still).
Switched here to using the Pine64 running Ubuntu 16.04 64 bit for HS3 and reusing the old RPi's for tinker toys these days.
Will be upgrading the Pine64 to a Rock64 (4Gb RAM and 32Gb eMMC drive) - hopefully an RTC will be integrated in to the next Rock64 build.
The Pine64 / HS3 lite box / mcsMQTT plugin with be initially utilized as a broker to the RPi - DigiTemp 1-wire sensor hub.
Every minute or so DigiTemp writes a CSV file: (Note too the box is currently running OWFS).
Feb 27 18:00:03 Sensor 0 C: 18.25 F: 64.85
Feb 27 18:00:04 Sensor 1 C: 18.78 F: 65.81 H: 46%
Feb 27 18:00:05 Sensor 2 C: 18.81 F: 65.86 H: 52%
Feb 27 18:00:05 Sensor 3 C: 19.41 F: 66.93 H: 52%
Feb 27 18:00:06 Sensor 4 C: 19.06 F: 66.31 H: 51%
Feb 27 18:00:06 Sensor 5 #0 36
Feb 27 18:00:06 Sensor 5 #1 36
Sensors 5 is a dual counter.
[ATTACH]67065[/ATTACH]
Currently for Homeseer 3 the data file sits in the /HomeSeer/data directory and is read by a VB script one variable at a time every 5 minutes.
The script is very hands on as I am using the 1-wire mac addresses one at a time for the reads.
Here it will be a curl or perl or python script sending out the 1-wire stuff.
Looking at the RPi in the attic and MQTT was already all installed...tested fine:
~# mosquitto_pub -d -t pete_mqtt -m "hello pete"
Client mosqpub|6933-ICS-ZNet sending CONNECT
Client mosqpub|6933-ICS-ZNet received CONNACK
Client mosqpub|6933-ICS-ZNet sending PUBLISH (d0, q0, r0, m1, 'pete_mqtt', ... (10 bytes))
Client mosqpub|6933-ICS-ZNet sending DISCONNECT
~# mosquitto_sub -d -t pete_mqtt
Client mosqsub|6928-ICS-ZNet sending CONNECT
Client mosqsub|6928-ICS-ZNet received CONNACK
Client mosqsub|6928-ICS-ZNet sending SUBSCRIBE (Mid: 1, Topic: pete_mqtt, QoS: 0)
Client mosqsub|6928-ICS-ZNet received SUBACK
Subscribed (mid: 1): 0
Client mosqsub|6928-ICS-ZNet sending PINGREQ
Client mosqsub|6928-ICS-ZNet received PINGRESP
Client mosqsub|6928-ICS-ZNet received PUBLISH (d0, q0, r0, m0, 'pete_mqtt', ... (10 bytes))
hello pete
Client mosqsub|6928-ICS-ZNet sending PINGREQ
Client mosqsub|6928-ICS-ZNet received PINGRESP
Client mosqsub|6928-ICS-ZNet sending PINGREQ
Client mosqsub|6928-ICS-ZNet received PINGRESP
Client mosqsub|6928-ICS-ZNet sending PINGREQ
Client mosqsub|6928-ICS-ZNet received PINGRESP
@Michael,
Am I approaching this OK for testing?
Been lately maxi testing using the RPi's I have. I also have Arduino's to test but waiting for a bit on these.
Comment