Author Topic: Steel Gauges  (Read 222484 times)

TechnoMonkey

  • Strong Breeze
  • ***
  • Posts: 127
    • EW9323
    • KTXARANS6
    • TechnoMonkeys Weather
  • Station Details: La Crosse WS-2315 / High Sierra Server / Mac Mini 2.3 GHz Intel Core i5/ 8GB Ram / OS 120GB SSD / Home Folder 500GB FireWire / DATA 8TB RAID 5 / 1TB TIME CAPSULE
Re: Steel Gauges
« Reply #240 on: August 30, 2014, 03:13:51 PM »
I did not see anything in the server logs.  I will have to check the link later when I get to another location.  Everything always works onsite.

try   173.147.77.161/Weather.  If you type it in manually, the 'Weather' must be capitalized and no 'www'.

wurzelmac

  • Storm
  • *****
  • Posts: 1361
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: Steel Gauges
« Reply #241 on: August 30, 2014, 03:27:58 PM »
Not working here, too - sorry.  :-[

Cheers,
Reinhard
Reinhard


mcrossley

  • Gale
  • ****
  • Posts: 273
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: Davis VP2 + home brew
Re: Steel Gauges
« Reply #242 on: August 30, 2014, 04:20:19 PM »
Nope, neither dns name nor IP address work for me either.
Mark

Blicj11

  • Storm
  • *****
  • Posts: 3941
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Steel Gauges
« Reply #243 on: August 30, 2014, 07:11:39 PM »
I have two questions about my steel gauges.

1. What is portrayed by the two dark red pie-slice wedges on either end of the pressure gauge?

2. The external humidity gauge displays a light red pie-slice wedge portraying the range during the last 24 hours. How can I add that same feature to the internal humidity?
Blick


mcrossley

  • Gale
  • ****
  • Posts: 273
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: Davis VP2 + home brew
Re: Steel Gauges
« Reply #244 on: August 30, 2014, 11:19:59 PM »
Hi Block, the darker red sectors on the pressure gauge denote your all time low and high pressure records.
As I originally wrote the gauges for Cumulus which does not keep hi/lo data for the indoor humidity there is code in there to disable the sector when indoor humidity is displayed, if WC has this data then you will need to add it to the Jason data file, and undo the code in doHum() that suppresses the sector.

I'm on a tablet at the mo so cannot look at the code to suggest what you do, if you cannot figure it out I'll take a look tomorrow.
Mark

Blicj11

  • Storm
  • *****
  • Posts: 3941
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Steel Gauges
« Reply #245 on: September 03, 2014, 07:37:03 AM »
As I originally wrote the gauges for Cumulus which does not keep hi/lo data for the indoor humidity there is code in there to disable the sector when indoor humidity is displayed, if WC has this data then you will need to add it to the Jason data file, and undo the code in doHum() that suppresses the sector.

I'm on a tablet at the mo so cannot look at the code to suggest what you do, if you cannot figure it out I'll take a look tomorrow.

Mark:

I have attached a screenshot of my gauges.js file. I assume lines 1601 and 1626 are what I need to change, but I'm not sure. Can you please tell me what those two lines of code do? Do I just duplicate line 1596 for 1601 but replace data.humTL with data.inhumTL, etc?

I know you don't run WC but any insight you can offer is appreciated.
Blick


mcrossley

  • Gale
  • ****
  • Posts: 273
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: Davis VP2 + home brew
Re: Steel Gauges
« Reply #246 on: September 03, 2014, 08:01:02 AM »
Yes that should do it, you will obviously also have to add the two additional data items to your data file that WC produces as well.
Mark

Blicj11

  • Storm
  • *****
  • Posts: 3941
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Steel Gauges
« Reply #247 on: September 05, 2014, 06:18:48 AM »
Mark:

Thanks to your help on this, I have now successfully modified my steel series internal humidity gauge to display today's range. I did this because I have a whole-house humidifier that kicks on when internal humidity falls below 30%. Tracking the internal humidity range is helpful to me to see how much of the day required the humidifier. Thanks for a great template and for your assistance.
Blick


mcrossley

  • Gale
  • ****
  • Posts: 273
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: Davis VP2 + home brew
Re: Steel Gauges
« Reply #248 on: September 05, 2014, 07:40:34 AM »
No problem, I have added this as a standard feature for the next release (for those programs that supply the data).
Mark

wurzelmac

  • Storm
  • *****
  • Posts: 1361
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: Steel Gauges
« Reply #249 on: September 05, 2014, 02:33:46 PM »
Hi Blick & Mark,
done those mods of the int hum gauge as well and it is working nice!
Thanks Blick for bringing this idea and the "how to" into the crowd.
Thanks Mark for support!
Cheers,
Reinhard
Reinhard


mcrossley

  • Gale
  • ****
  • Posts: 273
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: Davis VP2 + home brew
Re: Steel Gauges
« Reply #250 on: September 05, 2014, 02:39:24 PM »
For reference, my complete doHum() function now looks like this (in v2.5.0beta 14/9/5). It caters for those (such as Cumulus users) who do not have the additional indoor data in the realtime file.
Code: [Select]
        doHum = function (radio) {
            //if rad isn't specified, just use existing value
            var sel = (radio === undefined ? _hum.selected : radio.value),
                popupImg, tip;

            if (sel === 'out') {
                _hum.value = extractDecimal(data.hum);
                _hum.areas = [steelseries.Section(+extractDecimal(data.humTL), +extractDecimal(data.humTH), gauge.minMaxArea)];
                _hum.title = strings.hum_title_out;
                popupImg = 0;
            } else {
                _hum.value = extractDecimal(data.inhum);
                if (data.inhumTL && data.inhumTH) {
                    _hum.areas = [steelseries.Section(+extractDecimal(data.inhumTL), +extractDecimal(data.inhumTH), gauge.minMaxArea)];
                } else {
                    _hum.areas = [];
                }
                _hum.title = strings.hum_title_in;
                popupImg = 1;
            }

            if (_hum.selected !== sel) {
                _hum.selected = sel;
                //Change gauge title
                _gaugeHum.setTitleString(_hum.title);
                if (config.showPopupGraphs) {
                    $('#imgtip4_img').attr('src', config.imgPathURL + config.tipImgs[4][popupImg] + _cacheDefeat);
                }
            }

            _gaugeHum.setArea(_hum.areas);
            _gaugeHum.setValueAnimated(_hum.value);

            if (ddimgtooltip.showTips) {
                //update tooltip
                if (_hum.selected === 'out') {
                    tip = strings.hum_out_info + ':' +
                        '<br>' +
                        '- ' + strings.minimum_info + ': ' + extractDecimal(data.humTL) + '% ' + strings.at + ' ' + data.ThumTL +
                        ' | ' + strings.maximum_info + ': ' + extractDecimal(data.humTH) + '% ' + strings.at + ' ' + data.ThumTH;
                } else if (data.inhumTL && data.inhumTH) {
                    // we have indoor high/low data
                    tip = strings.hum_in_info + ':' +
                         '<br>' +
                        '- ' + strings.minimum_info + ': ' + extractDecimal(data.inhumTL) + '% ' + strings.at + ' ' + data.TinhumTL +
                        ' | ' + strings.maximum_info + ': ' + extractDecimal(data.inhumTH) + '% ' + strings.at + ' ' + data.TinhumTH;
                } else {
                    // no indoor high/low data
                    tip = strings.hum_in_info + ': ' + extractDecimal(data.inhum) + '%';
                }
                $('#imgtip4_txt').html(tip);
                if (_refreshGraphs && config.showPopupGraphs && config.tipImgs[4][0] !== null) {
                    $('#imgtip4_img').attr('src', config.imgPathURL + config.tipImgs[4][popupImg] + _cacheDefeat);
                }
            }
        },
Mark

wurzelmac

  • Storm
  • *****
  • Posts: 1361
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: Steel Gauges
« Reply #251 on: September 05, 2014, 06:04:19 PM »
Thanks Mark,
much appreciated! Copied & pasted the whole code and working like a charm!
Cheers,
Reinhard
Reinhard


Blicj11

  • Storm
  • *****
  • Posts: 3941
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: Steel Gauges
« Reply #252 on: September 05, 2014, 11:18:06 PM »
No problem, I have added this as a standard feature for the next release (for those programs that supply the data).

Mark, whilst you are thinking about the next release, is there a possibility you would consider adding the option of including the daily range in internal temperature as well? I am considering modifying that section too but it's a wee bit more complicated than internal humidity.
Blick


mcrossley

  • Gale
  • ****
  • Posts: 273
  • Sorry, I'm not a WeatherCat user!
    • ICHESHIR25
    • Wilmslow Astro Weather
  • Station Details: Davis VP2 + home brew
Re: Steel Gauges
« Reply #253 on: September 06, 2014, 04:01:34 PM »
I'll have a look, but it may be a while...
Mark

TechnoMonkey

  • Strong Breeze
  • ***
  • Posts: 127
    • EW9323
    • KTXARANS6
    • TechnoMonkeys Weather
  • Station Details: La Crosse WS-2315 / High Sierra Server / Mac Mini 2.3 GHz Intel Core i5/ 8GB Ram / OS 120GB SSD / Home Folder 500GB FireWire / DATA 8TB RAID 5 / 1TB TIME CAPSULE
Re: Steel Gauges
« Reply #254 on: September 11, 2014, 03:41:29 AM »
There are some issues with Sprint blocking most of my ports including 80, 8080, 8088.  I still do not know why I can access my website via iPhone but not computer.  I guess it is time to cut Sprint off and get a better service.  For now, I have my DDNS porting to 984.

mac.technomonkeys.com/Weather