cloudy cloudy

Author Topic: How hard is to setup and use weather34 template?  (Read 2397 times)

0 Members and 1 Guest are viewing this topic.

Offline jzinckgra

  • Posts: 150
  • Maine, U.S.A
  • OS/Browser:
  • Win NT 10.0
  • Firefox 60.0
    • Personal weather site
Re: How hard is to setup and use weather34 template?
« Reply #30 on: January 30, 2019, 12:52:40 AM »
Looking much better now...

Making progress: http://weather911.net/pwsWD/index.php

Can get temp, barometer and webcam image to work, but not seeing any wind data or local forecast, current conditions. It's still showing demo for those. When I open the wuweatherupdate.txt file, it is blank. Do I have to use darksky for conditions and forecast?
« Last Edit: January 30, 2019, 01:17:49 AM by jzinckgra »

Offline jzinckgra

  • Posts: 150
  • Maine, U.S.A
    • Personal weather site
Re: How hard is to setup and use weather34 template?
« Reply #31 on: January 30, 2019, 02:14:21 AM »
Making progress: http://weather911.net/pwsWD/index.php

Can get temp, barometer and webcam image to work, but not seeing any wind data or local forecast, current conditions. It's still showing demo for those. When I open the wuweatherupdate.txt file, it is blank. Do I have to use darksky for conditions and forecast?
I never had an API key from WU so I think that explains why the text file is blank. Wondering if I'll be able to get one after Feb 15. Seems like a lot up in the air.

Is there a way to use WD to provide 5 day forcst instead of using darksky or metar? I see an option in settings if I'm using clientraw, but not sure where to get the actual frcst file info from. Is it WD?

Sent from my Pixel 2 using Tapatalk


Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,071
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: How hard is to setup and use weather34 template?
« Reply #32 on: January 30, 2019, 08:43:14 AM »
I never had an API key from WU so I think that explains why the text file is blank. Wondering if I'll be able to get one after Feb 15. Seems like a lot up in the air.
All uploaders to WU should be able to get a NEW-API-key.  But what they can retrieve and if there will be scripts to use the key is unclear.
Quote
Is there a way to use WD to provide 5 day forcst instead of using darksky or metar?
I see an option in settings if I'm using clientraw, but not sure where to get the actual frcst file info from. Is it WD?
The forecast can only come from DarkSky at the moment. You need a free key for that. The limits are also very generous, 1000 calls/day

The current conditions can come from DarkSky, using the same API-key
Or from METAR using another free key
Or WD can read the METAR for you and the clientraw.txt will contain that information.
Quote
Sent from my Pixel 2 using Tapatalk
Success, Wim

Offline jzinckgra

  • Posts: 150
  • Maine, U.S.A
    • Personal weather site
Re: How hard is to setup and use weather34 template?
« Reply #33 on: January 30, 2019, 11:31:58 AM »
All uploaders to WU should be able to get a NEW-API-key.  But what they can retrieve and if there will be scripts to use the key is unclear.The forecast can only come from DarkSky at the moment. You need a free key for that. The limits are also very generous, 1000 calls/day

The current conditions can come from DarkSky, using the same API-key
Or from METAR using another free key
Or WD can read the METAR for you and the clientraw.txt will contain that information.Success, Wim
Thanks wim. Do you know why wind data is not populating?

Sent from my Pixel 2 using Tapatalk


Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,071
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: How hard is to setup and use weather34 template?
« Reply #34 on: January 30, 2019, 12:27:26 PM »
Thanks wim. Do you know why wind data is not populating?

Sent from my Pixel 2 using Tapatalk
Permissions problem
jquery.js:1 GET http://weather911.net/pwsWD/wind_gust_block.php?_=1548851151654 500 (Internal Server Error)
It works OK when started with http://www.weather911.net/pwsWD/w34_module_test.php

Wim

Offline jzinckgra

  • Posts: 150
  • Maine, U.S.A
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Personal weather site
Re: How hard is to setup and use weather34 template?
« Reply #35 on: January 30, 2019, 04:03:48 PM »
Permissions problem
jquery.js:1 GET http://weather911.net/pwsWD/wind_gust_block.php?_=1548851151654 500 (Internal Server Error)
It works OK when started with http://www.weather911.net/pwsWD/w34_module_test.php

Wim
Got it all fixed. Looks good. Just need to get the historical data working so I can see the trends. I setup mysql db on my server, but do I import the util SQL file from pwsWD? Thanks !
« Last Edit: January 30, 2019, 06:41:06 PM by jzinckgra »

Offline jzinckgra

  • Posts: 150
  • Maine, U.S.A
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Personal weather site
Re: How hard is to setup and use weather34 template?
« Reply #36 on: January 30, 2019, 08:55:25 PM »
Couple other questions:

1. why does dark theme not stay dark all the time? I notice in my web browser that during refresh it changes to the bright theme, then I have to back and switch it again

