Author Topic: MBrealtimegauges.txt wrong forecast value from conds.php  (Read 908 times)

0 Members and 1 Guest are viewing this topic.

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 836
  • #conligwx
    • conligwx.org
MBrealtimegauges.txt wrong forecast value from conds.php
« on: December 01, 2018, 08:26:15 PM »
Just installed a Meteobridge NANO and setup Saratoga Templates, however the forecast in Steelguages shows the following.

Code: [Select]
"forecast":"Conditions updated: 01:23:30",

MBtags.php is getting the Davis Forecast ok

Code: [Select]
forecast-text|Mostly cloudy and cooler. Precipitation possible within 12 hours, possibly heavy at times. Windy.|// Davis forecast reports in English:|:
so how can I get the conds.php file to produce the correct Davis Forecast result in MBrealtimegauges.txt ??
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: MBrealtimegauges.txt wrong forecast value from conds.php
« Reply #1 on: December 01, 2018, 09:13:20 PM »
Hi Simon,
When the Meteobridge Plugin was developed, Boris had not yet included the Davis forecast text in the tags available so I substituted that Conditions updated string instead.

You can change conds.php from
Code: [Select]
$JSONdata["forecast"] = 'Conditions updated: '.$Data[1]; // WD Sample= 'increasing clouds to
Code: [Select]
$JSONdata["forecast"] = $WX['forecast-text']; // WD Sample= 'increasing clouds and the forecast should appear.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 836
  • #conligwx
    • conligwx.org
Re: MBrealtimegauges.txt wrong forecast value from conds.php
« Reply #2 on: December 02, 2018, 05:31:55 AM »
Thanks for the help Ken. much appreciated!  =D>
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline chrisgrainger

  • Contributor
  • ***
  • Posts: 122
    • Top of The Rideau
Re: MBrealtimegauges.txt wrong forecast value from conds.php
« Reply #3 on: December 06, 2018, 10:18:00 AM »
Hi Simon,
When the Meteobridge Plugin was developed, Boris had not yet included the Davis forecast text in the tags available so I substituted that Conditions updated string instead.

You can change conds.php from
Code: [Select]
$JSONdata["forecast"] = 'Conditions updated: '.$Data[1]; // WD Sample= 'increasing clouds to
Code: [Select]
$JSONdata["forecast"] = $WX['forecast-text']; // WD Sample= 'increasing clouds and the forecast should appear.


Hi Ken,


I tried this.  The resulting page has no guages, no forecast...  It's something simple, I'll bet.  What did I do wrong?


Perplexed


Chris

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 836
  • #conligwx
    • conligwx.org
Re: MBrealtimegauges.txt wrong forecast value from conds.php
« Reply #4 on: December 06, 2018, 10:45:19 AM »
I take it you have a NANO too?

what is the commandline calling conds.php to create the MBRealtimegauages.txt?

mine is:


Service set in Meteobridge Nano is:

HTTP Request - Periodical

Every 10 Seconds

URL: use your own domain....

Code: [Select]
https://www.conligwx.org/conds.php?d=[DD]/[MM]/[YYYY],[hh]:[mm]:[ss],[th0temp-act],[th0hum-act.0],[th0dew-act],[wind0avgwind-act],[wind0wind-act],[wind0dir-act],[rain0rate-act],[rain0total-daysum],[thb0seapress-act],[wind0dir-act],[wind0wind-act=bft.0],m/s,C,hPa,mm,--,[thb0seapress-val60:--],[rain0total-monthsum],[rain0total-yearsum],[rain0total-ydaysum],[thb0temp-act],[thb0hum-act],[wind0chill-act],[th0temp-val60:--],[th0temp-dmax],[th0temp-dmaxtime],[th0temp-dmin],[th0temp-dmintime],[wind0avgwind-dmax],[wind0avgwind-dmaxtime],[wind0wind-dmax],[wind0wind-dmaxtime],[thb0seapress-dmax],[thb0seapress-dmaxtime],[thb0seapress-dmin],[thb0seapress-dmintime],[mbsystem-swversion:--],[mbsystem-buildnum:--],[wind0wind-max10],--,--,[uv0index-act:--],--,[sol0rad-act:--],[wind0dir-avg10:--],[rain0total-sum60],--,[mbsystem-daynightflag:--],--,[wind0dir-avg10:--],--,m,--,[mbsystem-daylength:--],--,--,[uv0index-dmax:--]
Success:  Success.

hope that helps.

PS

i see your gauges are working, though the script is somewhat outdated.

https://github.com/mcrossley/SteelSeries-Weather-Gauges 2.7.9 is the latest.
« Last Edit: December 06, 2018, 10:59:00 AM by Toxic »
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9257
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: MBrealtimegauges.txt wrong forecast value from conds.php
« Reply #5 on: December 06, 2018, 11:00:44 AM »
Hi Chris,
Looks like http://www.rideauwx.info/wxssgauges.php is working fine for me (all gauges showing with values, and the forecast text from Davis is showing).

Simon,
I've not updated the MB-plugin with the latest/greatest from Mark's SteelSeries gauges.  I'm just lazy a bit  :lol:
« Last Edit: December 06, 2018, 11:02:31 AM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 836
  • #conligwx
    • conligwx.org
Re: MBrealtimegauges.txt wrong forecast value from conds.php
« Reply #6 on: December 06, 2018, 11:08:59 AM »
I usually do it once every few months manually. you do sometimes need to check the differences first though.
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


Offline chrisgrainger

  • Contributor
  • ***
  • Posts: 122
    • Top of The Rideau
Re: MBrealtimegauges.txt wrong forecast value from conds.php
« Reply #7 on: December 06, 2018, 11:15:02 AM »
Hi Chris,
Looks like http://www.rideauwx.info/wxssgauges.php is working fine for me (all gauges showing with values, and the forecast text from Davis is showing).



Hmmmm.... must be something ta do with Chrome's cache.....  I just had a boo with Edge (which I should have done before contacting you) and the page is displaying properly, as you noted.  Chrome is still just showing per the attachment.  Time to beat Chrome with a stick... ](*,)


Thanks


Chris

Offline ConligWX

  • Forecaster
  • *****
  • Posts: 836
  • #conligwx
    • conligwx.org
Re: MBrealtimegauges.txt wrong forecast value from conds.php
« Reply #8 on: December 06, 2018, 11:16:24 AM »
Any ad-blocker extension stopping it? your gauges look ok here too.
« Last Edit: December 06, 2018, 03:48:26 PM by Toxic »
Regards Simon
Davis Vantage Pro2 Plus (6162UK) • Daytime FARS • WeatherLink Live • AirLink • PurpleAir PA-II-SD • CumulusMX •


 

anything