Author Topic: WU-forecast fails on Burnsville Saratoga template driven by WeeWX-WD  (Read 2946 times)

0 Members and 1 Guest are viewing this topic.

Offline wx3080

  • Wetterstation Berlin
  • Member
  • *
  • Posts: 15
    • Wetterstation Berlin
Hi Ken and other experts,

I am running WeeWX including the WeeWX-WD plugin and the Burnsville Saratoga template modification. I managed to set up this website. http://arnimplatz.bplaced.de/WD/index.php Almost everything worked "out of the box":

However, some issues remain:

1. I cannot get the WU forecast to work. Whatever option I activate within the WU-forecast.php script, it fails. I see divison by zero errors etc.
2. The steel gauges don't work.
3. How can I show the WindChill instead of the HeatIndex?
4. At every reload imperical units are shown instead of metric.

Perhaps you could help me identifying the problem in the attached settings files?

Thanks!!!

dcb

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 9297
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: WU-forecast fails on Burnsville Saratoga template driven by WeeWX-WD
« Reply #1 on: June 27, 2015, 11:33:56 AM »
Regarding WU-forecast not working, it may be due to your hoster's restrictions.

When I run check-fetch-times.php?show=info it shows
Quote
check-fetch-times.php Version 1.13 - 09-Mar-2013
Key PHP information

Webserver OS: x86_64
PHP Version: 5.5.21
Document root: /users/arnimplatz/www
allow_url_fopen = off
allow_url_include = off

Status of needed built-in PHP functions:
function simplexml_load_file is available
function iconv is available
function json_decode is available
function curl_init is NOT available
function curl_setopt is NOT available
function curl_exec is NOT available
function curl_error is NOT available
function curl_close is NOT available
class Imagick is NOT available

Not having the cURL functions may be symptomatic that outbound fconnect() for port 80 may also be disallowed.

Looking at the view-source for wxforecast.php?force=1 (to ensure cache reloading) shows
Quote
         <!-- WU-forecast.php (ML) Version 3.02 - 01-Nov-2014 on PHP 5.5.21 -->
<!-- temps in C -->
<!-- autoSetTemplate using narrow aspect. -->
<!-- WU_API Raw URL='http://www.wunderground.com/global/stations/06108.html' -->
<!-- WU API New URL='http://api.wunderground.com/api/{apikey}/forecast10day/geolookup/lang:EN/q/zmw:00000.1.06108.json' -->
<!-- loading from http://api.wunderground.com/api/{apikey}/forecast10day/geolookup/lang:EN/q/zmw:00000.1.06108.json. -->
<!-- Network error:  () -->
<!-- RC=, bytes=0 -->
-- the Network error: with no return code is indicative that your hoster has turned off/disallowed outbound network connections.  I did try with your WUAPIkey the request to WU, and it does return the expected JSON (so the key is valid).

Unless you can get outbound network connections enabled, I think you'll have to find another hoster that does allow that.  This will similarly impact the ability to get the UV forecast from temis.nl, warning data from meteoalarm.eu and moon data from aa.usno.navy.mil

I suggest you get the outbound connection issue resolved first, then the other issues can be addressed.

Best regards,
Ken
« Last Edit: June 27, 2015, 11:36:09 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 wx3080

  • Wetterstation Berlin
  • Member
  • *
  • Posts: 15
    • Wetterstation Berlin
Re: WU-forecast fails on Burnsville Saratoga template driven by WeeWX-WD
« Reply #2 on: July 09, 2015, 07:13:25 AM »
Hi Ken,

I migrated all my WD weather site to arnimplatz.altervista.org/WD/. Now the required php server features appear to be in place. There ares still some (newbie) questions, I would greatly appreciate your help with:

1. How can I turn off the switch from metric to imperial units whenever the page reloads or the weather records are updated? I like the option to manually swith units. If that's not possible I would prefer a permanent metric display.

2. I assume since I am using weewx-wd (https://bitbucket.org/ozgreg/weewx-wd/wiki/Home) to emulate WD, the first box in the current conditions sections always shows sunshine and no verbal summary. Is there a way to change that?

3. I can't get the steel gauges to work, although I edited the .js file to activate the WD specific settings.

4. Space weather does not work with the files I downloaded from here: http://www.642weather.com/weather/scripts-space-weather.php I keep getting error 007 on http://arnimplatz.altervista.org/WD/wxspace.php Looks like the images were moved by NOAA, Perhaps you could share your updated script?

5. Apparently the historic (official) temeprature section records from WU don't work for Berlin. What do I need to edit?

Sorry to bother with these basic questions. Feel free to include links to previous posts, if the cover the respective subjects.

Thanks!

dcb



Offline gjr80

  • Member
  • *
  • Posts: 45
Re: WU-forecast fails on Burnsville Saratoga template driven by WeeWX-WD
« Reply #3 on: August 02, 2015, 06:05:06 AM »
Hi,

Current conditions icon/text issue you mention is a known limitation of Weewx-WD v1.0.0. It will be fixed in v1.2.0, hopefully due out in the next 2-3 weeks. Appreciate it may be difficult to distinguish between Weewx-WD and Saratoga templates issues but you will get more response to Weewx-WD issues over on the weewx-user Google forum.

Gary

Offline pimohdaimaoh

  • Forecaster
  • *****
  • Posts: 300
  • "Be aware to our nature"
    • PIMOHWEATHER
Re: WU-forecast fails on Burnsville Saratoga template driven by WeeWX-WD
« Reply #4 on: February 27, 2020, 09:05:34 AM »
Hello Ken,


how about the $sunshinehourstodateday it doesnt shown on testtags.php on weewx-wd generator. Hope this will fix soon. TY

 

anything