2. If I make my link (http://www.weather911.net/pwsWD/?theme=dark) public, how do I remove the "Home" and "Menu" buttons at the top left?

3. Can I use a tablet to display the above link and have it display in landscape mode, similar to desktop appearance?

Offline jzinckgra

  • Posts: 150
  • Maine, U.S.A
  • OS/Browser:
  • Win NT 10.0
  • Firefox 60.0
    • Personal weather site
Re: How hard is to setup and use weather34 template?
« Reply #37 on: January 31, 2019, 01:42:31 AM »
Got it all fixed. Looks good. Just need to get the historical data working so I can see the trends. I setup mysql db on my server, but do I import the util SQL file from pwsWD? Thanks !

Still can't figure out how to setup historical data. Am I supposed to setup the mysql settings in WD as well as the database and table setup on my ftp server?

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 10,475
  • Davis Vue/Win10
  • Ocean Park, WA.
  • OS/Browser:
  • Mac OS X 10.10.5
  • Chrome 72.0.3626.81
    • Traveling RV Weather
Re: How hard is to setup and use weather34 template?
« Reply #38 on: January 31, 2019, 02:55:04 AM »
What historical data are you looking for?  I've looked at your site and I'm trying to figure out what historical data you are missing...

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,071
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: How hard is to setup and use weather34 template?
« Reply #39 on: January 31, 2019, 08:01:03 AM »
Couple other questions:
1. why does dark theme not stay dark all the time? I notice in my web browser that during refresh it changes to the bright theme, then I have to back and switch it again
In easyweather you define the most used theme, in your case "dark". If a visitor changes that to light, that temporary change is stored in a cookie in his/her browser.  Some users set the use of cookies in their browser to false, so the temporary setting is not kept between refreshes
Quote
2. If I make my link (http://www.weather911.net/pwsWD/?theme=dark) public, how do I remove the "Home" and "Menu" buttons at the top left?
You can not do that with a setting. Only by changing the scripts themselves. Be aware that all other links to menu items are lost then also
Quote
3. Can I use a tablet to display the above link and have it display in landscape mode, similar to desktop appearance?
It should always display exactly the same way as on a desktop when you hold the tablet in landscape mode. It can switch to "phone mode"  when holding the tablet vertically. There is a minimum width for phone-type-devices, below that width only the important blocks are shown one below each other.
Still can't figure out how to setup historical data. Am I supposed to . . . shortened
With "historical data." do you mean: the graphs?  They get their data either from your own WU data.  Or from the data-table on your webserver.

Using the webserver to store historical data correctly, you should also run the cron-jobs: every 10 minutes plus just before and just after midnight.

Storing the information in the database-table and generating your own daily, monthly and yearly .csv files is described in:
http://wd34.weather-template.com/documentation/WDapi-stationcron-2019-01.pdf
http://wd34.weather-template.com/documentation/WD34-SQL-2019-01.pdf
Wim

P.S.  Now  your scripts seems to work, you should install the updates also.
http://wd34.weather-template.com/  ==> Downloads  ==> Third row Updated scripts up to 2019-01-19

Offline jzinckgra

  • Posts: 150
  • Maine, U.S.A
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Personal weather site
Re: How hard is to setup and use weather34 template?
« Reply #40 on: January 31, 2019, 09:01:56 PM »
In easyweather you define the most used theme, in your case "dark". If a visitor changes that to light, that temporary change is stored in a cookie in his/her browser.  Some users set the use of cookies in their browser to false, so the temporary setting is not kept between refreshesYou can not do that with a setting. Only by changing the scripts themselves. Be aware that all other links to menu items are lost then alsoIt should always display exactly the same way as on a desktop when you hold the tablet in landscape mode. It can switch to "phone mode"  when holding the tablet vertically. There is a minimum width for phone-type-devices, below that width only the important blocks are shown one below each other. With "historical data." do you mean: the graphs?  They get their data either from your own WU data.  Or from the data-table on your webserver.

Using the webserver to store historical data correctly, you should also run the cron-jobs: every 10 minutes plus just before and just after midnight.

Storing the information in the database-table and generating your own daily, monthly and yearly .csv files is described in:
http://wd34.weather-template.com/documentation/WDapi-stationcron-2019-01.pdf
http://wd34.weather-template.com/documentation/WD34-SQL-2019-01.pdf
Wim

P.S.  Now  your scripts seems to work, you should install the updates also.
http://wd34.weather-template.com/  ==> Downloads  ==> Third row Updated scripts up to 2019-01-19

In this link http://wd34.weather-template.com/documentation/WD34-SQL-2019-01.pdf, it says to import the file w34_util_weatherstation_mysql. I don't have that file in pwsWD. I only have w34_util_weatherstation_sql. I can see my table has been created in phpmyadmin but it is empty. In WD when I run mysql, it says "no database" selected. So I selected the database, but the List of Tables field is blank, so I can't select "weatherstation" as the table. See pic.
« Last Edit: January 31, 2019, 09:09:13 PM by jzinckgra »

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 27,953
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 71.0.3578.98
Re: How hard is to setup and use weather34 template?
« Reply #41 on: January 31, 2019, 09:19:58 PM »
@jzinckgra: Your screenshots would be easier to capture/post and a lot easier to read if you use the Windows Snipping Tool* which is included in Win 7/8/10. Also .png is usually a better format to use for graphical pages than .jpg which uses data compression optimized for real photographic images.

* Now called Snip 'n Sketch in latest Win 10 I'm told...
« Last Edit: January 31, 2019, 09:53:34 PM by niko »

Offline Weather Display

  • Posts: 86,532
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: How hard is to setup and use weather34 template?
« Reply #42 on: January 31, 2019, 09:45:32 PM »
just hit the prtscr key on your keyboard
then paste into good ol windows paint program
and there you can clip and save :)

Offline jzinckgra

  • Posts: 150
  • Maine, U.S.A
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Personal weather site
Re: How hard is to setup and use weather34 template?
« Reply #43 on: January 31, 2019, 10:02:14 PM »
just hit the prtscr key on your keyboard
then paste into good ol windows paint program
and there you can clip and save :)
Is this better? I think my 1st pic is more readable. Anyways, any thoughts on my questions? Thanks.
« Last Edit: January 31, 2019, 10:03:49 PM by jzinckgra »

Offline bitsostring

  • Posts: 735
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: How hard is to setup and use weather34 template?
« Reply #44 on: January 31, 2019, 10:16:35 PM »
Is this better?

No! Snipping Tool is in Windows Accessories in the list of apps.
It's meant to be fun. . .

 

cumulus