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

0 Members and 1 Guest are viewing this topic.

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1996
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #200 on: January 28, 2014, 09:52:54 AM »
Small query, this may sound like a particularly dumb and trivial question, I've been rearranging menu tabs and would like all the main tabs descriptions to have uppercase first letter example "home page" to be "Home Page", webcam to Webcam , altering the text in wsMenuData.xml doesn't seem to affect some of them and cant find anything in the Wiki
There are no dumb questions, really. This is a huge template with hundreds of scripts.
There are facilities I probably have not yet documented, like this one.
There is a setting in wsSettings.php to force  all(translated)  texts to lowercase. Probably this is set to true.
Code: [Select]
$SITE['textLowerCase'] = true;  // all text to lowercase = true  or leave all texts as they are supplied (false)   If you set it to false, all texts remain as they are.
Succes, Wim

Offline stewart45

  • Contributor
  • ***
  • Posts: 123
    • Newlands Weather Station
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #201 on: January 28, 2014, 10:16:44 AM »
Great, everything changed except one" maps" for some reason stayed lower case. this is the setting in wsMenuData.xml  <item caption="Maps">

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1996
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #202 on: January 28, 2014, 10:28:20 AM »
Great, everything changed except one" maps" for some reason stayed lower case. this is the setting in wsMenuData.xml  <item caption="Maps">
Well than it is translated to "maps", maybe for other places in the scripts. Either change the name in the menu to "Weather maps" which is probably not there or search the english language file.
Wim

Offline stewart45

  • Contributor
  • ***
  • Posts: 123
    • Newlands Weather Station
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #203 on: January 28, 2014, 10:55:34 AM »
Couldn't find anything wrong on the language page, but as you point out 'more than one way to skin a cat',  very impressive bit of software still finding my way around, how long did it take you to get it to the stage it is now.

Offline marfanuk

  • Member
  • *
  • Posts: 28
  • Davis Vantage Vue/Meteobridge/Weather34
    • Nantwich Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #204 on: February 02, 2014, 09:14:32 AM »
Great, everything changed except one" maps" for some reason stayed lower case. this is the setting in wsMenuData.xml  <item caption="Maps">
Well than it is translated to "maps", maybe for other places in the scripts. Either change the name in the menu to "Weather maps" which is probably not there or search the english language file.
Wim

have you fixed this yet as i cant see it on your page Stewart?

Offline stewart45

  • Contributor
  • ***
  • Posts: 123
    • Newlands Weather Station
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #205 on: February 02, 2014, 03:39:48 PM »
couldn't find that one but as I only had 2 maps that I was using I moved them into the main menu its not too cluttered

Offline marfanuk

  • Member
  • *
  • Posts: 28
  • Davis Vantage Vue/Meteobridge/Weather34
    • Nantwich Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #206 on: February 02, 2014, 03:43:50 PM »
I changed it on mine if ever you change your mind.

go to menu style and add text-transform: capitalize to #nav a
« Last Edit: February 02, 2014, 03:51:37 PM by marfanuk »

Offline stewart45

  • Contributor
  • ***
  • Posts: 123
    • Newlands Weather Station
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #207 on: February 03, 2014, 04:24:48 AM »
Thanks might try that

Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 220
    • Lightning Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #208 on: March 20, 2014, 03:14:45 PM »
Wim,
I am looking to add more counties to my alerts.  Currently my home County is the only County I have and have several others that I would like to add.
How can I go about adding multiple counties? I am aware I may have to add a cron job to get all of them to work.
Would I be able to use Curly's alerts scripts?
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 wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1996
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #209 on: March 20, 2014, 03:20:55 PM »
Wim,
I am looking to add more counties to my alerts.  Currently my home County is the only County I have and have several others that I would like to add.
How can I go about adding multiple counties? I am aware I may have to add a cron job to get all of them to work.
I retrieve the alerts via xml feeds. It is not difficult to add more. But indeed they could be better retrieved by a cron job to lower the waiting time. It is a nice idea and see the next weekend how much work it is.
Please mail me or post:
1 a list of the counties you want to add so I can set up a test environment.
2. maybe a screenshot of another website which shows multiple alerts for different counties.
Quote
Would I be able to use Curly's alerts scripts?
I am not familar with all american scripts. Do you have the URL?
Wim

Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 220
    • Lightning Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #210 on: April 06, 2014, 05:04:57 PM »
Wim,
I am looking to add more counties to my alerts.  Currently my home County is the only County I have and have several others that I would like to add.
How can I go about adding multiple counties? I am aware I may have to add a cron job to get all of them to work.
I retrieve the alerts via xml feeds. It is not difficult to add more. But indeed they could be better retrieved by a cron job to lower the waiting time. It is a nice idea and see the next weekend how much work it is.
Please mail me or post:
1 a list of the counties you want to add so I can set up a test environment.
2. maybe a screenshot of another website which shows multiple alerts for different counties.
Quote
Would I be able to use Curly's alerts scripts?
I am not familar with all american scripts. Do you have the URL?
Wim

