Hi,
Just installed installed the latest version and I an not get the WXSIM for cast to work. I am using Weather Display Clientraw for real time data and that working okay. In easyweather setup I have WXSIM set for the forecast under Options for top row module 2 & 3. Is there a need to manually edit some files to point to the location of the plaintext.txt file? I see nowhere in Easyweather setup to enter the path for plaintext.txt as I do for clientraw.txt .
As @blainec mentioned in the previous post, you have to configure the original wxsim-parser script.
And you need the WXSIM windows program running and uploading also.
These are the original Ken True stand-alone WXSIM scripts, without any modification. That way you can “drop in” a new version if Ken has an update.
And you can always test the original script, http://newbeithweather.com/pwsWD/wxsimPP/plaintext-parser.php
and include it on a page in the menu.
The only drawback is that you have to set the correct location of the plaintext file in line 133 of plaintext-parser.php
$plaintextFile = '../../plaintext.txt';
This default setting points to the root folder of your website ( => newbeithweather.com/ )
The “…/” drops the file pointer from the wxsimPP/ folder ( were the wxsim script “lives” ) to the pwsWD/ folder
The “wdisplay/” moves the pointer up into that folder so the script can find the plaintext.txt file it needs.
I’m almost sorry to bother someone again, but I can’t figure this out myself -
Now my template is mysterious again.
It sometime reports offline, although w34_cron_stationcron.php is run every 5 minutes.
Today data are completely “impossible”. My chartsmydata/today.txt looks weird. When I run w34_cron_stationcron.php, data seems to be added for a completely random time, for example for a time on August 14th. Until 0:55 it looks right, then it goes wrong. Well, it must be WU sending wrong data ??
In addition, - chart for wind month after August 25, wind strength is higher than gust
To me, that seems to be a WU problem (99%) or maybe a problem with your API-key (< 1%)
Debug console "weather.inaogmogens.dk"
=>left bottom your recent data from wu file “./jsondata/wucom.txt” is already selected, so click “List contents”,
I click that and the big box shows:
Filetime (UTC): 2019-08-28T09:10:44+00:00 which an age of 0 hrs 01 min 27 seconds
So the file is just retrieved (current file time) BUT look at the contents
=>The line with “List this file as” click on "Expand it as json "
When I reload the files with the bottom selector labeled “Load external files” and => click on “Load files”,
=> the file is retrieved at Filetime (UTC): 2019-08-28T09:20:33+00:00 which an age of 0 hrs 00 min 24 seconds
And the date/time is now
Sometimes the data is invalid and the dashboard is half empty or a white page with invalid data Can you PM me your WU API key as I always get correct data with my key.
My own key also fails. Definitely a problem with WU
Now I get this message:
{"metadata":{"transaction_id":"8838963446811046191"},"success":false,"errors":[{"error":{"code":"AKI-0001","message":"Weather Company API is currently unavailable."}}]}
The parser works OK now.
BUT my script expects at least 8 forecasts, yours has 7
So change the line 43 in fpwsWD/orecastWXSIMblock.php from
if (!isset ($arr_pp) || count ($arr_pp) < 8 ) {echo '<b style="color: red;"><small>wxsim file not ready</small></b>'; return;}
to
if (!isset ($arr_pp) || count ($arr_pp) < 6 ) {echo '<b style="color: red;"><small>wxsim file not ready</small></b>'; return;}
That check makes sure that the complete wxsim forecast is uploaded. Sometimes the uploading of the large WXSIM forecast-files takes so much time that an incomplete forecast is processed.
:oops: Forget, you have to change two other lines also, for the popups in the wxsim forecast block.
forecastWXSIMdaily_popup.php and forecastWXSIMtext_popup.php both change line 39 from
if (!isset ($arr_pp) || count ($arr_pp) < 8 ) // check if correct plaintext.txt was found and processed
to
if (!isset ($arr_pp) || count ($arr_pp) < 6 ) // check if correct plaintext.txt was found and processed
A “sneak preview”, still working on it.
A history script only using ones own data.
Script one:
All yearly data from WU is loaded from WU and stored in a folder on the webserver
All yearly files (mostly the 2019 one) are checked for missing lines which are retrieved using the WU-API-
The updated yearly files are read to find the high-lows for this month, this year and all-time
All this history will have the same units as the weather-program uses
The data for temp, rain, humidity, dewpoint, pressure, wind, gust coming from WU are stored in 1 file chartsmydata/history.txt
The station-cron job updates the history.txt and will also add UV and solar if the station uses those sensors.
The addtoyear-cron will move todays values to yesterdays values
The empty-cron will clear the month values (every 1st day of a month) and the year values (every Jan 1st).
It should also save 3 monthly backups and 3 yearly backups.
ToDo
Live-data script should use the history table for missing fields with some weather-programs
Write a script to update the history when f.i. there are errors in the WU data.
Looks good, Wim, but I’m also interested in the rain radar pop-up I’ve just noticed on your clientraw demo site. . . When is that going to be available?
(Doh!) I have just noticed a little more information in the October requests post… Please ignore the following if you wish however it would be good for more detail on the setup. I suspect the NexstormNG software maybe the route to take…I am quite happy to be a tester if needed…
Another question please. I have just re-installed my Stormtracker PCI system and it is now running. I see that we can use the output on the template. I have searched but cannot find where to find or generate the NSRealtime.txt file. I have the old version of nexstorm (v1.9) running. Would it be better if I have the new NexstormNG software instead. Will this give better and more meaningful data?
Just love the template, is there a way to send a few “beer” tokens to thank you for your efforts?
In my chart for wind today and wind month:
Since August 26, winds and gusts have been swapped.
The ./chartsmydata/today.txt file also appears to have swapped values.
Thanks for finding this error, which occurs only for stations who get their data from WU.
And use their website to store the graphs data, as you are doing from August 26.
Attached an updated script