Use OTMonitor on RasPi to log data to Thingspeak

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

Moderator: hvxl

Use OTMonitor on RasPi to log data to Thingspeak

Postby Nightlens1 » Wed Sep 16, 2015 10:08 pm

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
Nightlens1
Starting Member
Starting Member
 
Posts: 13
Joined: March 2015

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby mike7 » Thu Sep 17, 2015 9:42 am

I'm using MQTT with OTmonitor, just enable & try. There are different formats of messages, you should choose which one is suitable for you.
mike7
Member
Member
 
Posts: 69
Joined: December 2013

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby Nightlens1 » Sun Sep 20, 2015 8:55 pm

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

Regards, Rutger
Nightlens1
Starting Member
Starting Member
 
Posts: 13
Joined: March 2015

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby hvxl » Sat Oct 24, 2015 9:08 pm

I have added experimental support for ThingSpeak in otmonitor 4.2.4. Let me know if that matches what you were looking for.
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1213
Joined: June 2010

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby Nightlens1 » Sun Oct 25, 2015 10:06 pm

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.
Nightlens1
Starting Member
Starting Member
 
Posts: 13
Joined: March 2015

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby ThinkPad » Mon Oct 26, 2015 3:12 pm

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
User avatar
ThinkPad
Member
Member
 
Posts: 75
Joined: November 2014

Re: Opentherm Gateway

Postby Bororo » Wed Nov 04, 2015 8:30 pm

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
OTGW_TS2.PNG
Export from Thingspeak
OTGW_TS2.PNG (244.65 KiB) Viewed 6803 times
OTGW_TS.PNG
OTGW Settings
OTGW_TS.PNG (6.03 KiB) Viewed 6803 times
Bororo
Starting Member
Starting Member
 
Posts: 33
Joined: January 2011

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby hvxl » Sat Nov 07, 2015 5:24 pm

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
hvxl
Senior Member
Senior Member
 
Posts: 1213
Joined: June 2010

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby Bororo » Tue Nov 10, 2015 9:10 pm

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?
Bororo
Starting Member
Starting Member
 
Posts: 33
Joined: January 2011

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby Nightlens1 » Wed Nov 11, 2015 9:23 pm

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
Nightlens1
Starting Member
Starting Member
 
Posts: 13
Joined: March 2015

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby hvxl » Thu Nov 12, 2015 5:37 pm

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
hvxl
Senior Member
Senior Member
 
Posts: 1213
Joined: June 2010

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby Bororo » Tue Nov 17, 2015 2:25 pm

Hi Schelte,
where otmonitor configuration file is located?
I'm not able to find this settings.
Many thanks in advance.
Cheers.
Bororo
Starting Member
Starting Member
 
Posts: 33
Joined: January 2011

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby hvxl » Tue Nov 17, 2015 9:59 pm

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
hvxl
Senior Member
Senior Member
 
Posts: 1213
Joined: June 2010

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby timoline » Wed Nov 18, 2015 8:33 am

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?
timoline
Starting Member
Starting Member
 
Posts: 33
Joined: November 2015

Re: Use OTMonitor on RasPi to log data to Thingspeak

Postby hvxl » Wed Nov 18, 2015 5:07 pm

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
hvxl
Senior Member
Senior Member
 
Posts: 1213
Joined: June 2010

Next

Return to Opentherm Gateway Forum

Who is online

Users browsing this forum: drut and 0 guests