Author Topic: New Saratoga AJAX/PHP template plugin for WeatherCat now available  (Read 110497 times)

saratogaWX

  • Strong Breeze
  • ***
  • Posts: 156
  • Weather website programming enthusiast
    • Saratoga-Weather.org
  • Station Details: Davis VP1 +, iMAC 21, OSX 10.6.8
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #45 on: April 20, 2014, 02:18:29 PM »
Hi,

the issue is caused by your PHP 5.2.13-pl1-gentoo -- PHP versions before 5.3.x had issues with the built-in json_decode() PHP function and are unable to handle the large JSON stream (>100Kb) from the new WU pages.
You will have to upgrade the PHP to 5.3.x, 5.4.x or 5.5.x to have the script work correctly.

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub, WeatherSnoop, WeatherCat
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

jf-i2r

  • Strong Breeze
  • ***
  • Posts: 150
  • Station Details: vantage pro2 wireless with solar sensor ; weatherlink-ip ;mac mini 1,6ghz 2go ram El Capitan
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #46 on: April 20, 2014, 07:36:03 PM »
Hi Ken

thanks , i update to  php5.3 ( more récent in OVH release) and it's ok for WU

but now i've this message :  Notice: Undefined offset: 1 in /home/jfi2r/www/get-USNO-sunmoon.php on line 158

i don't know why …..

thanks

jean frédéric

saratogaWX

  • Strong Breeze
  • ***
  • Posts: 156
  • Weather website programming enthusiast
    • Saratoga-Weather.org
  • Station Details: Davis VP1 +, iMAC 21, OSX 10.6.8
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #47 on: April 21, 2014, 01:10:52 AM »
Hi again :)

PHP 5.3 changed some defaults in the error_reporting so that E_STRICT, E_NOTICE and E_DEPRECATED errors are now enabled by default.  I suggest you turn them off in your php.ini for the website by using

error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED

Also, using check-fetch-times.php?show=versions indicates you have some scripts that could use updating .. you should run that query on your site, the use the recommended date/base/plugin in the query at http://saratoga-weather.org/wxtemplates/updates.php to get a customized set of scripts needing updates to bring your site to current levels :)

Best regards,
Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub, WeatherSnoop, WeatherCat
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

jf-i2r

  • Strong Breeze
  • ***
  • Posts: 150
  • Station Details: vantage pro2 wireless with solar sensor ; weatherlink-ip ;mac mini 1,6ghz 2go ram El Capitan
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #48 on: April 21, 2014, 08:46:38 AM »
hi Ken

for test i put this line in my index.php : if (version_compare(PHP_VERSION, '5.3.0') >= 0) error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);

it's ok

but the problem stay ( http://www.jf-i2r.com/wxastronomy.php)



i don't see any update for wxastronomy.php or get-USNO-sunmoon.php

i think my site is in current level

sorry Ken for all questions but i try to understand :)

thanks

best regards  [cheers1]

jean frédéric

saratogaWX

  • Strong Breeze
  • ***
  • Posts: 156
  • Weather website programming enthusiast
    • Saratoga-Weather.org
  • Station Details: Davis VP1 +, iMAC 21, OSX 10.6.8
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #49 on: April 22, 2014, 03:08:01 PM »
You can put the line
Code: [Select]
if (version_compare(PHP_VERSION, '5.3.0') >= 0) error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);in your Settings.php and it will apply to all the pages on your site.
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub, WeatherSnoop, WeatherCat
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

jf-i2r

  • Strong Breeze
  • ***
  • Posts: 150
  • Station Details: vantage pro2 wireless with solar sensor ; weatherlink-ip ;mac mini 1,6ghz 2go ram El Capitan
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #50 on: April 22, 2014, 06:28:52 PM »
hi Ken

it's ok  [cheers1]

but it not be better to correct the error traces rather than disable error traces ?

thanks
jean frederic

iccb

  • Gentle Breeze
  • **
  • Posts: 71
    • S??tilanne Eurassa
  • Station Details: Mac Mini (late 2018), Davis Vantage Pro2
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #51 on: June 13, 2014, 08:12:42 AM »
Hello everybody! :)

Is there any change to get davis vp forecast to my native language (Finnish)?

saratogaWX

  • Strong Breeze
  • ***
  • Posts: 156
  • Weather website programming enthusiast
    • Saratoga-Weather.org
  • Station Details: Davis VP1 +, iMAC 21, OSX 10.6.8
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #52 on: June 13, 2014, 05:08:29 PM »
Davis provides a lot of forecast text variations (400+ as I remember) which is not suitable for the langtrans() type function to support.. you would have to enter them 1-by-1 as langlookup entries in the language-fi.txt

