Author Topic: HWS-template PWS_Dashboard April release  (Read 10926 times)

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
HWS-template PWS_Dashboard April release
« on: April 11, 2019, 03:29:19 PM »
HomeWeatherStation template (aka WD34 branch of the w e a t e r 3 4/ template)

April December release available at https://pwsdashboard.com/

Adapted to be used with: WeatherCat,Cumulus, Weewx,  and others using realtime.txt
WeatherDisplay using the WDapi or clientraw.txt
Meteohub , WSWIN and others using clientraw.txt
and
for use without a weather-program when you are uploading to
Weatherlink.com or WeatherUnderground

Wim
« Last Edit: April 29, 2020, 12:36:36 PM by wvdkuil »
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/

wurzelmac

  • Storm
  • *****
  • Posts: 1361
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: HWS-template (WD34 / weather34) April release
« Reply #1 on: April 11, 2019, 05:48:07 PM »
Is there something similar like GitHub available - I ask because I do not want to replace the whole weather34 installation but only the reworked / updated / new released files.

Thanks in advance,
Reinhard


wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: HWS-template (WD34 / weather34) April release
« Reply #2 on: April 11, 2019, 05:53:43 PM »
Is there something similar like GitHub available - I ask because I do not want to replace the whole weather34 installation but only the reworked / updated / new released files.

Thanks in advance,
No, sorry.  It is also totally different from older WD versions.
And in-compatible with the other weather34/ versions.
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/

wurzelmac

  • Storm
  • *****
  • Posts: 1361
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: HWS-template (WD34 / weather34) April release
« Reply #3 on: April 11, 2019, 05:57:26 PM »
Ok,

thanks for the prompt answer!
Reinhard


wurzelmac

  • Storm
  • *****
  • Posts: 1361
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: HWS-template (WD34 / weather34) April release
« Reply #4 on: April 11, 2019, 07:09:33 PM »
Just want to tell you that I am online with your special weather34 release. So far, so good.  :)
Thank you for your work on this, much appreciated!
Reinhard


wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: HWS-template (WD34) July release
« Reply #5 on: May 06, 2019, 12:15:54 PM »
The apha version of the forthcoming July release is running now
In the extra wide version of 3 rows  of 4 normal-blocks at: http://wd34.weather-template.com/pws07/index.php
The "normal" 3*3 version at https://www.weerstation-herent.be/pws07/

Status July version: The major overhaul is almost finished.
  • The PHP code is completely (say 90%) rewritten and error-free  according to the logs
  • Most code is now human readable, from top-> bottom and left->right it follows the output on the blocks
  • There are no HTML errors left, checked with https://validator.w3.org/nu/ This is time-consuming to test as the index.php html only contains empty blocks. All blocks insert their own html dynamically.
  • The CSS is now only a 100+ lines ,  not minimized, included in the start scripts as in-line css
Still ToDo:
  • Remove unneeded icons / images from shared.php and the image folder
  • Add extra comments to the more complex scripts
  • Add "empty" blocks for extra sensors

I forgot: TO DO also "more TESTs " as last time.

This version remains compatible with WeatherCat.

Wim

WARNING: This version is NOT compatible with the other weather34/ versions. Do not mix and match.
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/

wurzelmac

  • Storm
  • *****
  • Posts: 1361
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: HWS-template (WD34 / weather34) April release
« Reply #6 on: May 06, 2019, 07:29:52 PM »
 8)

 ThU32:-)
Reinhard


Ktuley

  • Gentle Breeze
  • **
  • Posts: 22
    • CW7923
    • KNMALBUQ8
  • Station Details: Vantage Vue 2, iMac (M1) 2021
Re: HWS-template (WD34 / weather34) April release
« Reply #7 on: May 30, 2019, 03:52:28 AM »
Just want to tell you that I am online with your special weather34 release. So far, so good.  :)
Thank you for your work on this, much appreciated!

Hi there..... I'm trying to get my WeatherCat to use this template... while I get the cgi to send the data, the template doesn't' seem to read it. Wondering if you did anything special, other than the configuration in the easy-setup?

Thanks.

Ken
station is at tuley.online/pwsWD/index.php

