Opentherm Gateway Graph (web page) enhancement request

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

Moderator: hvxl

Opentherm Gateway Graph (web page) enhancement request

Postby yjb » Mon Jan 19, 2015 9:42 pm

Hi Schelte,

Not sure if this is feasible, but I was wondering if it would possible to add timestamps to the graph page in the web GUI? While one can see timestamps in the otmonitor GUI (using tooltips), it seems that this information is missing in the webgui. But then, maybe I did overlook something.

I'm also wondering if it would be possible to extend the timeframe (as a user configurable option in the conf file?). Right now it seems to be 2 hours, but having a graphical overview that spans a longer timeframe would be nice.

I've tried to look at the source for an easy hack, but I can't figure out how to do it. I'm also lacking knowledge on tcl (for instance how can I build a new executable from the otmonitor.vfs tree)

Thanks for looking into this,
Ysbrand
yjb
Member
Member
 
Posts: 186
Joined: April 2009
Location: Venhuizen, Netherlands

Re: Opentherm Gateway Graph (web page) enhancement request

Postby hvxl » Wed Jan 28, 2015 8:57 pm

yjb wrote:I'm also wondering if it would be possible to extend the timeframe (as a user configurable option in the conf file?). Right now it seems to be 2 hours, but having a graphical overview that spans a longer timeframe would be nice.

I've tried to look at the source for an easy hack, but I can't figure out how to do it.

On line 20 of otmonitor.tcl, change 7200 to 7500 for 2 hours and 5 minutes. :)
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1192
Joined: June 2010

Re: Opentherm Gateway Graph (web page) enhancement request

Postby yjb » Thu Jan 29, 2015 6:09 am

Thanks Schelte,

I looked indeed at the source before, and noticed the "7200" value. My problem is that I'm not really familiar with TCL, and I have no clue how to "compile" things back into a single executable. I've tried to Google stuff, and maybe I didn't spend enough time on it, but I just haven't figured it out.

Can you please provide some guidance (pointers to RTFM is ok as well)?

Thanks,
Ysbrand
yjb
Member
Member
 
Posts: 186
Joined: April 2009
Location: Venhuizen, Netherlands

Re: Opentherm Gateway Graph (web page) enhancement request

Postby mike7 » Thu Jan 29, 2015 7:23 am

yjb wrote:Thanks Schelte,
Can you please provide some guidance (pointers to RTFM is ok as well)?

http://otgw.tclcode.com/otmonsrc.html
mike7
Member
Member
 
Posts: 69
Joined: December 2013

Re: Opentherm Gateway Graph (web page) enhancement request

Postby yjb » Thu Jan 29, 2015 8:28 am

Thanks Mike, apparently I missed that piece.
yjb
Member
Member
 
Posts: 186
Joined: April 2009
Location: Venhuizen, Netherlands

Re: Opentherm Gateway Graph (web page) enhancement request

Postby hvxl » Thu Jan 29, 2015 12:10 pm

I have just updated that page to actually describe how to put everything back together into a single file, rather than just running things unpacked.
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1192
Joined: June 2010

Re: Opentherm Gateway Graph (web page) enhancement request

Postby yjb » Thu Jan 29, 2015 1:58 pm

Thanks Schelte, much appreciated!
yjb
Member
Member
 
Posts: 186
Joined: April 2009
Location: Venhuizen, Netherlands

Re: Opentherm Gateway Graph (web page) enhancement request

Postby hvxl » Fri Feb 13, 2015 9:13 pm

OTmonitor 4.2.1 will now show the time of each vertical grid line at the bottom of the graph. Is that satisfactory?
Schelte
hvxl
Senior Member
Senior Member
 
Posts: 1192
Joined: June 2010

Re: Opentherm Gateway Graph (web page) enhancement request

Postby yjb » Sat Feb 14, 2015 1:19 pm

Thanks Schelte, just installed the new version, and it works as expected. Keep up the good work!
yjb
Member
Member
 
Posts: 186
Joined: April 2009
Location: Venhuizen, Netherlands

Re: Opentherm Gateway Graph (web page) enhancement request

Postby emmeesse68 » Thu Jan 07, 2016 5:00 pm

hvxl wrote:On line 20 of otmonitor.tcl, change 7200 to 7500 for 2 hours and 5 minutes. :)


I tried putting a value of 43200 to get 12 hrs worth graph throught my web browser but I still ger 2 hours... did I misunderstand the meaning of the "span" variable? Is it for the web interface or for the GUI only? A quick search in the otmonitor.tcl code shows it is set to 86400 on line 1457, I see no other usage of it ("span" appears just on these two lines)... Version 4.2.4.1 by the way... whad did I do wrong?
emmeesse68
Starting Member
Starting Member
 
Posts: 45
Joined: January 2015

Re: Opentherm Gateway Graph (web page) enhancement request

Postby yjb » Fri Jan 08, 2016 9:02 am

Hi,

The span value in otmonitor.tcl sets how long the data is being retained by the monitor (at least that's my understanding)
Beyond that you will also need to update the graphing capability in "graph.svg.tmpl"; the variable you are looking for is maxx (default 1440).

Ysbrand
yjb
Member
Member
 
Posts: 186
Joined: April 2009
Location: Venhuizen, Netherlands

Re: Opentherm Gateway Graph (web page) enhancement request

Postby emmeesse68 » Mon Jan 11, 2016 10:58 am

yjb wrote:Hi,

The span value in otmonitor.tcl sets how long the data is being retained by the monitor (at least that's my understanding)
Beyond that you will also need to update the graphing capability in "graph.svg.tmpl"; the variable you are looking for is maxx (default 1440).

Ysbrand


Thanks Ysbrand,

I modified the "span" variable to 86400 (24hrs) and adjusted the "maxx" in the "graph.svg.tmpl" accordingly (I guessed that the default 1440 meant the same 2 hrs of the default 7200 of the "span" variable, so I multiplied 1440 times 12 and used 17280).

Made the change yesterday... So far, it's working. In a day or two I will have confirmation if it's working as intended.

Cheers,

m
emmeesse68
Starting Member
Starting Member
 
Posts: 45
Joined: January 2015


Return to Opentherm Gateway Forum

Who is online

Users browsing this forum: No registered users and 1 guest