Use OTMonitor on RasPi to log data to Thingspeak
Moderator: hvxl
-
- Starting Member
- Posts: 13
- Joined: Wed Mar 04, 2015 11:07 pm
Use OTMonitor on RasPi to log data to Thingspeak
Now that I have OTMonitor running as a daemon in my raspberry pi, I would like it to send specific values (like boiler temp) to thingspeak, where I also log data of my evohome system.
How would I initiate this? My feeling says that MQTT option in OTmonitor could help here, but there is not a lot written about this function.
Any ideas or advice will be more than welcome
Thanks, rutger
How would I initiate this? My feeling says that MQTT option in OTmonitor could help here, but there is not a lot written about this function.
Any ideas or advice will be more than welcome
Thanks, rutger
Re: Use OTMonitor on RasPi to log data to Thingspeak
I'm using MQTT with OTmonitor, just enable & try. There are different formats of messages, you should choose which one is suitable for you.
-
- Starting Member
- Posts: 13
- Joined: Wed Mar 04, 2015 11:07 pm
Re: Use OTMonitor on RasPi to log data to Thingspeak
Hi Mike
Would it be possible to share what you do? This might make it easier to try out.
Regards, Rutger
Would it be possible to share what you do? This might make it easier to try out.
Regards, Rutger
Re: Use OTMonitor on RasPi to log data to Thingspeak
I have added experimental support for ThingSpeak in otmonitor 4.2.4. Let me know if that matches what you were looking for.
Schelte
-
- Starting Member
- Posts: 13
- Joined: Wed Mar 04, 2015 11:07 pm
Re: Use OTMonitor on RasPi to log data to Thingspeak
Hi Schelte
That looks really nice!! Cant wait to try it out, but have to wait for a little while as my CV is currently being serviced.
That looks really nice!! Cant wait to try it out, but have to wait for a little while as my CV is currently being serviced.
Re: Use OTMonitor on RasPi to log data to Thingspeak
I use Domoticz to read the OTGW, i post data to an external application with this Lua script that is called by Domoticz every minute.
Works fine.
But OTmonitor is probably a bit more lightweight i guess Would be nice if there was an option in OTmonitor to call a user specified URL, so you can pump the data into the service you prefer.
Or i should go with the time and learn MQTT hehe
Works fine.
But OTmonitor is probably a bit more lightweight i guess Would be nice if there was an option in OTmonitor to call a user specified URL, so you can pump the data into the service you prefer.
Or i should go with the time and learn MQTT hehe
Re: Opentherm Gateway
Hi Schelte,
thank you so much for adding Thingspeak support to otmonitor app!
I just tested this feature and it works like a charm except last 2 fields (7,8). When I changed this fields from unused to something else, no data for field 7 nor 8 are received by TS (or garbage is sent when Field7 - DHW temp, Field8 - CH water pressure).
How can I check what is sent to TS?
Many thanks in advance.
vaanja
thank you so much for adding Thingspeak support to otmonitor app!
I just tested this feature and it works like a charm except last 2 fields (7,8). When I changed this fields from unused to something else, no data for field 7 nor 8 are received by TS (or garbage is sent when Field7 - DHW temp, Field8 - CH water pressure).
How can I check what is sent to TS?
Many thanks in advance.
vaanja
- Attachments
-
- Export from Thingspeak
- OTGW_TS2.PNG (244.65 KiB) Viewed 10826 times
-
- OTGW Settings
- OTGW_TS.PNG (6.03 KiB) Viewed 10826 times
Re: Use OTMonitor on RasPi to log data to Thingspeak
In fact none of the selected fields were actually being sent. The application just used a fixed set of 6 fields. That should be fixed in otmonitor 4.2.4.1.
Schelte
Re: Use OTMonitor on RasPi to log data to Thingspeak
Hi Schelte,
you are just great!
I can confirm otmonitor 4.2.4.1 working with thingspeak flawlessly.
Thank you very much for all your support.
Is there any way how to donate your project?
you are just great!
I can confirm otmonitor 4.2.4.1 working with thingspeak flawlessly.
Thank you very much for all your support.
Is there any way how to donate your project?
-
- Starting Member
- Posts: 13
- Joined: Wed Mar 04, 2015 11:07 pm
Re: Use OTMonitor on RasPi to log data to Thingspeak
Hi Schelte
This works great!
Control over the updating frequency (preferably faster than every 2 min) might be a nice option for a future update openthermonitor. But I am already more than happy with this function!
This works great!
Control over the updating frequency (preferably faster than every 2 min) might be a nice option for a future update openthermonitor. But I am already more than happy with this function!
Re: Use OTMonitor on RasPi to log data to Thingspeak
At 2 minutes I estimated the chances that some people would find it too fast versus too slow about 50/50. (I estimated the chance that everyone would be satisfied with the chosen value 0.)
For this reason I already put in provisions to change the interval. If you look at the otmonitor configuration file under the tspeak section, you'll find an interval setting. If you change that from 120 to something else and restart otmonitor, the updates should be sent at the new frequency (untested).
For this reason I already put in provisions to change the interval. If you look at the otmonitor configuration file under the tspeak section, you'll find an interval setting. If you change that from 120 to something else and restart otmonitor, the updates should be sent at the new frequency (untested).
Schelte
Re: Use OTMonitor on RasPi to log data to Thingspeak
Hi Schelte,
where otmonitor configuration file is located?
I'm not able to find this settings.
Many thanks in advance.
Cheers.
where otmonitor configuration file is located?
I'm not able to find this settings.
Many thanks in advance.
Cheers.
Re: Use OTMonitor on RasPi to log data to Thingspeak
Unless you specify otherwise, configuration settings are stored in ~/.<cmdname>rc. So if you saved the binary as otmonitor, the configuration file will be ~/.otmonitorrc
Schelte
Re: Use OTMonitor on RasPi to log data to Thingspeak
I assume this is only on a linux system.hvxl wrote:Unless you specify otherwise, configuration settings are stored in ~/.<cmdname>rc. So if you saved the binary as otmonitor, the configuration file will be ~/.otmonitorrc
Is there a way to export the config file from windows ?
If not possible, may I suggest this as a feature request?
Re: Use OTMonitor on RasPi to log data to Thingspeak
The topic is about otmonitor on a Raspberry Pi. So the information I provided is indeed for a linux system.
It is possible to use a configuration file on Windows, rather than the default of storing the settings in the registry. To do that you have to start otmonitor with the -f command line option.
It is possible to use a configuration file on Windows, rather than the default of storing the settings in the registry. To do that you have to start otmonitor with the -f command line option.
Schelte