Leuven-Template 2.8 version available

Really? I think that’s normally only necessary if you want to serve https:// pages. That template function works on the majority of sites, including mine, and I’m sure very few of those are paying extra for an SSL cert package.

I’ve PM’d another possible solution to Wim, but I don’t know enough about it to be sure it’s OK.

The simple solution is also in my post. That way you only stop the https checking for this 1 case. Add the 1 line in the CURL.
I can not test it as I have no web-server with your problem, sorry. It seems to occur more often with a windows server but that is wisdom from google’ing only .

You do not need to upgrade your hosting package as normal hosters such as godaddy one.com 1and1 all work without problems with the least expensive packages.

Wim

Hi Wim
have put that 1 line in and that now works

I have the option to change to LinuxOS from windows but not sure its worth trying.

Thanks

Harold

hello Wim…

when you have time can you go to my page here…

http://www.gateway2capecod.com/weather28/index.php

and look at my steel gauges data at top. It seems at every 10 second interval the Wind Direction moves, but the Wind Speed doesn’t seem to update.

is the wind speed dial set for actual wind speed or average speed? is there a way to change it to actual speed so it updates every 10 seconds? and where would I make this change?

I am using Meteobridge and the realtime file is being uploaded every 10 seconds as far as I know.

or can you also try debugging and see if maybe I have something not set correctly?

I have modified the colors on my site and also customized and configured mostly everything else with maybe a few more things and pages to configure.

Thank you…Chris

Meteobridge has two "wind’ values Templates - meteobridge
wind0wind: wind speed in m/s which is the latest windspeed => windgust
wind0avgwind: average windspeed in m/s (time used for average depends on station) => which is the real windspeed

As far as I understand people want to see the real windspeed as measured by their METAR station and not a split second extreme (windgust).

As this is not your main weather-site, how does it compare to your main site and the different dashboards on both sites? The figures should be be the same be it displayed in the gauges or on the dashboard.

===

If you want we can adapt the displayed value by using windgust. But the dial moves more often then, but it is displaying gust, not windspeed (definition 10 seconds average).

Wim

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]