Author Topic: Weather Template and scripts from Leuven/Belgium/Europe  (Read 196066 times)

0 Members and 1 Guest are viewing this topic.

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #325 on: August 01, 2014, 03:31:21 PM »
Hi

I´m trying to print out the ISS status, Reception status and battery voltage, but i have looked anywhere, and I can´t seem to find the tags.
I have been looking in testtag.txt and so on.

So my question is, are there somewhere where I haven´t been looking properly ;-)
These tags are not included in the default tag-files. But if your weatherprogram and weatherstation support them, you can add them to the tag-files yourself.

Wim

I´m using WD, so if I find the tag name, I´ll just make new inserts in testtags.txt, copy testtags.txt to webfiles folder in WD nd then let WD uploas as usual?
That would certainly work. Wim

Offline erikmm

  • Senior Contributor
  • ****
  • Posts: 201
    • Hørning By Vejr
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #326 on: August 01, 2014, 03:35:51 PM »
Thanks Wim :-)
Erik M M
---------------
Hørning By Vejr
http://www.danmaach.dk


Offline erikmm

  • Senior Contributor
  • ****
  • Posts: 201
    • Hørning By Vejr
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #327 on: August 01, 2014, 04:34:53 PM »
Wim

worked nearly perfect, but reception shows odd, maybe you can help me here ;-)

Printet, it looks like this: ISS status: Ok - Battery voltage: 4,2 - Reception: 30128 64 0 1427 7

You can see it here, at the bottom of the page: http://byvejr.danmaach.dk/weather2_tablet/

Thanks in advance

Solved: used wrong tag....  :oops:
« Last Edit: August 01, 2014, 04:48:46 PM by erikmm »
Erik M M
---------------
Hørning By Vejr
http://www.danmaach.dk


