Use OTMonitor on RasPi to log data to Thingspeak

This Forum is about the Opentherm gateway (OTGW) from Schelte

Moderator: hvxl

Nightlens1
Starting Member
Starting Member
Posts: 13
Joined: Wed Mar 04, 2015 11:07 pm

Use OTMonitor on RasPi to log data to Thingspeak

Post by Nightlens1 »

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
mike7
Member
Member
Posts: 102
Joined: Mon Dec 02, 2013 8:45 am

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by mike7 »

I'm using MQTT with OTmonitor, just enable & try. There are different formats of messages, you should choose which one is suitable for you.
Nightlens1
Starting Member
Starting Member
Posts: 13
Joined: Wed Mar 04, 2015 11:07 pm

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by Nightlens1 »

Hi Mike
Would it be possible to share what you do? This might make it easier to try out.

Regards, Rutger
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by hvxl »

I have added experimental support for ThingSpeak in otmonitor 4.2.4. Let me know if that matches what you were looking for.
Schelte
Nightlens1
Starting Member
Starting Member
Posts: 13
Joined: Wed Mar 04, 2015 11:07 pm

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by Nightlens1 »

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.
ThinkPad
Member
Member
Posts: 75
Joined: Sat Nov 15, 2014 1:49 pm

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by ThinkPad »

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
Bororo
Member
Member
Posts: 64
Joined: Mon Jan 31, 2011 11:20 am
Contact:

Re: Opentherm Gateway

Post by Bororo »

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
Attachments
Export from Thingspeak
Export from Thingspeak
OTGW_TS2.PNG (244.65 KiB) Viewed 10649 times
OTGW Settings
OTGW Settings
OTGW_TS.PNG (6.03 KiB) Viewed 10649 times
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by hvxl »

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
Bororo
Member
Member
Posts: 64
Joined: Mon Jan 31, 2011 11:20 am
Contact:

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by Bororo »

Hi Schelte,
you are just great! :D
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?
Nightlens1
Starting Member
Starting Member
Posts: 13
Joined: Wed Mar 04, 2015 11:07 pm

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by Nightlens1 »

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! :D
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by hvxl »

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).
Schelte
Bororo
Member
Member
Posts: 64
Joined: Mon Jan 31, 2011 11:20 am
Contact:

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by Bororo »

Hi Schelte,
where otmonitor configuration file is located?
I'm not able to find this settings.
Many thanks in advance.
Cheers.
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by hvxl »

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
timoline
Starting Member
Starting Member
Posts: 34
Joined: Sat Nov 07, 2015 2:30 pm

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by timoline »

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
I assume this is only on a linux system.
Is there a way to export the config file from windows ?

If not possible, may I suggest this as a feature request?
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Use OTMonitor on RasPi to log data to Thingspeak

Post by hvxl »

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.
Schelte
Post Reply

Return to “Opentherm Gateway Forum”