ronwestnz

  • Calm
  • *
  • Posts: 2
    • FW5399
    • IKAWER1
  • Station Details: FineOffset WS3083
Re: HWS-template (WD34 / weather34) April release
« Reply #8 on: May 30, 2019, 04:05:14 AM »
Hi Ken

the template for weathercat uses the realtime text file, see attached file. I cant remember who made the realtime template, but the credit goes to them
I have a template directory and a data directory for the template and weathercat to use.

To setup weather cat,
under preferences, go to the custom web tab.
set the source location to the template directory.
set the save path to the data directory.
setup ftp if you need it, my setup is an inhouse server so I don't ftp.
set the upload rate and weathercat is ready

To set up the template,
using the easyweathersetup.php, set the path to your realtime text file to the data directory, mine is ./data/WCT_realtime.txt, but again my is an in-house server

after that, you should be good to go

Ktuley

  • Gentle Breeze
  • **
  • Posts: 22
    • CW7923
    • KNMALBUQ8
  • Station Details: Vantage Vue 2, iMac (M1) 2021
Re: HWS-template (WD34 / weather34) April release
« Reply #9 on: May 30, 2019, 04:26:34 AM »
Hi Ken

To setup weather cat,
under preferences, go to the custom web tab.

after that, you should be good to go

YES!!!!!!!

Thank you very much!
I was trying to use the custom cgi, instead of the custom web page. Couldn't figure out how to connect the realtime.txt file to things. but now all is working! 
Thanks again for the quick and simple solution!

Ken

ronwestnz

  • Calm
  • *
  • Posts: 2
    • FW5399
    • IKAWER1
  • Station Details: FineOffset WS3083
Re: HWS-template (WD34 / weather34) April release
« Reply #10 on: May 30, 2019, 04:30:45 AM »
Your welcome Ken, sites look's good, coincidentally you have the same weather that we have today.  [cheers1]

Ktuley

  • Gentle Breeze
  • **
  • Posts: 22
    • CW7923
    • KNMALBUQ8
  • Station Details: Vantage Vue 2, iMac (M1) 2021
Re: HWS-template (WD34 / weather34) April release
« Reply #11 on: May 30, 2019, 04:53:40 AM »
Thanks... really like your site too...in fact, I'd love to have that weather cat icon for my site.. was just heading to go find or make it.

Enjoy your weather since it's morning for you... about time to go to bed here.  [bed]
 ThU5:-)

wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: HWS-template (WD34 / weather34) April release
« Reply #12 on: June 17, 2019, 04:40:52 PM »
The final beta version can be downloaded => http://wd34.weather-template.com/beta.php

Improvements:
All code rewritten and now easier to change by users
Nearly 95% of the CSS is removed
Cleaner user-interface
Better handling of menu items
Better nextstorm and weatherflow lightning support
Improved notifications
Far better responsiveness, the data will fit on a small iPhone and a large iMac
Faster speed of loading the page, will now also run on "less-expensive" hosting platforms

I think  I will roll-out the official July release on June 24. My wife and I  planned our vacation for the last two weeks of July.
Gives the users / testers and me three full weeks to check if there are no new errors creeping up.

Wim

P.S. some users now use this template as a "iPhone / tablet" version next to their full-size main website.
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/

wurzelmac

  • Storm
  • *****
  • Posts: 1361
    • ITIROLPR2
    • Wetterstation Pr?graten am Gro?venediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1300D | macOS Sonoma 14.2
Re: HWS-template (WD34 / weather34) April release
« Reply #13 on: August 13, 2019, 09:31:38 AM »
Hello Wim,

I installed the latest (July) release and I am very happy with it except the Darksky blocks (forecast & current) and the Earthquake block. They are showing "Offline". I think I have done the setup correct, but maybe I am missing something. If you have some spare time, can you help me?
https://wetter.unterwurzacher.at/bulletin/index.php

Update: Historical data not working, too. They worked with the April release.

Thanks in advance,
Reinhard


wvdkuil

  • Strong Breeze
  • ***
  • Posts: 151
    • DW8113 (D8113)
    • IVLAAMSG47
    • Weatherstation Wilsele/Leuven/Belgium
  • Station Details: VantagePro2+ UV,Solar - Macbook/Mini