Offline Josiah

  • Add-InWx Software Author
  • Forecaster
  • *****
  • Posts: 449
    • Add-InWx
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #328 on: August 01, 2014, 04:48:29 PM »
erikmm,
If you look in the Communications reference provided by Davis, (Here's a Link: http://www.davisnet.com/support/weather/downloads/software_dllsdk.asp)

on page 11 it states:

Quote
"RXCHECK"
It sends the Console Diagnostics report. The following values are sent on one line as a text string: total packets received, total packets missed, number of resynchronizations, the largest number of packets received in a row., and the number of CRC errors detected.
All values are recorded since midnight, or since the diagnostics are cleared manually.
Example:
>"RXCHECK"<LF>
<<LF><CR>”OK”<LF><CR>" 21629 15 0 3204 128"<LF><CR>
It shows we received 21,629 packets, missed 15 packets, there were no resynchronizations, the maximum number of packets received in a row without an error was 3204, and there were 128 CRC errors detected.

It also describes how to Calculate ISS reception on page 51.

Hope this helps.

Offline erikmm

  • Senior Contributor
  • ****
  • Posts: 201
    • Hørning By Vejr
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #329 on: August 01, 2014, 04:50:40 PM »
erikmm,
If you look in the Communications reference provided by Davis, (Here's a Link: http://www.davisnet.com/support/weather/downloads/software_dllsdk.asp)

on page 11 it states:

Quote
"RXCHECK"
It sends the Console Diagnostics report. The following values are sent on one line as a text string: total packets received, total packets missed, number of resynchronizations, the largest number of packets received in a row., and the number of CRC errors detected.
All values are recorded since midnight, or since the diagnostics are cleared manually.
Example:
>"RXCHECK"<LF>
<<LF><CR>”OK”<LF><CR>" 21629 15 0 3204 128"<LF><CR>
It shows we received 21,629 packets, missed 15 packets, there were no resynchronizations, the maximum number of packets received in a row without an error was 3204, and there were 128 CRC errors detected.

It also describes how to Calculate ISS reception on page 51.

Hope this helps.

Oh yes, that helped, and also helped if I used the right tag, now it shows 100% ;-)
Erik M M
---------------
Hørning By Vejr
http://www.danmaach.dk


Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #330 on: August 02, 2014, 03:55:08 AM »
Hello Wim wanted to congratulate you for the scripts created
I logged into my site the report script here http://www.pomeziameteo.altervista.org/index.php/grafici-meteo/storico-dati-meteo

Then I was inserting the script wuforecast
I created the file in Italian but I can not make it work even if you set (IT)
you can see it here
http://pomeziameteo.altervista.org/wuforecast/myWUforecast.php
Thank you very much  :grin:

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #331 on: August 02, 2014, 04:21:02 AM »
Hello Wim wanted to congratulate you for the scripts created
I logged into my site the report script here http://www.pomeziameteo.altervista.org/index.php/grafici-meteo/storico-dati-meteo

Then I was inserting the script wuforecast
I created the file in Italian but I can not make it work even if you set (IT)
you can see it here
http://pomeziameteo.altervista.org/wuforecast/myWUforecast.php
Thank you very much  :grin:
@djroby19
I added the Italian language.
1. unzip the attached script
2. make a copy/backup of the current wuforecast/wuforecast3.php
3. replace wuforecast/wuforecast3.php with the unzipped one
@ALL
What is needed for a new language are the translations in the wuforecast/lang/ folder.
AND
the winddirections in the new language.
Without the winddirections a new language will not become operational even if you translated all texts!
Code: [Select]
$windCodes['it']        = array ('it','N','E','S','O','Nord', 'Est', 'Sud',  'Ovest');     
#$windCodes['??']       = array ('??','N','E','S','W','North','East','South','West');      // change to your new language
You can add those directions yourself in wuforecast3.php or send me the correct descriptions.

Wim
« Last Edit: August 02, 2014, 04:35:25 AM by wvdkuil »

Offline djroby19

  • Senior Member
  • **
  • Posts: 88
    • Pomeziameteo
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #332 on: August 02, 2014, 04:27:34 AM »
It works perfectly once I insert it into my site page
here http://www.pomeziameteo.altervista.org/  =D&gt;
What do you think?
Can I ask you if you have 2 scripts one for air quality
and one for UV?  \:D/

Thanks again Wim for their support and apologize if I'm allowed to ask two scripts ..
I wanted your opinion on my site ...
I'm opening another host and surely I will use your template .....
« Last Edit: August 03, 2014, 02:25:56 PM by djroby19 »

Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 220
    • Lightning Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #333 on: August 08, 2014, 10:28:55 PM »
Wim, 

I recently lost Internet access for several days. My WD was continuing to collect data during this time.  I cannot get the clientraw.txt file to update on the server. WD is showing the files uploading normally.
Any suggestions?
Facebook:
Lightning Weather
   www.facebook.com/lightningweather
                             /groups/lightningweather
Lightning Weather Quad Cities
                             /lightningwxqc
                             /groups/lightningWXQC
Weather Station Hardware: Davis Vantage Pro2 6152
Weather Station Software: WD - 10.37S Build XXX (Beta)
Page Template: MeteoTemplate v1x. (Current Active)

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #334 on: August 09, 2014, 02:18:24 AM »
Wim, 

I recently lost Internet access for several days. My WD was continuing to collect data during this time.  I cannot get the clientraw.txt file to update on the server. WD is showing the files uploading normally.
Any suggestions?
as far as I know there are two (2) ftp processes which have to run in the WeatherDisplay PC. One for the clientraw realtime files. And one for all the other files. They both have a log where you could see what the problem is. I just use WD for uploading its data and are not familiar with its further settings. Maybe you should ask for assistance in another thread or another forum, as it has nothing to do with the template. It is a WD problem so you will find more knowledgable help at other places.
Wim

Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 220
    • Lightning Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #335 on: August 09, 2014, 01:00:40 PM »
Wim, 
I checked this morning and testtags and clientraw are both showing the latest information. My home page is not updating however. It appears to be an Ajax issue if what I'm seeing is correct.
Facebook:
Lightning Weather
   www.facebook.com/lightningweather
                             /groups/lightningweather
Lightning Weather Quad Cities
                             /lightningwxqc
                             /groups/lightningWXQC
Weather Station Hardware: Davis Vantage Pro2 6152
Weather Station Software: WD - 10.37S Build XXX (Beta)
Page Template: MeteoTemplate v1x. (Current Active)

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #336 on: August 10, 2014, 03:50:33 AM »
Wim, 
I checked this morning and testtags and clientraw are both showing the latest information. My home page is not updating however. It appears to be an Ajax issue if what I'm seeing is correct.
I think we are seeing different things then.
When I look into your uploaded files:
quadcities/uploadWD/customclientraw.txt =>  dated 2014,08,04,09,58,38  UTC
quadcities/uploadWD/yowindow.xml  => dated 08/04/14 04:58 AM
quadcities/uploadWD/clientraw.txt   dated 8/4/2014
I can not look into a php file  directly, but the template code checks that date also, message:
<!-- uploaded file older than cached file  -->
Using the config program the contents of testtags.php are dated 20140804045500

So all uploaded files to your website => quadcities => uploadWD are dated August 4, around 4:55AM

This is not an Ajax issue either. When a page is loaded, the first information shown  is the PHP retrieved information. After so many minutes the ajax routines retrieve an update.

Wim

Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 220
    • Lightning Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #337 on: August 10, 2014, 11:42:21 AM »
That's the confusing part.  When I go into the uploadWD folder via FTP, the files are up to date.  So how can I fix this?
Facebook:
Lightning Weather
   www.facebook.com/lightningweather
                             /groups/lightningweather
Lightning Weather Quad Cities
                             /lightningwxqc
                             /groups/lightningWXQC
Weather Station Hardware: Davis Vantage Pro2 6152
Weather Station Software: WD - 10.37S Build XXX (Beta)
Page Template: MeteoTemplate v1x. (Current Active)

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #338 on: August 10, 2014, 12:01:26 PM »
That's the confusing part.  When I go into the uploadWD folder via FTP, the files are up to date.  So how can I fix this?
I have no idea.
Every browser I tested reads an old file, does not matter .txt or .xml
All scripts on your site read get these old files also.
All files in http://www.lightningweather.com/quadcities/uploadWD/ are from August 4 or older.

This means that you are looking at other files probably on another location.

WeatherDisplay is NOT uploading to http://lightningweather.com/quadcities/uploadWD  since August 4, 4:55AM.

The files you are looking at,  have the same filename so they must be on another location.
There is always only 1 file with a certain name. So as an example: there is only one
http://lightningweather.com/quadcities/uploadWD/dailydatalog.txt which is from August 4.

Wim




Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 220
    • Lightning Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #339 on: August 11, 2014, 06:36:59 PM »
Wim
Figured it out.  My hosting updated their servers. In the process they changed the FTP server address. Although my files were uploading like they should,  since I wasn't using the proper FTP server address,  it wasn't updating the site.
Once I got everything changed, the FTP uploader on WD started working properly.
They didn't make me aware of the updates prior to and the updates took place while my Internet was down.
Facebook:
Lightning Weather
   www.facebook.com/lightningweather
                             /groups/lightningweather
Lightning Weather Quad Cities
                             /lightningwxqc
                             /groups/lightningWXQC
Weather Station Hardware: Davis Vantage Pro2 6152
Weather Station Software: WD - 10.37S Build XXX (Beta)
Page Template: MeteoTemplate v1x. (Current Active)

Offline youngros

  • Contributor
  • ***
  • Posts: 104
    • Sans Souci Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #340 on: August 12, 2014, 06:11:53 PM »
Hi Wim,
I have just noticed that instead of having clear it says sun for both night and day. Now I did fix this in the language translation, so not sure why it has decided not to work.  www.mad-weather.com
This is still the older modified version and not the later version 3 as although that works fine, the wind speed is 10mph more than it should be.
Maybe I didn't notice it when you modified it that this happened. Just looks odd that it says sunny at night!
I did update the api version to 1.9.
Rosalind

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #341 on: August 13, 2014, 06:22:26 AM »
. . . shortened . . .
Can I ask you if you have 2 scripts one for air quality
and one for UV?  \:D/
. . . shortened . . .
My UV forecast script is also usable outside the Leuven-template and available at:
http://www.weerstation-leuven.be/demouv/demo.php

All scripts available and the Leuven-template information can be found at:
http://www.weerstation-leuven.be/

Wim

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #342 on: August 13, 2014, 06:53:47 AM »
Hi Wim,
I have just noticed that instead of having clear it says sun for both night and day. Now I did fix this in the language translation, so not sure why it has decided not to work.  www.mad-weather.com
Hello Rosalind,
The "problem" is that YrNo MetNo delivers not the word "clear" but the word "sun" for both nighttime as daytime. One has to adapt those descriptions in the script itself. As i did in the v3 version.

If you did this in the language files, the last word at the end of the last file read is used.
Quote
This is still the older modified version and not the later version 3 as although that works fine, the wind speed is 10mph more than it should be.
Could you please be more specific and or find the xml with the differences?
When i test it with your coordinates the windspeed in api 1.8 and 1.9 are the same, as are the results of the old script version and v3.
Quote
Maybe I didn't notice it when you modified it that this happened. Just looks odd that it says sunny at night!
I did update the api version to 1.9.
Be aware that not only the version number changed. Also the number (15 => over 40)  of icons and the descriptive texts (all capitals to normal texts).
Quote
Rosalind
Wim

Offline youngros

  • Contributor
  • ***
  • Posts: 104
    • Sans Souci Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #343 on: August 13, 2014, 07:44:34 AM »
Hi Wim,
www.mad-weather.com/metno3.php is version 3 but the wind speeds are showing much higher than on www.mad-weather.com
The version on the home page is the version to override the night time issue. I added in the corrections to the SUN|clear into the saratoga lang file and that worked, for some reason it has stopped working.
I also looked at Henkkas YrNo forecast, similar wind speeds to version 3 but that has an issue with being 6 hours out on the default setting but is OK on a search.
There is always something. Maybe I have to live with the different wind speeds.
Rosalind

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #344 on: August 13, 2014, 09:09:21 AM »
Hi Wim,
www.mad-weather.com/metno3.php is version 3 but the wind speeds are showing much higher than on www.mad-weather.com
The version on the home page is the version to override the night time issue. I added in the corrections to the SUN|clear into the saratoga lang file and that worked, for some reason it has stopped working.
I also looked at Henkkas YrNo forecast, similar wind speeds to version 3 but that has an issue with being 6 hours out on the default setting but is OK on a search.
There is always something. Maybe I have to live with the different wind speeds.
Rosalind
Hello Rosalind,
Just to make sure I did the folowing tests:
api 1.8 - 1.9
Code: [Select]
http://api.met.no/weatherapi/locationforecast/1.9/?lat=32.7350&lon=-17.1940
http://api.met.no/weatherapi/locationforecast/1.8/?lat=32.7350&lon=-17.1940
Identical results for the windpeeds and other weather values. Differences are only in the descriptive texts/icons en temperature description.

convert windspeed functionsRan both wsmetNoSA as v3 with both xml's which gave identical results for windspeed in m/s - km/h as mph.  Checked with http://www.csgnetwork.com/windspeedconv.html and the conversions are correct. So for example 6.4 m/s from the xml results in 6 m/s - 14 mph or 23 km/h.

Conclusion: I have only one explanation why your information  on your startpage displays lower than the xml forecast supplies.

Your startpage shows  the same amount as the xml windspeed (which is in m/s) but with mph as unit.
So the xml says 5.1 m/s which you display as 5mph on your startpage.
3.7 m/s becomes 4 mph and so on.

There are no differences  between api 1.8 and 1.9 in weather-values.  There is only an error in the windspeed conversion in this specific version of the old script you are using. And for that error I have to say "sorry". I hope you will switch to the up-to-date version 3 scripts soon.

Wim

====

Here the results from the tests:
          aft wed-ev wed-ni

your page
temp   24     23        21
wind  5mph   4mph   8mph

v3 scripts
temp   24     23         21
wind  11mph  8mph   17mph

api xml both 1.8 and 1.9
        24.4    22.7     21.4
wind  5.1m/s 3.7m/s   7.6m/s

wind converter calculate
in mph 11.40  8.27   17.00

Offline youngros

  • Contributor
  • ***
  • Posts: 104
    • Sans Souci Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #345 on: August 14, 2014, 05:55:23 AM »
Hi Wim,
Thanks for the time and testing. I had checked the kmh but not the m/s on the homepage. I've now updated to V3.
The only small issue is that you have only used the small icon set, I changed those to the previous ones used in V2, but although I can make them bigger for the main icons it would be better to be able to use the larger icons and then make them a bit smaller. But that then makes the icons on the graph too big and there is no way of resizing those. Would it possible to have the graphs use a separate set as previously?
Rosalind

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #346 on: August 14, 2014, 06:23:25 AM »
Hi Wim,
Thanks for the time and testing. I had checked the kmh but not the m/s on the homepage. I've now updated to V3.
The only small issue is that you have only used the small icon set, I changed those to the previous ones used in V2, but although I can make them bigger for the main icons it would be better to be able to use the larger icons and then make them a bit smaller. But that then makes the icons on the graph too big and there is no way of resizing those. Would it possible to have the graphs use a separate set as previously?
Rosalind
There are two sets of icons for the conditions (KDE and YrNo).
There are two sizes used in the script. One for the tables (larger) and one for the graphs (smaller).
In the download there is only one size for each set which is used for both tables and graphs.
Because I did not locate any 1.9 "metno-style" fonts other than 38px.

There are also two different sets for the wind-arrows, blue and white ones. Both are in the download.

You can supply your own icons in any size you want.

In metnoSettings.php line 101-112 one defines the folders where the icons are kept and the extension of the icons. So if you simply duplicate the img/yrno_icons folder with a name yrno_icons_small and change the setting from
Code: [Select]
$iconsMetnoSmall= $iconsMetno;  to
Code: [Select]
$iconsMetnoSmall= $iconsDir.'yrno_icons_small/';  all graphs would use one set and you could change the "large" set.

Be aware that there are double the number of icons compared to api 1.8  So if you want to use older sets you have to create a few for yourself.

IMPORTANT: The javascript-graphs can not resize an icon. So leave the size of the small icons as is. In the other outputs the size is specified in the html so you can use any icon, larger or smaller as it is resized by the browser.

Wim

Offline youngros

  • Contributor
  • ***
  • Posts: 104
    • Sans Souci Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #347 on: August 14, 2014, 07:45:40 AM »
Perfect, thanks Wim.
I will keep an eye on which of the icons I may have to reproduce. Snow is not obviously going to be an issue!
I like the idea of having all forecast using the same icons, continuity.

Rosalind

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #348 on: August 14, 2014, 08:03:30 AM »
Perfect, thanks Wim.
. . . shortened . . .
I like the idea of having all forecast using the same icons, continuity.
Rosalind
That is why I use for all scripts and the template  as a default iconset the KDE icons. They are clear, without any extra space. And one should see in any of the forecasts the same icon as in the current conditions.

Wim

Offline erikmm

  • Senior Contributor
  • ****
  • Posts: 201
    • Hørning By Vejr
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #349 on: August 18, 2014, 08:07:00 AM »
Hi Wim

Have been looking every where for the KDE Weather icon pack (used as default in your template)

I need the icons to be 64x64 (Those in the template is 32x32 and 128x128)

Could you be kind and point me in the right direction

Thanks in advance
Erik M M
---------------
Hørning By Vejr
http://www.danmaach.dk


 

anything