Put opentherm data into a database (MySQL) with PHP

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

Moderator: hvxl

Put opentherm data into a database (MySQL) with PHP

Postby hansieh » Wed Dec 30, 2015 1:19 pm

Yesterday, I have my opentherm gateway soldered and connected and everything works fine.
My next step is to put the generated data via PHP in a database (MySQL) from where I can created the graphs.

Before I go creating it myself, I am wondering if there might be someone who has already created a database model and some PHP code what I could use.

For example what I like to created (My site):
http://www.chamiri.nl/drupal7/
(domotica, arduino, MySQL, PHP, electronics)
http://www.chamiri.nl
hansieh
Starting Member
Starting Member
 
Posts: 25
Joined: November 2006
Location: Netherlands

Re: put opentherm data into a database (MySQL) with PHP

Postby marcelr » Wed Dec 30, 2015 3:42 pm

I am wondering if there might be someone who has already created a database model and some PHP code what I could use.


Not exactly, but I have a matlab script (two, actually) that dumps otgw log data into a struct (per day). Is easily converted to php.

EDIT 20160103: parse_otmon_log.m had a bug, fixed.

grtz,

marcelr
Attachments
parse_otmon_log.m.zip
Updated version. Small error in the calculation of OT floats fixed.
(1.1 KiB) Downloaded 121 times
read_ot_log.m.zip
main routine
(945 Bytes) Downloaded 113 times
Last edited by marcelr on Sun Jan 03, 2016 4:35 pm, edited 1 time in total.
marcelr
Global Moderator
Global Moderator
 
Posts: 1074
Joined: May 2012
Location: Ehv

Re: put opentherm data into a database (MySQL) with PHP

Postby Rene » Wed Dec 30, 2015 8:16 pm

I just use a key value store, like for all my other metrics. Influxdb is perfect for storing timeseries.
Rene.
User avatar
Rene
Global Moderator
Global Moderator
 
Posts: 1689
Joined: October 2008
Location: Netherlands

Re: put opentherm data into a database (MySQL) with PHP

Postby hansieh » Wed Dec 30, 2015 9:31 pm

Rene wrote:I just use a key value store, like for all my other metrics. Influxdb is perfect for storing timeseries.

Hi Rene,
Influxdb looks very intressing, I will give it a try. thank for the tip.
(domotica, arduino, MySQL, PHP, electronics)
http://www.chamiri.nl
hansieh
Starting Member
Starting Member
 
Posts: 25
Joined: November 2006
Location: Netherlands

Re: put opentherm data into a database (MySQL) with PHP

Postby raymonvdm » Thu Dec 31, 2015 10:36 am

I use MQTTwarn to perform some actions based on the MQTT output of OTMonitor

https://github.com/jpmens/mqttwarn
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
 
Posts: 1152
Joined: December 2011

Re: put opentherm data into a database (MySQL) with PHP

Postby Dickuk » Mon Jan 04, 2016 10:33 am

Have a look at https://github.com/thoukydides/heatmiser-wifi

I modified his code to produce graphs on the opentherm data.
Dickuk
Starting Member
Starting Member
 
Posts: 15
Joined: November 2012


Return to Opentherm Gateway Forum

Who is online

Users browsing this forum: No registered users and 1 guest