Wim,

I appologize for the delay in response. you can Go here to see the script for nws-alerts by Curly.
This is a script that can be used with the Saratoga/Carter Lake template or as a stand alone template.
I am attempting to utilize the script on my site now. However, I am having issues with getting the page(s) to show up. I was able to get the page within the template to show up. The page opens blank even though I have "no warnings" alert box set to true.
If I go to the actual pages nws-alerts.php (main alerts page) nws-summary and nws-details pages, I get a 500 internal server error. I have the page set up in wsMenuData.xml as index.php?p=57-3.
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 wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1996
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #211 on: April 07, 2014, 03:10:34 AM »
Wim,
I am looking to add more counties to my alerts.  Currently my home County is the only County I have and have several others that I would like to add.
How can I go about adding multiple counties? I am aware I may have to add a cron job to get all of them to work.
I retrieve the alerts via xml feeds. It is not difficult to add more. But indeed they could be better retrieved by a cron job to lower the waiting time. It is a nice idea and see the next weekend how much work it is.
Please mail me or post:
1 a list of the counties you want to add so I can set up a test environment.
2. maybe a screenshot of another website which shows multiple alerts for different counties.
Quote
Would I be able to use Curly's alerts scripts?
I am not familar with all american scripts. Do you have the URL?
Wim

Wim,

I appologize for the delay in response. you can Go here to see the script for nws-alerts by Curly.
This is a script that can be used with the Saratoga/Carter Lake template or as a stand alone template.
I am attempting to utilize the script on my site now. However, I am having issues with getting the page(s) to show up. I was able to get the page within the template to show up. The page opens blank even though I have "no warnings" alert box set to true.
If I go to the actual pages nws-alerts.php (main alerts page) nws-summary and nws-details pages, I get a 500 internal server error. I have the page set up in wsMenuData.xml as index.php?p=57-3.
Sorry, I am currently on vacation with bad/non existent internet. I will look into this after april 16.
Wim

Offline ea1hmy

  • Contributor
  • ***
  • Posts: 120
    • meteotorrelavega
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #212 on: April 15, 2014, 11:58:40 AM »
hello
I'm trying to configure the template to take data on the following sites

wsSettings.php'
$SITE['wxsimPage']      = 'yes';          // #####
$SITE['wxsimDir']      = './wsWxsim/';
$SITE['wxsimData']      = './../';         // root folder

wsSettingsWeather.php
#$SITE['uploadDir']      =  'upload'.$SITE['WXsoftware'].'/';      // #####   where to store uploaded files (weather variables graphs clientraw)

$SITE['uploadDir']      =  './../';                           // #####   with this setting: uploaded files are stored in ROOT

#$SITE['clientrawDir']    = $SITE['uploadDir'];                   // #####   for standard loaction of clientraw

$SITE['clientrawDir']    = './../';                            // #####   with this setting:  clientraw files are stored in ROOT

$SITE['steelFile']      = $SITE[''].'./../customclientraw.txt';   // realtime tags (also for steelseries)

   $SITE['wsTags']       = $SITE[''].'./../testtags.php';          // for current and yesterday weather variables


at first sight works but does not update the header gizmo
any suggestions

thanks
emilio
« Last Edit: April 15, 2014, 12:00:49 PM by ea1hmy »

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1996
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #213 on: April 15, 2014, 12:19:07 PM »
hello
I'm trying to configure the template to take data on the following sites

wsSettings.php'
$SITE['wxsimPage']      = 'yes';          // #####
$SITE['wxsimDir']      = './wsWxsim/';
$SITE['wxsimData']      = './../';         // root folder

wsSettingsWeather.php
#$SITE['uploadDir']      =  'upload'.$SITE['WXsoftware'].'/';      // #####   where to store uploaded files (weather variables graphs clientraw)

$SITE['uploadDir']      =  './../';                           // #####   with this setting: uploaded files are stored in ROOT

#$SITE['clientrawDir']    = $SITE['uploadDir'];                   // #####   for standard loaction of clientraw

$SITE['clientrawDir']    = './../';                            // #####   with this setting:  clientraw files are stored in ROOT

$SITE['steelFile']      = $SITE[''].'./../customclientraw.txt';   // realtime tags (also for steelseries)

   $SITE['wsTags']       = $SITE[''].'./../testtags.php';          // for current and yesterday weather variables


at first sight works but does not update the header gizmo
any suggestions