Re: HWS-template (WD34 / weather34) April release
« Reply #14 on: August 13, 2019, 11:19:06 AM »
Hello Wim,

I installed the latest (July) release and I am very happy with it except the Darksky blocks (forecast & current) and the Earthquake block. They are showing "Offline". I think I have done the setup correct, but maybe I am missing something. If you have some spare time, can you help me?
https://wetter.unterwurzacher.at/bulletin/index.php

Update: Historical data not working, too. They worked with the April release.

Thanks in advance,
Hello @wurzelmac

The debug-script https://wetter.unterwurzacher.at/bulletin/w34_module_test.php
=> click in bottom row on button "Load files"
Code: [Select]
w34_load_files.php (288) time spent: 0.6562 -  CURL OK for https://api.checkwx.com/metar/LOWI/decoded
w34_load_files.php (293) time spent: 0.6562 -  empty data for https://api.checkwx.com/metar/LOWI/decoded Old data will be used jsondata/metar34.txtrnm
w34_load_files.php (288) time spent: 0.0657 -  CURL OK for https://api.weather.com/v3/wx/forecast/daily/5day?geocode=47.02,12.38&format=json&units=m&language=de-DE&apiKey=_API_SETTING_
w34_load_files.php (293) time spent: 0.0657 -  empty data for https://api.weather.com/v3/wx/forecast/daily/5day?geocode=47.02,12.38&format=json&units=m&language=de-DE&apiKey=_API_SETTING_ Old data will be used jsondata/wufct_de_m.txtrnm
w34_load_files.php (288) time spent: 0.5364 -  CURL OK for https://api.forecast.io/forecast/_API_SETTING_/47.01861,12.375?lang=de&units=si
w34_load_files.php (293) time spent: 0.5364 -  empty data for https://api.forecast.io/forecast/_API_SETTING_/47.01861,12.375?lang=de&units=si Old data will be used jsondata/darksky.txtrnm
w34_load_files.php (124) Environement Canada not use
w34_load_files.php (288) time spent: 0.1372 -  CURL OK for https://earthquake-report.com/feeds/recent-eq?json
w34_load_files.php (293) time spent: 0.1372 -  empty data for https://earthquake-report.com/feeds/recent-eq?json Old data will be used jsondata/eqnotification.txtrnm
w34_load_files.php (288) time spent: 0.1819 -  CURL OK for https://services.swpc.noaa.gov/products/geospace/planetary-k-index-dst.json
w34_load_files.php (293) time spent: 0.1819 -  empty data for https://services.swpc.noaa.gov/products/geospace/planetary-k-index-dst.json Old data will be used jsondata/kindex.txtrnm
w34_load_files.php (147) luftdaten sensor not defined
w34_load_files.php (155) purplair sensor not defined
w34_load_files.php (165) goverment aqi not defined
w34_load_files.php (288) time spent: 0.4988 -  CURL OK for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=ITIROLPR2&graphspan=day&day&month&year&format=1
w34_load_files.php (293) time spent: 0.4988 -  empty data for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=ITIROLPR2&graphspan=day&day&month&year&format=1 Old data will be used ./chartswudata/ITIROLPR2YMD.txtrnm
w34_load_files.php (288) time spent: 0.5004 -  CURL OK for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=ITIROLPR2&graphspan=month&year&month&format=1
w34_load_files.php (293) time spent: 0.5004 -  empty data for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=ITIROLPR2&graphspan=month&year&month&format=1 Old data will be used ./chartswudata/ITIROLPR2YM.txtrnm
w34_load_files.php (288) time spent: 0.6454 -  CURL OK for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=ITIROLPR2&graphspan=year&year&format=1
w34_load_files.php (293) time spent: 0.6454 -  empty data for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=ITIROLPR2&graphspan=year&year&format=1 Old data will be used ./chartswudata/ITIROLPR2Y.txtrnm
All files are loaded but "empty"
Two reasons this can happen:
1. Loading from external sites needs to be in a sort of "whitelist" at your provider, but it worked with the April release
2. Wrong permissions or ownership  for the ./jsondata/ folder and its contents
The scripts first read the data, save it in a temporary file, if the file seems correct they rename the temp file with the correct  name.

If the scripts can not write the temp file, there is no data and they continue to use the old data.

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/