Leuven-Template 2.8 version available

can anyone tell me where to put the url of my webcam in the new site.? I know it is tempting where the sun don’t shine, but other than that… I need the folder and the script. :wink:

It was a good thing I backed up all my PC reference before it crashed.

http://camera IP:Port/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=username&pwd=password

Just in case someone needs it for their IP webcam capture.

try line 149 of the wsUsersetting.php

Harold

I was also looking to replace one of the graphics on the main page with another item. I wrote to Wim but he must be busy. No rush.

I would like to replace the Yr.no graphical forecast toward the bottom of my page (www.desmoinesweather.org) with : http://www.weather.gov/images/dmx/WxStory/FileL.png
How would I go about that?

The webcam settings are in weather??/_my_texts/wsUserSettings.php
Please always make an extra copy fo the file first. It is PHP and a typing error will probably result in a white page.
Go to approximately line 140 to 150 and change those lines to [font=courier]
$SITE[“webcam”] = true; # true = Yes, we have a webcam we want to show | false = Do not display
$SITE[“webcamSide”] = true; # V = In side area | false = Do not display
$SITE[“webcamPage”] = true; # true = Enable this page | false = Do not display

What will be displayed during night-time

$SITE[“webcamNight”] = true; # true = Use a “It is night” image | false = Use uploaded picture as normal
$SITE[“webcamImgNight”] = “./img/webcam_night.png”;

Webcam 1

$SITE[“webcamName_1”] = “My webcam”;
$SITE[“webcamImg_1”] = “http://camera IP:Port/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=username&pwd=password”;[/font]

You have to set your credentials (ip address username a.s.o.) in the line for the webcamImg_1.

If you click on on the small webcam image, a large one will be displayed on top of the current page. There will also be a green arrow, and as always clicking this arrow will bring you to a separate page. If you do not need that extra page, set one line back to false.
$SITE[“webcamPage”] = false;

Wim

The startpage can display 15 - 20 different components (parts) in the sequence you want. You can check which ones are available at:
http://www.desmoinesweather.org/weather28/index.php?p=wsStartPageDemo&debug
The number of available components, varies with the region you are in, your weather-station and weather-program.

===

For now there is no “easy” way of adding extra components. It will involve some PHP programming.
You have to have something to display and in your case the image should be centered and have a border and a header so blend in with the other components. The easiest way to do that is to use the “newpage” script and first make a page with the image displayed on a separate page.

  1. copy _my_scripts/my_NewPage.php => _my_scripts/my_component_1.php
  2. Modify the example html in the my_component_1.php script to display the image as you want it to be displayed
  3. Add it to the wsMenuData.xml file for now so you can test it.
    You do that by adding a new menu entry just BEFORE the closing
<item 	nr      = "1000"    hide = "yes"
	caption = "test component"
	link    = "_my_scripts/my_component_1.php"
/>

The new menu-entry will NOT show up in the menu in your browser because we set it to “hidden”
You can test the page by typing in the browser: http://www.desmoinesweather.org/weather28/index.php?p=1000

  1. If satisfied how the image displays on a separate page you are up to the real PHP task.

  2. The wsStartPage.php script should learn about the new component so that it can be displayed.
    I will take care of step 5 today/tomorrow and use your image as an example of how to do that. I will post it here and you can use the adapted script then also.

Wim

Thank you that solves it. I have some work to do and I have the time to do that. On the other forum, if I decided to go with the WL, what do I need to change. It looks like to me I need to go into wsUserSettings.php and change the system over to the weatherlink.com page, user name and pass word. Am I correct?

Yes, but when going back to the configure script, you lose all changes you made in wsUserSettings.php after the last generate a few weeks ago.
So first make a copy of the current _my_texts/wsUserSettings.php and store is with a different name in a safe place.

ALSO WiKi en:uploaddw [Leuven-Template 2.8]
You need to have a cron-job once / day to generate the yesterday values.

Wim

Hello Wim…

In the template,…Station status… Weather data time is outdated…what in WD is feedind this item ?

thanks

The uploaded tags file: uploadWD/tagsWD.txt - dated: 23-04-2016 10:50
But the data inside that file is from |date|2016 04 16|!
You can check your uploads at: http://www.meteolacstjean.com/weather28/?tags&p=0000&pw=
So either WD is not creating that file anymore and the file from April 16 is uploaded every time
or
the input file for wd (tags.wd.txt in the C: \Wdisplay\webfiles\ folder) has been replaced with old processed data.
Success, Wim

