Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue May 21, 2013 11:01 am
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: WU-forecast.php
PostPosted: Mon Dec 19, 2011 4:42 pm 
Offline

Joined: Fri May 21, 2010 5:47 pm
Posts: 20
Location: Kvistgård Danmark
Weather Station: Davis VP2
Operating System: Windows 7
Is it possible to include the WU-forecast in a HTML document. I am redesigning my web site and would like to add forecasts, but I´m making the site in HTML. I can see in the PHP file there is a HTML section generating tables, I guess getting that part into my HTML document, will do the trick, but how?

Kenneth

_________________
Kenneth
http://www.kvistgaardvejr.dk/


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Mon Dec 19, 2011 4:47 pm 
Offline

Joined: Fri May 21, 2010 5:47 pm
Posts: 20
Location: Kvistgård Danmark
Weather Station: Davis VP2
Operating System: Windows 7
Trainman wrote:
Is it possible to include the WU-forecast in a HTML document. I am redesigning my web site and would like to add forecasts, but I´m making the site in HTML. I can see in the PHP file there is a HTML section generating tables, I guess getting that part into my HTML document, will do the trick, but how?

Kenneth



Sorry should have been posted in the Ajax template thread.. :oops:

_________________
Kenneth
http://www.kvistgaardvejr.dk/


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Tue Dec 20, 2011 5:58 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1797
Location: World...
Weather Station: No weather station
Operating System: No operating system
Kenneth, a PHP script cannot be included into an HTML page/script/template!

First question: Why are you making the site in HTML - you are greatly limiting the possibilities of the site! You can do so much more with PHP... Does your host server not provide PHP?

OK, getting back to the 'WU-forecast.php' script. Other than a few lines of HTML code, did you not noticed all those other lines of code (PHP) that are needed to get the weather data from the Weather Underground web site near you (ie: Espergærde, the closest station to your location), to save the data into a cache file, to remove the unnecessary lines of code from the cache file, to possibly translate the weather information into another language and, finally, to produce a template that can either be 'included' into a PHP page/template or viewed by itself.

I am not trying to be difficult (nor to make your life difficult) but I need you to understand that more than HTML code is required to produce a WeatherUnderground forecast page - without the PHP code, there cannot be a WeatherUnderground forecast page.


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Tue Dec 20, 2011 8:52 am 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
I'd do a Google search on "add a weather forecast to my website". And just do a cut and paste.
That's what I did. :D
WU do do a 1 day forecast you can cut and paste (weather sticker).

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Thu Dec 22, 2011 5:31 pm 
Offline

Joined: Fri May 21, 2010 5:47 pm
Posts: 20
Location: Kvistgård Danmark
Weather Station: Davis VP2
Operating System: Windows 7
Thank You Ray and Michael for Your input.

_________________
Kenneth
http://www.kvistgaardvejr.dk/


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Fri Dec 23, 2011 12:03 am 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Trainman wrote:
Thank You Ray and Michael for Your input.

Just checkd your page. I was looking forward to seeing Yowindow, as I've only just starting seeing posts on it, unfortunately it didn't work (work in progress?) Is this like a forecast, to replace the WU forecast that you were after?

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Fri Dec 23, 2011 3:30 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1797
Location: World...
Weather Station: No weather station
Operating System: No operating system
Kenneth, you are using an old link for the YoWindow script - the following following line has been replaced:
Code:
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="800" height="400">
       <param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf"/>
Code:
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/yowidget3.swf" width="800" height="400">
       <param name="movie" value="http://swf.yowindow.com/yowidget3.swf"/>
Please go to the YoWindow Weather Widget page to get the updated code for YoWindow - the new code renders the image somewhat quicker.


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Fri Dec 23, 2011 3:39 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1797
Location: World...
Weather Station: No weather station
Operating System: No operating system
MickinMoulden wrote:
Just checkd your page.
Michael, whose pages were you looking at - mine were updated a few hours ago - the page seems to display correctly/properly into all browsers, including Internet Explorer 9 (which I do not support)?
MickinMoulden wrote:
Is this like a forecast, to replace the WU forecast that you were after?
Michael, have a look at YoWindow starting with the main page and the proceeding to the YoWindow Weather Widget page where you can/will get the code required to place inside your page... ;)


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Fri Dec 23, 2011 8:43 am 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
gemini06720 wrote:
Michael, whose pages were you looking at

