Page 1 of 2

Use OTMonitor on RasPi to log data to Thingspeak

PostPosted: Wed Sep 16, 2015 10:08 pm
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

Re: Use OTMonitor on RasPi to log data to Thingspeak

PostPosted: Thu Sep 17, 2015 9:42 am
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.

Re: Use OTMonitor on RasPi to log data to Thingspeak

PostPosted: Sun Sep 20, 2015 8:55 pm
by Nightlens1
Hi Mike
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

PostPosted: Sat Oct 24, 2015 9:08 pm
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.

Re: Use OTMonitor on RasPi to log data to Thingspeak

PostPosted: Sun Oct 25, 2015 10:06 pm
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.

Re: Use OTMonitor on RasPi to log data to Thingspeak

PostPosted: Mon Oct 26, 2015 3:12 pm
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

Re: Opentherm Gateway

PostPosted: Wed Nov 04, 2015 8:30 pm
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

Re: Use OTMonitor on RasPi to log data to Thingspeak

PostPosted: Sat Nov 07, 2015 5:24 pm
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.

Re: Use OTMonitor on RasPi to log data to Thingspeak

PostPosted: Tue Nov 10, 2015 9:10 pm
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?

Re: Use OTMonitor on RasPi to log data to Thingspeak

PostPosted: Wed Nov 11, 2015 9:23 pm
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

Re: Use OTMonitor on RasPi to log data to Thingspeak

PostPosted: Thu Nov 12, 2015 5:37 pm
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).

Re: Use OTMonitor on RasPi to log data to Thingspeak

PostPosted: Tue Nov 17, 2015 2:25 pm
by Bororo
Hi Schelte,
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

PostPosted: Tue Nov 17, 2015 9:59 pm
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

Re: Use OTMonitor on RasPi to log data to Thingspeak

PostPosted: Wed Nov 18, 2015 8:33 am
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?

Re: Use OTMonitor on RasPi to log data to Thingspeak

PostPosted: Wed Nov 18, 2015 5:07 pm
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.