Trixology
WeatherCat => WeatherCat Web Templates => Topic started by: wvdkuil 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
-
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,
-
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
-
Ok,
thanks for the prompt answer!
-
Just want to tell you that I am online (https://wetter.unterwurzacher.at/meteo/pages/station/bulletin.php) with your special weather34 release. So far, so good. :)
Thank you for your work on this, much appreciated!
-
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.
-
8)
ThU32:-)
-
Just want to tell you that I am online (https://wetter.unterwurzacher.at/meteo/pages/station/bulletin.php) 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
-
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
-
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
-
Your welcome Ken, sites look's good, coincidentally you have the same weather that we have today. [cheers1]
-
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:-)
-
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.
-
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 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"
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
-
2. Wrong permissions or ownership for the ./jsondata/ folder and its contents
The permission was 775 - I changed it to 777 and now it is all working! Very cool, thank you very much, Sir. [woohoo]
Thanks again,
-
May I annoy you with another question :-[ :
I specified in the setup no user preferences possible (language, theme). But they are already here. How can I get rid of them?
Thanks again,
-
May I annoy you with another question :-[ :
I specified in the setup no user preferences possible (language, theme). But they are already here. How can I get rid of them?
Thanks again,
The language-selection are not shown => OK
But the theme switch is still there.
Sorry for that, I attache a corrected script.
Wim
-
Sorry for that, I attache a corrected script.
Hello Wim,
thanks again for your fast answer. Installed the attached file and working now!
Cheers,
-
Hello again, Wim!
I translated almost everything visible on 'my' HWS template except Meteors (popup) and Aurora (popup). Therefore I reworked the german txt file a little bit, added some strings and polished some other ones. If you want to add this file to your distribution and change it with the existing, here you are.
Update: Link to the HWS template displayed on my weather site: https://wetter.unterwurzacher.at/meteo/pages/station/bulletin.php
Thanks again for your help,
-
Hello again, Wim!
I translated almost everything visible on 'my' HWS template except Meteors (popup) and Aurora (popup). Therefore I reworked the german txt file a little bit, added some strings and polished some other ones. If you want to add this file to your distribution and change it with the existing, here you are.
Update: Link to the HWS template displayed on my weather site: https://wetter.unterwurzacher.at/meteo/pages/station/bulletin.php
Thanks again for your help,
Thanks for the translations, I will use them in the next version.
You are using the HWS-template as a dashboard so you do not need the menu, header and footer.
Check the discussion https://www.weather-watch.com/smf/index.php/topic,68132.msg549236.html#msg549236 onwards about an extra URL parameter, "stripall" Test its effects here
With menu,header,foorter https://pwsdashboard.com/pwsWD/ <==> https://pwsdashboard.com/pwsWD/?stripall without those unneeded parts
Download the changed scripts which will be included in the upcoming releases also:
w34_index2.php https://www.weather-watch.com/smf/index.php?action=dlattach;topic=68132.0;attach=67493
alertbox: https://www.weather-watch.com/smf/index.php?action=dlattach;topic=68132.0;attach=67498
and clock-script https://www.weather-watch.com/smf/index.php?action=dlattach;topic=68132.0;attach=67501
you will have a better visual integration of the HWS_template and the Meteotemplate
Wim
-
You are using the HWS-template as a dashboard so you do not need the menu, header and footer.
Check the discussion https://www.weather-watch.com/smf/index.php/topic,68132.msg549236.html#msg549236 onwards about an extra URL parameter, "stripall" Test its effects here
With menu,header,foorter https://pwsdashboard.com/pwsWD/ <==> https://pwsdashboard.com/pwsWD/?stripall without those unneeded parts
Very cool - thank you so much for this tip!
Download the changed scripts which will be included in the upcoming releases also:
w34_index2.php https://www.weather-watch.com/smf/index.php?action=dlattach;topic=68132.0;attach=67493
alertbox: https://www.weather-watch.com/smf/index.php?action=dlattach;topic=68132.0;attach=67498
and clock-script https://www.weather-watch.com/smf/index.php?action=dlattach;topic=68132.0;attach=67501
you will have a better visual integration of the HWS_template and the Meteotemplate
Done so and installed the linked scripts - working perfect.
Thanks again,
-
Hello again...
I am afraid I have detected a bug: When clicking on "Forecast"in the section of "Wind/Gust" both the header and footer are coming back and you cannot get rid of this forecast window (no close button or something similar). The only way to get rid of this window is to click on "Home" in the header, but header & footer will stay until I reload the page.
Just as info,
-
Hello again...
I am afraid I have detected a bug: When clicking on "Forecast"in the section of "Wind/Gust" both the header and footer are coming back and you cannot get rid of this forecast window (no close button or something similar). The only way to get rid of this window is to click on "Home" in the header, but header & footer will stay until I reload the page.
Just as info,
The forecast is not a pop-up (would be too small) but it is loaded as a new full-page (as if it is clicked from the menu)
And that is a new URL and that one is without the ?stripall
You will have to remove the setting for this pop-up in w34_blocks.php
In that script you will find all kind of settings for each block.
Go to the wind-block and change in line 103 the show setting from
$blck_ppp [$script][] = array ('show' => true, 'popup' => 'ventusky', 'chartinfo' => 'page', 'text' => lang('Forecast') );
to$blck_ppp [$script][] = array ('show' => false, 'popup' => 'ventusky', 'chartinfo' => 'page', 'text' => lang('Forecast') );
Wim
P.S. normally the back-arrow in the browser works also for iframes. So when the menu appears for a new page you can press the back-arrow to go back to the stripall page
-
Thanks for your help - much appreciated!
-
Thanks for your help - much appreciated!
I changed the scripts for this, there are now real pop-ups (smaller ones) for wind but also for temp,baro and rain.
Check Reply #238 here: https://www.weather-watch.com/smf/index.php/topic,68132.msg549356.html#msg549356
Wim
-
Very cool, thanks again!
-
Hello Wim,
another Question: Is it thinkable / possible to add multiple URLs for displaying a webcam picture in the corresponding 'webcam_c_block' section? Maybe for example they are randomly picked and showed? ::)
As said this is only a question, not an urgent request.
Cheers,
-
Hello Wim,
another Question: Is it thinkable / possible to add multiple URLs for displaying a webcam picture in the corresponding 'webcam_c_block' section? Maybe for example they are randomly picked and showed? ::)
As said this is only a question, not an urgent request.
Cheers,
There is a separate topic for "wishes" for extensions / new blocks by the current users.
For the upcoming October version => https://www.weather-watch.com/smf/index.php?topic=68196.new;topicseen#new
I will rank those and try to implement for the October release
Sometimes there is already a block when another user made similar modifications.
Wim
-
I just got around to checking out this page on your website, Reinhard. It's stunning! Well done.
Thank you Wim for such a beautiful one-page layout of current conditions with a forecast summary.
You guys do good work!
-
Hi Blick, yes - Wim does a good job on the live bulletin. Also the AWEKAS stationweb lookes good to me. As I can't decide which one to choose, I put both but also the live gauges on my website. I like all those templates... ;) :D
Cheers,