I replied to Kenneth "Trainman". And I've looked at YoWindow, looking at adding it myself, as it fits in with my theme very well. It seems Kenneth will be ditching the WU forecast option for YoWindow.

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Fri Dec 23, 2011 8:53 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1797
Location: World...
Weather Station: No weather station
Operating System: No operating system
MickinMoulden wrote:
It seems Kenneth will be ditching the WU forecast option for YoWindow.
Indeed, YoWindow is somewhat more visual and a lot more modern looking than the 'WU-forecast.php' script has been and seems will ever be providing...

Michael, as the first page on your site loads, it displays the warning box 'Continue with content filter?' - unless either the 'OK' or the 'Cancel' button is clicked, the page remains frozen at that stage (stops loading/displaying).


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Fri Dec 23, 2011 9:35 am 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
gemini06720 wrote:
Michael, as the first page on your site loads, it displays the warning box 'Continue with content filter?' - unless either the 'OK' or the 'Cancel' button is clicked, the page remains frozen at that stage (stops loading/displaying).

That's right (you must of been viewing after 8pm!). I guess I could make the rest of the page load before that warning box. However, while I've got you here, what I would like it to do is countdown (say 5 seconds) before continuing automatically. Any idea's? (Sorry, now off topic - will now implement YoWindow!)

_________________
Michael, Palmerston, NT Australia www.Palmerston-WeatherImageNo image? I'm offline!
ImageImageImage


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Fri Dec 23, 2011 11:18 am 
Offline

Joined: Mon Aug 10, 2009 10:16 pm
Posts: 1797
Location: World...
Weather Station: No weather station
Operating System: No operating system
MickinMoulden wrote:
That's right (you must of been viewing after 8pm!).
Michael, what is different after 8pm (your time, not my time) and why the warning? Michael, this is Internet and not public television! :roll:

Do you not think you are going a bit 'overboard' with such a warning? If this is a requirement by/from the government of Australia, then that is an infringement on free speech - so far, no government has any control of the Internet, no matter how hard they are/have been trying - the Internet is not one country, the Internet is all of the countries of this 'stupid' planet, thus no one has and/or should have control of the Internet! (I 'smell' a debate coming up :twisted: )

Just because your site has a few pictures of lightly clad females does not make your site pornographic!

But then, why are lightly clad females needed on a weather site - they are certainly not going to improve the weather in any way... :roll:

MickinMoulden wrote:
I guess I could make the rest of the page load before that warning box.
Simply get that warning (and the script producing the warning) out of your site ... there is no purpose for the warning, none! :evil:


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Fri Dec 23, 2011 1:31 pm 
Offline
User avatar

Joined: Mon Dec 20, 2010 12:12 pm
Posts: 446
Location: Palmerston, NT, Australia
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Sorry I asked. Feel free not to return.


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Mon Jan 02, 2012 1:07 pm 
Offline

Joined: Fri May 21, 2010 5:47 pm
Posts: 20
Location: Kvistgård Danmark
Weather Station: Davis VP2
Operating System: Windows 7
gemini06720 wrote:
Kenneth, you are using an old link for the YoWindow script - the following following line has been replaced:
Code:
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="800" height="400">
       <param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf"/>
Code:
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/yowidget3.swf" width="800" height="400">
       <param name="movie" value="http://swf.yowindow.com/yowidget3.swf"/>
Please go to the YoWindow Weather Widget page to get the updated code for YoWindow - the new code renders the image somewhat quicker.



Thank you I´ll fixed it.

_________________
Kenneth
http://www.kvistgaardvejr.dk/


Top
 Profile  
 
 Post subject: Re: WU-forecast.php
PostPosted: Mon Jan 02, 2012 9:07 pm 
Offline

Joined: Tue Aug 03, 2010 6:23 am
Posts: 484
Location: Ferntree Gully, VIC, Oz
Weather Station: WM918
Operating System: Win Server 2008 R2
gemini06720 wrote:
Simply get that warning (and the script producing the warning) out of your site ... there is no purpose for the warning, none! :evil:

You must have upset him Ray - his site has now 'gone with the wind' :) (It's also one of the problems running web sites at home - IP changes, Dynamic DNS doesn't get updated, web site goes bye-bye or the provider found out :( )

_________________
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group