cloudy cloudy

Author Topic: ***closed*** weather34 for WeatherDisplay (clientraw and WDapi)  (Read 23365 times)

0 Members and 2 Guests are viewing this topic.

Offline bitsostring

  • Posts: 975
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #255 on: January 29, 2019, 05:59:28 PM »
API[43] definitely not showing rain last 60 minutes, see APIrain4.

Rain today started 0430 and finished 0935, so it hadn't rained for 8 hours when screenshot was taken. And there hasn't been 1.6 mm rain in any one hour today.
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,344
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #256 on: January 29, 2019, 08:25:30 PM »
API[43] definitely not showing rain last 60 minutes, see APIrain4.
Rain today started 0430 and finished 0935, so it hadn't rained for 8 hours when screenshot was taken. And there hasn't been 1.6 mm rain in any one hour today.
So we have to ask Brian  Hamilton what the meaning of that field is . I will dig into the documentation also.

This is the WDapi string as used by Brian.
Code: [Select]
=urlstring+'?d='+timestamp+'+'+tempdata+'+'+humdata+'+'+dewdata+'+'+winddata+'+'+gustdata+'+'+dirdata+'+'+rainratedata+'+'+raindata+'+'+barodata+'+'+dirdata+'+'+bftdata+'+--+'+barodata60+'+'+raindatamonth+'+'+raindatayear+'+'+raindatayesterday+'+'+intempdata+'+'+inhumdata
  +'+'+chilldata+'+'+temp60data+'+'+dailymaxtempstr+'+'+maxtemptimestr+'+'+dailymintempstr+'+'+mintemptimestr+'+'+maxavspeedstr+'+'+maxspeedtimestr+'+'+maxspeedstr+'+'+maxgusttimestr+'+'+maxdailybaro+'+'+dailyhibarostr+'+'+mindailybaro
  +'+'+dailylobarostr+'+'+mainunit.version+'+'+mainunit.version2+'+'+windmax10+'+--+--+'+uvdata+'+--+'+solardata+'+'+avtenwinddir+'+'+raintotal60+'+--+'+daynightflag+'+--+'+avtenwinddir+'+--+--+'+daylength+'+--+--+'+maxuvstr+'+'+maxdhum+'+'+maxdhumtime+'+'+mindhum+'+'+mindhumtime
  +'+'+maxdaydew+'+'+maxddewtime+'+'+mindaydew+'+'+minddewtime+'+'+temp15data+'+'+hum15data+'+'+dew15data+'+'+indoortemp15data+'+'+indoorhum15data+'+'+extratemp1+'+'+extratemp2+'+'+extratemp3+'+'+extrahum1+'+'+extrahum2+'+'+extrahum3;
When one puts 1 field at a row
Code: [Select]
'+timestamp+'
+'+tempdata+'
+'+humdata+'
+'+dewdata+'
+'+winddata+'
+'+gustdata+'
+'+dirdata+'
+'+rainratedata+'
+'+raindata+'
+'+barodata+'
+'+dirdata+'
+'+bftdata+'
+--
+'+barodata60+'
+'+raindatamonth+'
+'+raindatayear+'
+'+raindatayesterday+'
+'+intempdata+'
+'+inhumdata+'
+'+chilldata+'
+'+temp60data+'
+'+dailymaxtempstr+'
+'+maxtemptimestr+'
+'+dailymintempstr+'
+'+mintemptimestr+'
+'+maxavspeedstr+'
+'+maxspeedtimestr+'
+'+maxspeedstr+'
+'+maxgusttimestr+'
+'+maxdailybaro+'
+'+dailyhibarostr+'
+'+mindailybaro+'
+'+dailylobarostr+'
+'+mainunit.version+'
+'+mainunit.version2+'
+'+windmax10+'
+--
+--
+'+uvdata+'
+--
+'+solardata+'
+'+avtenwinddir+'
+'+raintotal60+'
+--
+'+daynightflag+'
+--
+'+avtenwinddir+'
+--
+--
+'+daylength+'
+--
+--
+'+maxuvstr+'
+'+maxdhum+'
+'+maxdhumtime+'
+'+mindhum+'
+'+mindhumtime+'
+'+maxdaydew+'
+'+maxddewtime+'
+'+mindaydew+'
+'+minddewtime+'
+'+temp15data+'
+'+hum15data+'
+'+dew15data+'
+'+indoortemp15data+'
+'+indoorhum15data+'
+'+extratemp1+'
+'+extratemp2+'
+'+extratemp3+'
+'+extrahum1+'
+'+extrahum2+'
+'+extrahum3;

First field has a space in it, so it counts as field[ 0 ] and [ 1 ]  Field [ 43 ] has the label +raintotal60+
Wim
« Last Edit: January 29, 2019, 08:45:31 PM by wvdkuil »
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Online Weather Display

  • Posts: 87,208
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #257 on: January 29, 2019, 09:33:31 PM »
raintotal60 is the rain total 1 hour ago

I was provided with only what the custom tags names were from what meteohub was putting out and so it was not easy to try and figure out what everything should or should not have been

Offline bitsostring

  • Posts: 975
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #258 on: January 31, 2019, 07:09:34 PM »
I had been experimenting with increased text size in Chrome browser settings and realised that it seems to affect the data-box outline size (not text size) in metar and earthquake pop-up windows too.

The metar attachment shows the result: metar2 is at default text size.
« Last Edit: January 31, 2019, 07:15:07 PM by bitsostring »
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,344
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #259 on: January 31, 2019, 09:51:58 PM »
I had been experimenting with increased text size in Chrome browser settings and realised that it seems to affect the data-box outline size (not text size) in metar and earthquake pop-up windows too.

