Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

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

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

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

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

Post by Courgan »

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: 12692
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

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

Post by mcrossley »

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 21 Oct 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

Post by Courgan »

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: 89
Joined: Wed 28 Nov 2012 6:12 am
Weather Station: Davis Vantage Pro 2
Operating System: Win 10
Location: Perth AU
Contact:

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

Post by nossis »

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.
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

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

Post by water01 »

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
David
Image
Post Reply