HWS-template (WD34) July version available

Debug console: http://www.lokaleolucalisa.altervista.org/pws09/w34_module_test.php
Left selector for your clientraw => http://lokaleolucac.altervista.org/wdisplay2/clientraw.txt
Click on “List contents” => result

Warning: file_get_contents(http://lokaleolucac.altervista.org/wdisplay2/clientraw.txt): f
ailed to open stream: HTTP request failed! 
HTTP/1.0 403 Forbidden in /membri/lokaleolucalisa/pws09/w34_listfile.php on line 17

You should have the clientraw on the website you are working on.
You are not allowed on most websites/webhosting companies to do a file_get_contents from another domain.

Wim

thank you Wim, very kind, hello

My weatherFlow hardware is completely separate from my Davis weather software, at any rate the lack of immediate feedback of data is an issue for me with the wf template and the pwsWD template. I will continue to follow and update the the templates as needed. Thanks for your comments on the templates.

John

I had a question. I\u0027m using this template and uploading data with the wifi logger. Everything works fine … but going through the month of September, the monthly graphs of temperature, wind, rain, etc. Why?

@ALL Could you please always include the URL=link to your website? Or put that link in your forum-profile

With an URL/link I can check what is going on without waisting my time asking for more details.
What is the problem with the graphs?
Are you using WU or your own data for the graphs?

Wim

I’m sorry, you are right. I added my website to my profile and I also put the link below.
Yes, I\u0027m using VU for graphics. I think they are working on it because from this morning the annual ones don’t go either, only the daily newspapers

www.meteocamporamoso.it

Yes, this is a problem with WU.
They return
“old” (until Aug 29) data for the year https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IZAVAT1&graphspan=year&year&format=1
empty data (only a correct headerline) for the month: https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IZAVAT1&graphspan=month&year&month&format=1
and correct data for today.

Where all those other data lines come from, it looks like a 404 page and links to http://api-ak.wunderground.com/

Better remove the ./chartswudata/IZAVAT1YM.txt and ./chartswudata/IZAVAT1Y.txt files
The files will be reloaded then,

Wim

I deleted … now the annual chart is back and the daily is always ok, the weekly is empty. However WU will resolve

I report a possible bug. In the temperature box, it is the second time that it marks me as minimum zero degrees, but the minimum was 8 degrees. The daily temperature graph is correct and marks the minimum of 8 degrees

The bug seems to be in the https://www.meteocamporamoso.it/pwsWD/demodata/realtime.txt
There is an extra space between the “time highest temp of 8:54” [27] and the “temp low of 8” [28]
As it is a space separated file, all fields after [27] are shifted to the right.

This is the realtime.txt of 08:55:02

09/09/19 08:55:02 16 59 8.2 3.7 1.6 160 0.00 0.00 1014.1 SSE 1 km/h C mb mm --- --- 46.80 254.80 --- 21 51 16 --- 16 8:54  8 3:36 16.1 3:56 16.1 3:56 1014.2 8:20 1012.9 4:38 2.16 2.16 11.3 16 --- 0.9 0.00 199 --- 0.00 0 0 0 0 0 0 0 0 0 0 

I replaced all spaces with |

09/09/19|08:55:02|16|59|8.2|3.7|1.6|160|0.00|0.00|1014.1|SSE|1|km/h|C|mb|mm|---|---|46.80|254.80|---|21|51|16|---|16|8:54||8|3:36|16.1|3:56|16.1|3:56|1014.2|8:20|1012.9|4:38|2.16|2.16|11.3|16|---|0.9|0.00|199|---|0.00|0|0|0|0|0|0|0|0|0|0|

This is the easier to read one a few minutes earlier

contents of "./demodata/realtime.txt", processed as filetype "space seperated fields file"
Filetime (UTC): 2019-09-09T06:49:57+00:00 which an age of 0 hrs 02 min 31 seconds
Contents processed:
Array
(
    [0] => 09/09/19
    [1] => 08:50:05
    [2] => 16
    [3] => 54
    [4] => 6.6
    [5] => 7.1
    [6] => 3.2
    [7] => 171
    [8] => 0.00
    [9] => 0.00
    [10] => 1014.2
    [11] => S
    [12] => 1
    [13] => km/h
    [14] => C
    [15] => mb
    [16] => mm
    [17] => ---
    [18] => ---
    [19] => 46.80
    [20] => 254.80
    [21] => ---
    [22] => 21
    [23] => 50
    [24] => 16
    [25] => ---
    [26] => 16
    [27] => 8:49
    [28] => 
    [29] => 8
    [30] => 3:36
    [31] => 16.1
    [32] => 3:56
    [33] => 16.1
    [34] => 3:56
    [35] => 1014.2
    [36] => 8:20
The daily temperature graph is correct and marks the minimum of 8 degrees
The daily graphs data comes from the temp data itself., not from the temp-low data. So every packet to WU only contains the real measurements for that moment. Wim

Do you know how I solved ??? I switched from the upload method of the realtime.txt file to the weatherlink 2.0 json API method. I pushed the wifi logger to load the data every 2 minutes. So much ws weatherlink I have a pro account, why not use it ??? For graphic designers we are obliged to use WU or we can use something else. ?? Now that I use this loading method, uploading realtime.txt via ftp to my site, is it useless?

OK, you have a choice and you choose =D> =D>

You do not need to use WU for the grpahs.
If they get their act together and all data would be correct and available, you could stay with WU.

If they really will stop the .CSV yearly download, you could switch to using your own data with the cron-jobs.
It is a choice in the easyweather-setup, see attached image

Wim


charts.jpg

How can I use my data with cron-jobs ?? Do I still need to update the realtime.txt file?

No upload needed, you can use only one source of data. That is now wl.com

Choose “use your own data for graphs”
Set station-cron every 5 minutes
And add-to-year cron at 23:58

You start with a clean sheet with only the data from today.
But there is a script "_cvt_wucsv.php " you could run to generate “your own data” from the wu year file

Wim


_cvt_wucsv_script.txt (1.03 KB)

_cvt_wucsv.php.zip (2.71 KB)

How can I use _cvt_wucsv.php? Where do I put it?

You run it only once
There is an explanation .txt file in the post
Put it in your pwsWD/ folder, run it yourwebsitename/pwsWD/_cvt_wucsv.php
check if graphs are OK, delete the script

Wim

I ran the script and the annual graphs came out but I don’t have the daily and monthly ones, did I do something wrong? Where should I set station-cron every 5 minutes And add-to-year cron at 23:58

Yes, as there is a WU file for this year, but only until

2019-8-18,28.1,20.6,13.1,19.4,16.4,12.2,96,76,57,1018,1016,19,2,19,0.00
but I don't have the daily and monthly ones, did I do something wrong?

There is a month file, but as there is no data after August 18, the September file is empty. add-to-year cron will add one line every night to those files.
The daily file is generated by the station-cron only

Where should I set station-cron every 5 minutes And add-to-year cron at 23:58

http://pwsdashboard.com/ => Documentation: => http://pwsdashboard.com/documentation/WD34_cron-2019-07.pdf

Succes, Wim

I haven’t really understood anything about cron. I tried to follow the guide but nothing, I don’t know what to do

I found the two files indicated by the guide. In practice, should I give him a self-execution dialect?