cloudy cloudy

Author Topic: HWS-template (WD34 / weather34) April release  (Read 3643 times)

0 Members and 1 Guest are viewing this topic.

Offline meteosa

  • Posts: 48
  • Italy
  • OS/Browser:
  • Win NT 10.0
  • Firefox 66.0
    • MeteoSantAngelo.it
Re: HWS-template (WD34 / weather34) April release
« Reply #90 on: May 11, 2019, 12:38:12 PM »
@ALL
If you have untranslated words for a block  => in this case in the currentconditionsWD_block.php
1. Use the debug script w34_module_test.php => https://stazione.meteosantangelo.it/pwsWD/w34_module_test.php
2. Select the block in the top-row selection boxes and press "Test it"
3. The unformatted information is displayed iincluding
3.1 Error messages if there are any
3.2 Missing translation strings
Code: [Select]
  |Notte|Notte|
 |Asciutto|Asciutto|
 |snow|snow|
 |This hour|This hour|
 |Precipitation|Precipitation|
In this case there are 5 missing translations. The first two are caused by Italian words from WD and DarkSky, so they are correct Italian Language..
Then 3 translations which should be added.
The easy way, copy the missing translations, in this case the bottom 3, and add them to the bottom of the language file /pwsWD/languages/lang_it.txt
If meteosa checks that file, he will see that the language entry he added in the file also has the : character
Code: [Select]
|This hour:|Quest ora:|
It is best to always use the debug console and not copy the words from the pwsWD/index.php screen/blocks. As in this case it was the : character.
Sometimes the missing translations are composed of more then 1 translation.

Hopes this helps others also with these problems.

Wim

I have already done so but it does not translate the same. In fact if I check the language file there is this sentence but it is not translated. I don't understand why .. Thanks

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,129
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.131
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #91 on: May 11, 2019, 12:42:56 PM »
I have already done so but it does not translate the same. In fact if I check the language file there is this sentence but it is not translated. I don't understand why .. Thanks
PLEASE check your file at the bottom it has a line with:
Code: [Select]
   |This hour:|Quest ora:|That is an error as the debug-console says it should be
Code: [Select]
  |This hour|Quest ora|WITHOUT the : character

Wim

Offline meteosa

  • Posts: 48
  • Italy
  • OS/Browser:
  • Win NT 10.0
  • Firefox 66.0
    • MeteoSantAngelo.it
Re: HWS-template (WD34 / weather34) April release
« Reply #92 on: May 11, 2019, 02:33:30 PM »
PLEASE check your file at the bottom it has a line with:
Code: [Select]
   |This hour:|Quest ora:|That is an error as the debug-console says it should be
Code: [Select]
  |This hour|Quest ora|WITHOUT the : character

Wim

Ok now I understand. Thanks a lot!  :D

Offline bitsostring

  • Posts: 796
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: HWS-template (WD34 / weather34) April release
« Reply #93 on: May 18, 2019, 12:09:26 PM »
WD clientraw users can display max-min times in the small max-min temperature block by adding two lines to the relevant section of w34_livedata.php:

Code: [Select]
$weather["maxtemptime"] = $wd[174];
$weather["lowtemptime"] = $wd[175];

For WD api use $wd[23] and $wd[25] respectively. Works for the January release too.
« Last Edit: May 18, 2019, 12:25:20 PM by bitsostring »
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,129
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.131
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #94 on: May 18, 2019, 02:30:30 PM »
@all
I am off for a 2 weeks vacation trip without decent internet. Just my phone/iPad for use in some hotels.
So answering posts will be minimal and in the evening (UTC+3) only .
Alpha/Beta release
The final beta July release is running at https://www.weerstation-herent.be/pws07/
Loading of the main window is far quicker and the scripts should run fair enough on smaller webservers also.
Availability second week of June.
Missing fields
The livedata script => https://www.weerstation-herent.be/pws07/w34_livedata.php?sce=view 
Attached a pdf of used fields in the july release, not all weather-programs deliver all fields, the "n/a" is used instead. All  the ones on the pdf are supported / used.
Fields names are changed to be more consistent, temp-field-names will change.
Extra fields
Extra-temp/hum and soil-temp/moist will need an extra upload file using FTP, this will be finalised when I am back home on June3.
An example from a Cumulus fileformat:  | HWS-field-name | field-type | tag for weather-program
Code: [Select]
|tempActExtra1|temp|<#ExtraTemp1>|!
|tempActExtra2|temp|<#ExtraTemp2>|!
|humiActExtra1|hum|<#ExtraHum1>|!
|humiActExtra2|hum|<#ExtraHum2>|!
All normal weather-field-types and also text, logic, data-time will be supported.
So users can add their own fields, use them in extra scripts, use the translation files for the descriptive texts.