thanks
emilio
As far as I can see in the settings on your site,
http://www.meteotorrelavega.com/weather2/printSite.php
they all point to the weather2/uploadWD folder.

None point to the root as they should according to the settings you describe in your post.

So to what site are you referring to?

I am on vacation now and will only be able to do more after I am home with normal internet connections next thursday,
Wim

Offline ea1hmy

  • Contributor
  • ***
  • Posts: 120
    • meteotorrelavega
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #214 on: April 15, 2014, 01:08:02 PM »
thanks for your reply
if now gives you that because I have removed the settings, I restart the morning as you can and look at him, the first thing is your vacation, you have to enjoy
a greeting
emilio

Offline ea1hmy

  • Contributor
  • ***
  • Posts: 120
    • meteotorrelavega
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #215 on: April 15, 2014, 02:24:17 PM »

I made a change and now seems well
before
$SITE['steelFile']      = $SITE[''].'./../customclientraw.txt';   // realtime tags (also for steelseries)
$SITE['wsTags']       = $SITE[''].'./../testtags.php';          // for current and yesterday weather variables

now

$SITE['steelFile']      = './../customclientraw.txt';   // realtime tags (also for steelseries)
$SITE['wsTags']       = './../testtags.php';          // for current and yesterday weather variables


Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 220
    • Lightning Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #216 on: April 15, 2014, 04:43:22 PM »
Emilio,  can you link me to your site and put those in a text file and pm to me plz.
I'll take a look when I get home this evening
« Last Edit: April 15, 2014, 04:46:01 PM by jonnyj771 »
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 ea1hmy

  • Contributor
  • ***
  • Posts: 120
    • meteotorrelavega
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #217 on: April 15, 2014, 04:58:43 PM »
I do not understand what you mean  #-o

Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 220
    • Lightning Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #218 on: April 15, 2014, 06:03:53 PM »
Emilio,
Put the file the above string is in into a text file (.txt) and send it to me in a private message.
Also include a link to your site so I can see what it's looking like
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 jonnyj771

  • Senior Contributor
  • ****
  • Posts: 220
    • Lightning Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #219 on: April 16, 2014, 12:01:05 AM »

at first sight works but does not update the header gizmo
any suggestions

thanks
emilio

Emilio,

I believe you are asking about the Header Gizmo at the top of your page.  That has a time out set on it. I believe it's 5 minutes, but I could be wrong. I think that is why it appears like it isn't updating. You leave the page open for a length of time it stops updating until you refresh the page.
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 ea1hmy

  • Contributor
  • ***
  • Posts: 120
    • meteotorrelavega
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #220 on: April 16, 2014, 01:50:01 AM »
Hi Jonny J
Thanks for your interest, and is working correctly and is updated at the time, could have been my error uploading new modified files, or had not updated the "cache" folder, keep trying more settings so that everything runs smoothly
Best regards
emilio
  excuse the language, google translator

Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 220
    • Lightning Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #221 on: April 16, 2014, 07:50:12 PM »
Hi Jonny J
Thanks for your interest, and is working correctly and is updated at the time, could have been my error uploading new modified files, or had not updated the "cache" folder, keep trying more settings so that everything runs smoothly
Best regards
emilio
  excuse the language, google translator

Good to know it's working for you.
Don't hesitate to ask for help if you need it.

Regards,

Jonny J.
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 ea1hmy

  • Contributor
  • ***
  • Posts: 120
    • meteotorrelavega
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #222 on: April 17, 2014, 01:18:28 PM »
hello
languaje.js attached file with Spanish included
for steelseries

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1996
    • My PWS at Leuven Belgium Europe
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #223 on: April 19, 2014, 08:20:16 AM »
Wim,
I am looking to add more counties to my alerts.  Currently my home County is the only County I have and have several others that I would like to add.
How can I go about adding multiple counties? I am aware I may have to add a cron job to get all of them to work.
Would I be able to use Curly's alerts scripts?
Good morning, I am back from vacation and as promised I tested the Curly's alerts scripts and they look great.
My first 'adaption' works at http://www.weerstation-leuven.be/northam/

I will as always keep the adaption in someone elses scripts to the absolute minimum.
As for now I only have to change a few ? in the url-links to a &
The template itself is uses the ? to refer to the pagenumber.

I also had to adapt the css for the alert box to have the same look as the rest of the page , but all will be documented.

Wim



Offline jonnyj771

  • Senior Contributor
  • ****
  • Posts: 220
    • Lightning Weather
Re: Weather Template and scripts form Leuven/Belgium/Europe
« Reply #224 on: April 19, 2014, 08:31:32 AM »
I have the summary page working within the template.  At this point,  the details page is still not showing the same way.  How should I go about changing it to work within the template?
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)