Good to see it is working Steve.

I do notice one thing: I use WindChill and HeatIndex on my main page. Using 
> the formulas, it either or both are not defined, Current Conditions show 
> "undefined" and nothing is plotted on the graphs. The gauge shows 32 
> degrees when the formulas are not met. Is there a way to link what the 
> gauge shows to the weewx calculation formula results? Perhaps have 
> "Undefined" displayed in the gauge window, with the indicator equal to the 
> outside temperature?
>

Unfortunately there is not much you can do. A similar issue arises if a 
sensor drops for some reason. The SteelSeries code is such that it takes 
the value for a given observation and tries to interpret it as a number, if 
it can then the number is displayed in the selected units, if it can't be 
converted to a number then 0 is displayed. There is no ability to display 
anything other than a number on the gauge LCD and the pointer just reflects 
what is on the LCD (or is it vice versa?). I guess you could say that I 
have contributed a little to the issue as rtgd.py will set a field to 0 in 
the applicable Metric units if the observation in non-numeric or undefined 
(or None in python parlance). So for temperature type fields that have a 
misisng or undefined value, 0C or 32F will be displayed. Why? I guess 
because I use Metric and I find that if a field is missing data displaying 
a 0 is better than a display of 32. I could probably make the units in such 
a case user selectable, so folks that display F will see 0F rather than 
32F. UInfortunately not much else that can be done short of modifying the 
SteelSeries code and I won't be embarking on that.

Maybe I should write up a "Real Time Gauges for Dummies" for the Wiki, 
> because my unfamiliarity with programming means I had to first learn the 
> basics like the best way(s) to edit different types of files to obtain my 
> goal (along with trying to have a little understanding of the programming 
> itself).
>

By all means, I will update the wiki on the realtime_gauge-data GitHub site 
and referece it on the weeWX wiki, but that will be a work in progress for 
a little while.

As a final thought a couple of things you might want to consider doing to 
fine tune your SteelSeries setup.

1. gauge-data.txt units. A default install of the realtime_gauge-data 
extension will result in gauge-data.txt containing Metric units. Whilst the 
SteelSeries Gauges page gives you the ability to change display units 
dynamically, anyone going to your page the first time will see the units 
used in gauge-data.txt. (as an aside the SteelSeries gauges stores a cookie 
that keeps your display units settings for subsequent page visits). Given 
you are in the US you might want to switch your gauge-data.txt units to US 
customary so that visitors will see US customary by default (I expect most 
of your visitors are US based). To do this you need to edit the 
[RealtimeGaugeData] [[Groups]] config options in weewx.conf. Just change 
the options to the units desired, the unit codes are the same as used in 
weeWX skins ie degree_C, degree_F etc. Be aware that the SteelSeries Gauges 
do not support all units that weeWX does (eg mmHg).

2. Mouseover plots. Given the changes made the mouseover plots are broken, 
I suspect a chnage is requried to gauges.js, the plots are still in 
Weather/ss on your web server but they are not being updated (refer point 3 
below). Try changing the following line (line 38) to read:

            imgPathURL         : '../ss/',            // *** Change this to 
the relative path for your 'Trend' graph images

3. Disabling the [[SteelSeries]] skin was done as an easy way to prevent 
there being conflicting gauge-data.txt files on your web server. There are 
a few side issues to disabling the skin. One is that the ss/index.html file 
is no longer generated each report cycle, this means that things like weeWX 
version etc will never update on this page is you happen to upgrade weeWX. 
Another is that the mouseover plots for the gauges are not generated so 
your mouseover plots are empty. So you probably should re-enable the 
SteelSeries skin but disable couple of its features. I suggest you:

a. edit weewx.conf and remove the comments against the [[SteelSeries]] skin
b. edit skins/ss/skin.conf, locate [CheetahGenerator] and disable the 
generation of gauge-data.txt eg:

[CheetahGenerator]
    encoding = html_entities
    [[ToDate]]
        [[[index]]]
            template = index.html.tmpl
        #[[[data]]]
        #    template = gauge-data.txt.tmpl

c. edit skins/ss/scripts/gauges.js and make the same changes to it that you 
made to gauges.js on your web server. We do this as once the skin is 
enabled again any restart of weeWX would see the gauges.js on your web 
server overwritten.
d. stop then start weeWX
e. check that it all still works!


Gary

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to