First time user setup question - forecast tile - WU data not loaded

First time user setup question - forecast tile - PWS Dashboard 2012

Hello, new member to this forum but a 15 year owner of a Davis Vantage 2 weather station that previously used Virtual Weather Station before migration to Weather Display about two weeks ago.

Weather Display is running great and pwsWD is working except for the forecast tile.

I had to create a new Weather Underground station id (original KNJMORRI6, new KNJMORRI99) as my old one was pre-2019 and I no longer have the API key.

My site is :

All active tiles are working (including webcam and solar/uv sensors) except the forecast, which still has a 12/19 timestamp (wufct_en-GB_e.txt). The file has the correct permissions.

I’ve tried different sources (PirateWeather, Openweathermap) with no success. Those other sites change the “Current Sky” tile, which it working from the “clientraw” data from my weather station.
All of the PWS scripts are updated with the latest versions.

I look forward to fixing this item and then joining the team that is developing the new version of pwsWD.

Happy Holidays to all.

Rob

Hi Rob,

Welcome to the forum and thanks for testing the PWS_Dashboard.

Sadly this is a very strange problem. I have no idea yet.

To find those errors/problems I need to set error-reporting on.
For that we have a test script, f.i. this will run the load file script and display all messages.

http://weather.robloglisci.com/pwsWD/_test.php?test=PWS_load_files.php

But it runs in a 500 error on your system.
Without error reporting and message display the script runs without errors.

http://weather.robloglisci.com/pwsWD/PWS_load_files.php

And it does not load any WU data.
To dig deeper I need FTP access, so lets try other things first


Switch of the use of an extra-data file in your settings.
Tab Data
Group Separate upload of the extra sensors from your weatherstation
Select When using extra sensors an extra data file can be needed


Could you test with “Default forecast using free Yr.no data”
Maybe there is a problem with the WU-API-key you are using.


If you mail or PM me your easyweather password, I can check your settings and test with my own WU-API key.

Regards,
Wim

I sent you a PM. I changed my WU-API key and its successfully showing connections - but not updating the forecast tile.

The yr.no works and updates the forecast tile but changes the top left tile from the current weather observations to “Have a nice day”

I’m using this link for yr.no -

https://api.met.no/weatherapi/locationforecast/2.0/complete?lat=-40.830372&lon=-74.476704&altitude=399

Rob

I tested with your API-key, that one is OK.

Seems to be something inside your server-setup.
Maybe you are running an in-home webserver?Not much i can do about that.


I will make a small test-script in my day-time and post it here so you can put it on your server.
It will use the exact same CURL and maybe we can see what the response from WU is.


The small block contains available information about weather-warnings, either official or generated by the scripts.
If there are no warnings, it will display a text-forecast from WU, DarkSky-replacemnt a.s.o.

YrNo has no description so only the a default “Have a nice day” text will be displayed. Using the translation file you can change that to any text you want.


The "Sky block " also uses data from forecast for the small description / 1 hour forecast.

Wim

Hi Ron,

OK, attached a test-script.
test_curl6.php.zip (2.1 KB)
Unzip and upload test_curl6.php to your webserver /pwsWD/ folder

Run with . . .lisci.com/pwsWD/test_curl6.php

It will load the WU forecast using CURL and with file_get_contents
Maybe that gives us a hint if it could be a problem inside the dashboard scripts.

Succes,
Wim

The files are downloaded from WU but are named wufct_en-US_e.txtmm .
If I rename from .txtmm to .txt, the forecast loads.

I’ll send you another PM - thanks !!

1 Like

The OP solved the problem by adjusting the folder permissions.


The load files script loads new data using a temporary file-name ending on rnm
If the downloaded file passes some basic tests the old file is renamed ending with old
The temporary file is then rename to the correct name.

In this case the folder permissions did not allow to do the renaming correctly.


This does not explain why the PHP-500 error was replaced by a non-informative large text-block. The debug console now works correctly.

Wim

1 Like

Folder permission issues on-premises web server (Windows) - 2023-12-23

Webserver:
Windows Server 2022, IIS 10.0, PHP 8.2.6. 180 day trial version of Windows Server 2022 standard available for free at the Microsoft Web Site.

Weather Station Hardware:
Davis Vantage Pro2 Weather Station, UV and Solar sensors (online since 2007).
Panasonic Network Camera BL-C111A

Software:
Weather Display version 10.37S Build 150
IPTimelapse Pro 2022
Personal Weather Station Dashboard 2012_lts

Services:
CameraFTP - entry image plan
Weather Underground > 2019 API
CheckWX Metar API
Yr.no API
WeatherLink Cloud version 2 API
OpenWeathermap API
PWSweather
Windy
CWOP / APRS
World Air Quality Index
Warning Alerts & Email

Steps to fix forecast not updating due to file permissions:

  1. Run an administrative PowerShell command to unblock all files in the pwsWD folder. This will remove the “feature” that restricts/blocks all files that are downloaded from another computer.
    dir -path c:\inetpub\wwwroot\pwsWD -Recurse | Unblock-file

  2. Add the IUSER user with full read-write access to the jsondata folder. This is not the IIS_IUSRS group that is already present. That group should only have read and list permissions by default.

Restart your IIS Services - (net stop W3SVC, net start W3SVC).

That fixed the issue with temporary files receiving the .txtmm extension.

I’ll end up building a Linux Server to host PWSWD. I’ll probably also create a setup guide for the entire process of installing and configuring Weather Display and PWSWD. I was using Virtual Weather Station by Ambient Weather. I’ll work on importing my historical data into Weather Display.

Wim has created incredible software and I look forward to running it for years to come. Once I get past this holiday week, Wim and Personal Weather Station Dashboard get my donation.

Happy Holidays to all.

Rob
Morris Plains, NJ

1 Like