So... unless Davis provides Suomi as a console language option, it is unlikely to have a translation any time soon.  Sorry...

Ken
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub, WeatherSnoop, WeatherCat
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

iccb

  • Gentle Breeze
  • **
  • Posts: 71
    • S??tilanne Eurassa
  • Station Details: Mac Mini (late 2018), Davis Vantage Pro2
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #53 on: June 13, 2014, 10:14:28 PM »
They are in Finnish language in davis console and with weather display I can use finnish texts.
But it's enough if they can translated with langlookup file. :)
Have to tryit.
Thx!

iccb

  • Gentle Breeze
  • **
  • Posts: 71
    • S??tilanne Eurassa
  • Station Details: Mac Mini (late 2018), Davis Vantage Pro2
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #54 on: June 14, 2014, 06:58:58 PM »
Hmmm...
I tryet to put sone of them to language-fi.txt, but they dont translate... What should I try out next?...

jf-i2r

  • Strong Breeze
  • ***
  • Posts: 150
  • Station Details: vantage pro2 wireless with solar sensor ; weatherlink-ip ;mac mini 1,6ghz 2go ram El Capitan
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #55 on: June 30, 2014, 08:27:05 AM »
Hi Ken

another problem with forecast, i,ve not the days




thanks
jean frédéric

saratogaWX

  • Strong Breeze
  • ***
  • Posts: 156
  • Weather website programming enthusiast
    • Saratoga-Weather.org
  • Station Details: Davis VP1 +, iMAC 21, OSX 10.6.8
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #56 on: June 30, 2014, 01:24:37 PM »
Hi, J F,

You are running WU-forecast.php Version 2.04 -- that issue was fixed in V2.05, so please update the script :)

You can run check-fetch-times.php?show=versions on your site to show scripts that have updates and get directions on
how to easily get the updates using my updates tool.

Best regards,
Ken

P.S. we have recently found that sites hosted on altervista.org will not be able to fix the problem (this doesn't apply to you, J F). See: http://www.wxforum.net/index.php?topic=22905.msg220929#msg220929 for more info.  The root cause was that altervista.org has a security policy that forces all scripts to use HTTP/1.0 (even if HTTP/1.1 protocol is requested), and WeatherUnderground servers respond to HTTP/1.0 requests with a page omitting the JSON data and also lacking the day-names in the raw HTML.  Sites based on altervista.org hosting must remain on V2.04 to have any WU forecast visible, but that forecast will lack the day-names.  V2.05 will not work on altervista.org sites and the problem is not fixable (except by moving the site to hosting other than by altervista.org).  Unfortunately, altervista.org hosting (free) is quite popular for Europeans, especially Italian websites so I expect that many personal weather websites may have to find new (paid) hosting to fix the issue longer term.

Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis Vantage Pro Plus - FARS, Boltek-PCI/NexStorm, GRLevel3, WD, WL, VWS, Cumulus, Meteohub, WeatherSnoop, WeatherCat
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

jf-i2r

  • Strong Breeze
  • ***
  • Posts: 150
  • Station Details: vantage pro2 wireless with solar sensor ; weatherlink-ip ;mac mini 1,6ghz 2go ram El Capitan
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #57 on: June 30, 2014, 03:21:20 PM »
Hi Ken

thanks , i update the script and now all is ok  [cheers1]
i look for the check-fetch-times.php



cheers

jean frederic

jf-i2r

  • Strong Breeze
  • ***
  • Posts: 150
  • Station Details: vantage pro2 wireless with solar sensor ; weatherlink-ip ;mac mini 1,6ghz 2go ram El Capitan
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #58 on: October 31, 2014, 08:54:51 AM »
hi Ken

since the update for WU-forecast.php i've this message : Warning: Division by zero in /home/jfi2r/www/WU-forecast.php on line 790

my check-fetch-times.php : all is update http://www.jf-i2r.com/check-fetch-times.php?show=versions

is it a problem with WU ?

thks

jean fred

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: New Saratoga AJAX/PHP template plugin for WeatherCat now available
« Reply #59 on: October 31, 2014, 09:41:14 AM »
hi Ken

since the update for WU-forecast.php i've this message : Warning: Division by zero in /home/jfi2r/www/WU-forecast.php on line 790

my check-fetch-times.php : all is update http://www.jf-i2r.com/check-fetch-times.php?show=versions

is it a problem with WU ?

thks

jean fred
There has been another change in the WU pages and Ken is rewriting the scripts.
Discussions on
http://www.weather-watch.com/smf/index.php/topic,61907
http://www.wxforum.net/index.php?topic=24217

Wim
Support of Leuven-Template&Scripts: https://support.leuven-template.eu/
Support and demo for the PWS_Dashboard (also for WeatherCat)  https://pwsdashboard.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/