The metar attachment shows the result: metar2 is at default text size.
All boxes and locations are using pixel addressing. When you increase the text-size the text will not fit as the box will not grow.
Use the Chrome built in resize where you can enlarge the whole window, not only the text.
I have no English Chrome available now, it is in my dutch version the fourth menu entry where you can enlarge the total window, not only the text-size.

Attached image, left chrome in large size, right FF in normal size.
With both sizes the text fits.
Wim
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline bitsostring

  • Posts: 975
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #260 on: January 31, 2019, 10:03:43 PM »
Thanks, Wim, zoom function works well.

When you increase the text-size the text will not fit as the box will not grow.

Trouble is, when one reaches a certain age one thinks that enlarging the text might be the generic answer to one's viewing problems  :wink:
« Last Edit: February 01, 2019, 10:43:26 PM by bitsostring »
It's meant to be fun. . .

Offline hcorrin

  • Posts: 1,257
  • Ballaugh Isle of Man GB
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Ballaugh Weather
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #261 on: January 31, 2019, 10:38:12 PM »
Have you found the windows magnifier it my help
https://support.microsoft.com/en-us/help/11542/windows-use-magnifier

Offline bitsostring

  • Posts: 975
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #262 on: January 31, 2019, 11:45:29 PM »
Have you found the windows magnifier it may help

Wow! I don't quite need that much, thanks!
It's meant to be fun. . .

Offline NorCal Dan

  • Dan - KJ6RGX
  • Posts: 10,553
  • Davis Vue/Win10
  • Ocean Park, WA.
  • OS/Browser:
  • Mac OS X 10.10.5
  • Chrome 72.0.3626.81
    • Traveling RV Weather
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #263 on: February 02, 2019, 03:44:17 AM »
It appears the tags being used in w34 for rain are incorrect for last hour rain.  The monthly is also wrong but that is an issue with WD not correctly reporting data until the first day of a month is over...but the last hour rain as shown in the WD screen is correct.  Is w34 able to access the Clientrawhour.txt file to grab info?
« Last Edit: February 02, 2019, 03:48:28 AM by NorCal Dan »

Offline GW400

  • Posts: 83
  • Klepp, Norway
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
Weather forecast issue with weather34 for WeatherDisplay
« Reply #264 on: February 02, 2019, 06:29:48 AM »
Weather forecast from Darksky is not working properly.
The API key is correct and I can see from my account page on their website that my installation is pulling the API about 80 - 100 times a day.
Still, the information shown is not up to date. See attached picture.
Regards G400

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,344
  • Leuven Belgium CET
  • OS/Browser:
  • iOS 12.0.1
  • Safari 12.0
    • My PWS at Leuven Belgium Europe
Re: Weather forecast issue with weather34 for WeatherDisplay
« Reply #265 on: February 02, 2019, 07:23:14 AM »
Weather forecast from Darksky is not working properly.
The API key is correct and I can see from my account page on their website that my installation is pulling the API about 80 - 100 times a day.
Still, the information shown is not up to date. See attached picture.
It is impossible to check what is happening when there is no link to the website.

Wim
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline GW400

  • Posts: 83
  • Klepp, Norway
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #266 on: February 02, 2019, 07:38:34 AM »
Sorry, I forgot to add url!
Try this one:
new-weather.meisal.com:82
Regards G400

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,344
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #267 on: February 02, 2019, 07:51:55 AM »
Sorry, I forgot to add url!
Try this one:
new-weather.meisal.com:82
There is one script to load all external data:
Code: [Select]
Fatal error: Uncaught Error: Call to undefined function curl_init() in /home/weather/public_html/w34_load_files.php:201
Stack trace: #0 /home/weather/public_html/w34_load_files.php(50): fnctn_load_file()
#1 /home/weather/public_html/_test.php(4): include('/home/weather/p...')
#2 {main} thrown in /home/weather/public_html/w34_load_files.php on line 201
Your own private PHP should support CURL to load the data from external sites.

I do not know which script is successfully accessing and using the DarkSky data 80-100 times a day.
All external accesses for "HWS-template for WD" should pass through this script.

For future problems you could make a info.php script available on your site. I attach this 1 line script,

Wim
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline GW400

  • Posts: 83
  • Klepp, Norway
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #268 on: February 02, 2019, 08:15:08 AM »
Thank you Win.
info.php added
Regards G400

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,344
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #269 on: February 02, 2019, 08:18:37 AM »
It appears the tags being used in w34 for rain are incorrect for last hour rain.  The monthly is also wrong but that is an issue with WD not correctly reporting data until the first day of a month is over...but the last hour rain as shown in the WD screen is correct.  Is w34 able to access the Clientrawhour.txt file to grab info?
Yes there is a problem. For clientraw it seems correct during the day, but not just after midnight, and when using the adapted script.  WDapi fails also.

I think that "Rain last hour" is a nice-to-have but non-essential value.  It is not available in some other w34-versions.  It was inserted as it was available from a  Meteobridge-tag.  Maybe we should drop that value.

If users want that value, we first have to define what it should contain: Assume it is now  10:15.
Do we want a "last-hour" => from 1 minute ago to 60 minutes ago:  09:15 => 10:14, that is how I try to calculate it from clientraw's  60 minutes fields.
Or "previous-hour" :  09:00 => 10:00, what i expected from the Wd-api
That value should also not be reset at 24:00 hours.

Maybe some active WD and HWS-user could ask Brian to check this out and how we can have a real "last-hour"
No problem to use another clientraw file for that, as long as the user it is uploading, but is would be nice to have the same value for clientraw and for Wdapi.

Wim
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/