www.skeltonweather.uk
couple of small problems have switched back to meteobridge after computer failure running WD, on the main page the ajax weather icon above the thermometer just shows a ? how can I get this to change to what it should be, and in the High and Low table below the thermometer the last year data is rubbish at -999.0, can I remove this line if so from where do I do it
Thanks in advance

This is due to changes with Yahoo.
Check Support for Leuven-Template for weather-sites and do the March updates.

Also change your wsUserSettings.php to get the current conditions from a METAR will help.

Wim

is the data for last year in the High and Low table also related to this or is that another problem

almanac data high lows once per day from WU
almanac same day last year once / day from your own stations data at WU
WU-reports ( http://www.skeltonweather.uk/weather2/index.php?p=wsReports&lang=en#data-area ) twice / day from WU.

So after applying the yahoo and WU updates => check tomorrow if all is OK

Wim]

I had some main page missing data in the temperature section a while back where the Normals/today were missing. Wim demonstrated that it simply wasn’t being returned by the WU api call. This had been going on for several months. I emailed WU and never heard back. Today, they finally showed up again.

Today, I see where the high and low station record is 0. I’ve never seen that before.

no change this morning, getting the following
Warning: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /hermes/bosnaweb04a/b2659/ipg.skeltonweatheruk/weather2/wxwugraphs/WUG-inc-year.php on line 414 Warning: file_get_contents(http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=ICLEVELA4&graphspan=year&year=2015&format=1&units=metric): failed to open stream: no suitable wrapper could be found in /hermes/bosnaweb04a/b2659/ipg.skeltonweatheruk/weather2/wxwugraphs/WUG-inc-year.php on line 414
There is not enough data for this period. Please, choose another year.

Sorry, but the WU scripts are NOT updated as advised on the problems page and in my previous mails. This is the update-ReadMe

Script replacements caused by moving from http => https

weather28/wuforecast/wualmanac.php

weather28/wu/WU-History.php

weather28/wsreports/wsReports1part.php

Some         http://www.wunderground.com/ . . . 
changed to   https://www.wunderground.com/ . . .

Example the wualmanc.php is not updated, it is the old version.

 wualmanac.php | version: 3.20 2015-10-27

So the scripts use the http and not the https way of getting the data.
Please check Support for Leuven-Template for weather-sites and apply the March update

2016-03-05	wu scripts	WU switches (partly) from http to https some scripts were broken 
getting the following Warning: file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /hermes/bosnaweb04a/b2659/ipg.skeltonweatheruk/weather2/wxwugraphs/WUG-inc-year.php on line 414 Warning: file_get_contents(http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=ICLEVELA4&graphspan=year&year=2015&format=1&units=metric): failed to open stream: no suitable wrapper could be found in /hermes/bosnaweb04a/b2659/ipg.skeltonweatheruk/weather2/wxwugraphs/WUG-inc-year.php on line 414 There is not enough data for this period. Please, choose another year.

There is no update for the wxwugraph scriptss. If they worked OK before March they should still work OK, as they do on all sites.
Questions:

  1. Did it work before?
  2. Did you recently
    2.1 changed the settings inside the wxwugraphs/ scripts folder?
    2.2 switched your provider or
    2.3 switched PHP versions at your provider?

The error displayed has nothing todo with the http to https problem. And file_get_contents() is not the default way of getting the data inside those scripts.

file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0

I will look into this error based on your answers.

Succes, Wim

There is no update for the wxwugraph scriptss. If they worked OK before March they should still work OK, as they do on all sites.
Questions:

  1. Did it work before?
  2. Did you recently
    2.1 changed the settings inside the wxwugraphs/ scripts folder?
    2.2 switched your provider or
    2.3 switched PHP versions at your provider?

Have now updated script
in answer to 1. cannot say did not check when changing to 2.8, my fault. with regards to other questions nothing was altered or changed

Hi Wim.

Hope you can help with issue.

Im trying to get the new script you added, ws_snow.php to work.
The script seems not read the ws_snow.txt.
All files are in the same folder.
i just added ws_snow.php to the wsStartPage.php.

all help apreasieted.
Maybe possible to have this script read customtextout.txt that WD is produsing one an houre regarding snow.
But just an idea.


customtextout.txt (19 KB)