Wim

Offline ktuley

  • Posts: 5
  • Albuquerque, NM USA
  • OS/Browser:
  • Mac OS X 10.14.6
  • Safari 12.1.2
    • Tuley Weather
Re: HWS-template (WD34 / weather34) April release
« Reply #95 on: May 19, 2019, 08:56:50 PM »
AFAIK (as far as i know) you are a very rare species, using WU.
So you are the first one to encounter this.

But yes, it should be in the documentation and it will be for sure when i am finished with the final WD34 release somewhere in October-December.
Wim

I'll using WU as well....til I figure out how to get my station data to my hosting site... Had the same issue with long times for offline to be "online".

Appreciate the explanation and cron solution.  Just set cron up....

Thanks!

Ken

Offline bitsostring

  • Posts: 796
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: HWS-template (WD34 / weather34) April release
« Reply #96 on: May 19, 2019, 09:15:24 PM »
I'll using WU as well....til I figure out how to get my station data to my hosting site.

Looks like you are using WeatherCat too, so can you not just create a realtime.txt file on the server that can be used as the data source for w34?

(I'm no expert on WeatherCat!)

It's meant to be fun. . .

Offline ktuley

  • Posts: 5
  • Albuquerque, NM USA
  • OS/Browser:
  • Mac OS X 10.14.6
  • Safari 12.1.2
    • Tuley Weather
Re: HWS-template (WD34 / weather34) April release
« Reply #97 on: May 19, 2019, 09:19:45 PM »
Looks like you are using WeatherCat too, so can you not just create a realtime.txt file on the server that can be used as the data source for w34?

(I'm no expert on WeatherCat!)

Just need some time to figure out how to do it. I think it's via the cgi in WeatherCat???? got "instructions"???

Thanks

Ken

Offline Tlowe

  • Posts: 131
  • Minneapolis, MN, US
  • OS/Browser:
  • Win NT 10.0
  • Chrome 74.0.3729.157
Re: HWS-template (WD34 / weather34) April release
« Reply #98 on: May 19, 2019, 11:55:20 PM »
I reinstalled my installation on my weather station dedicated laptop bc W10 seemed to be getting buggy and needed a fresh install.

Now the laptop is running great and wdisplay is up and running great also. I have one problem.

When I click on any graph from within W34 I get this error, which I can't figure out, any ideas? Worked fine yesterday, after the new install, but on my second day on new install I get this error.

It looks like some file is not getting uploaded anymore.

Quote
No valid data file found, script ends

DEBUGw34_graph_xx.php(23) loaded =>w34_graph_bw.php|00|2019-03-03| w34_graph_xx.php (27) include_once =>./w34_livedata.php w34_livedata.php (25) version =>w34_livedata.php|00|2019-01-22| => include_once from =>w34_graph_xx.php (28) w34_livedata.php (28) include_once =>w34_settings.php w34_settings.php (25) version =>w34_settings.php|00|2019-04-10| w34_settings.php (28) include =>w34_settings1.php w34_settings1.php (4) version =>w34_settings1.php|00|2019-05-19| w34_settings.php (218) $units =us $windunit=mph $tempunit=F $rainunit=in $pressureunit=inHg $distanceunit=mi $wu_unit=m w34_livedata.php (32) include_once =>w34_shared.php w34_shared.php (22) version =>w34_shared.php|00|2019-03-03| w34_graph_xx.php (31) include_once =>./w34_common.php w34_common.php (26) version =>w34_common.php|00|2019-01-03| w34_common.php (29) include_once =>w34_settings1.php w34_graph_xx.php (43) period set to day from request day w34_graph_xx.php (50) type set to wind from request wind w34_graph_xx.php (69) loading =>./chartswudata/KMNLONGL5YMD.txt w34_graph_xx.php (96)Line-names contains
« Last Edit: May 20, 2019, 03:19:16 AM by Tlowe »

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,129
  • Leuven Belgium CET
  • OS/Browser:
  • iOS 12.0.1
  • Safari 12.0
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #99 on: May 20, 2019, 03:49:15 AM »
The WU site for historical data is down. Nobody knows if it is on purpose or an error.
That is why the graphic do not work.

Ken True had a discussion about this problem  on the wxforum, check there.

As woon as there is more informatieontsluiting we know what to do.
Wim

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,129
  • Leuven Belgium CET
  • OS/Browser:
  • iOS 12.0.1
  • Safari 12.0
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #100 on: May 20, 2019, 04:32:48 AM »
Just need some time to figure out how to do it. I think it's via the cgi in WeatherCat???? got "instructions"???

Thanks

Ken
The weathercat realtime.txt file discussion can be found here
https://athena.trixology.com/index.php?topic=2926.msg28455#msg28455

Wim

Offline saratogaWX

  • Global Moderator
  • Posts: 5,912
  • Ken True
  • Saratoga, CA, USA 37:16:28N, 122:01:23W - Elev: 374ft.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 66.0
    • Saratoga Weather
Re: HWS-template (WD34 / weather34) April release
« Reply #101 on: May 20, 2019, 03:20:53 PM »
I received word from Victoria Gardner that the old query for the CSV data is now dead (removed from wunderground site functionality).

As such, any scripts (like WU-History, etc) and the Home Weather Station templates that relied on that data are now broken (and not soon to be fixed).

The PWS WU/TMC API does NOT provide the equivalent functionality (no 'year' or 'month' queries, only one-day/5-minute intervals or last 7 days/hourly)

We have some coding challenges ahead.  Sigh.   It would have been kind for them to announce it before pulling the plug.
Ken True
Saratoga Weather
CWOP: CW1792
WeatherUnderground: KCASARAT1
Free weather website PHP scripts and WD website AJAX templates

Offline Tlowe

  • Posts: 131
  • Minneapolis, MN, US
  • OS/Browser:
  • Win NT 10.0
  • Chrome 74.0.3729.157
Re: HWS-template (WD34 / weather34) April release
« Reply #102 on: May 20, 2019, 03:28:27 PM »
I have no problem creating a MySQL database for my station. Is there some documentation available for setting up the database correctly, in the wdisplay documentation. And then I would like to upload a couple of years of data.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,129
  • Leuven Belgium CET
  • OS/Browser:
  • iOS 12.0.1
  • Safari 12.0
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #103 on: May 20, 2019, 03:40:04 PM »
I have no problem creating a MySQL database for my station. Is there some documentation available for setting up the database correctly, in the wdisplay documentation. And then I would like to upload a couple of years of data.
For the current year the description can be found at http://wd34.weather-template.com
But it is not a database, just 1 table to store today’s data in.
Every night the min-max values are calculated using SQL and store in the .CSV And that is all the database is used for.
Today’s data is also in an .csv file
===
As I am on vacation until June 3, With an iPad only, there is not much I can do before June.
All ideas are welcome.

Wim
Wim
« Last Edit: May 20, 2019, 03:43:44 PM by wvdkuil »

Offline Tlowe

  • Posts: 131
  • Minneapolis, MN, US
  • OS/Browser:
  • Win NT 10.0
  • Chrome 74.0.3729.157
Re: HWS-template (WD34 / weather34) April release
« Reply #104 on: May 20, 2019, 03:52:55 PM »
Thanks Wim!