Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

Weewx and additional temp sensor - How to display in gauge?

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Courgan
Posts: 2
Joined: Wed Oct 21, 2015 6:09 pm
Weather Station: TFA Nexus
Operating System: Win 7
Location: Vienna

Weewx and additional temp sensor - How to display in gauge?

Postby Courgan » Wed Oct 21, 2015 6:19 pm

Hi guys,

I'm using weewx and the steelseries gauges. I have a second temp/humidity sensor running on my TFA Nexus and would like to display the temp/humid on the same gauge as the inside/outside temp is displayed.

How can I do this? Is it a big deal? It's totally unclear to me where the gauges get their data from. I'm no coder and I only have some basic skills but I'm very motivated ;)
Any hint would be appreciated :mrgreen:


Cheers
Martin

User avatar
mcrossley
Posts: 5192
Joined: Thu Jan 07, 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Stretch Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Weewx and additional temp sensor - How to display in gau

Postby mcrossley » Fri Oct 23, 2015 5:03 pm

WeeWX uses the "gauge-data.txt.tmpl" file to feed the data into the scripts. You will need to edit that to add your additional data. That file was created by Matthew Wall the WeeWX author, if you struggle to understand it, then I suggest you contact him.

Next you would need to make some major changes to the gauges.js file. If you haven't coded much before then that may be a challenge - have a look at that file and see if you understand it.

Really, the simplest solution would be to replace the indoor values with your second sensor values.

Courgan
Posts: 2
Joined: Wed Oct 21, 2015 6:09 pm
Weather Station: TFA Nexus
Operating System: Win 7
Location: Vienna

Re: Weewx and additional temp sensor - How to display in gau

Postby Courgan » Tue Oct 27, 2015 10:21 am

I see. Motivation is nothing without java skills ;) Have looked at the 2 files you mentioned but really don't have a clue what to do.
Replacing the data is not an option as I wan't to see all 3 temperatures in one gauge.

Thx anyway for your help!

Cheers
Martin

nossis
Posts: 68
Joined: Wed Nov 28, 2012 6:12 am
Weather Station: Station closed
Operating System: none at present
Location: No fixed Address

Re: Weewx and additional temp sensor - How to display in gau

Postby nossis » Tue Oct 27, 2015 1:06 pm

My java skills are also zip, until I started to play with the steel series gauges file. A few things that I have found invaluable when playing
1. Always ALWAYS save a working copy somewhere safe so you can resort back if you need to and it breaks.
2. Notepad+ program has been a great tool as it shows line numbers. (Much easier with 3000+ lines of code)
When updates come through from Mark with the code, I have made notes as to where and what line numbers to look to apply my own customisations to the file.
3 The files is divided up into sections, as you go through it, this will become apparent.
4 // this is a comment line, so you can put anything after that on that line as it is ignored as not being part of the script (for my customisation notes file, I have comments all over the place that give me hints when I come to do it in 6 months time and have forgotten what I did last time)
5 Not everything for temperature is all in the one location in the file. But it is still quite logically laid out. Just on that point, full credit to Mark for laying out this way, it does make it substantially easier to find out where one is inside it.

Way back when I had a crack at the cloud base gauge and to my amazement and some key strategic help from the guru Mark, I got it! Rough mind you, but it worked. (I think Mark took some pity on me for my struggle) :oops:
I am glad I at least had a go as I have learnt a heap. I am still no way an expert but it was worth just a try for me.
Barry
Station Closed (Travelling around Australia)

water01
Posts: 1460
Joined: Sat Aug 13, 2011 9:33 am
Weather Station: WH1081
Operating System: Windows 7 64bit HP SP1
Location: Somewhere in the USA
Contact:

Re: Weewx and additional temp sensor - How to display in gau

Postby water01 » Tue Oct 27, 2015 1:11 pm

Another way of doing this
When updates come through from Mark with the code, I have made notes as to where and what line numbers to look to apply my own customisations to the file.


is to use CSDiff which shows you difference between your file and Marks new file. Very easy to use and highlights everything you have to change.
http://download.cnet.com/CSDiff/3000-22 ... 09023.html


Return to “SteelSeries Gauges”

Who is online

Users browsing this forum: No registered users and 1 guest