IMPORTANT! The server may go down soon - possibly permanently. Please read the latest post in Announcements and News

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

WU-forecast.php

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
Trainman
Posts: 25
Joined: Fri May 21, 2010 5:47 pm
Weather Station: Davis VP2
Operating System: Windows 7
Location: Kvistgård Danmark
Contact:

WU-forecast.php

Postby Trainman » Mon Dec 19, 2011 4:42 pm

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

Trainman
Posts: 25
Joined: Fri May 21, 2010 5:47 pm
Weather Station: Davis VP2
Operating System: Windows 7
Location: Kvistgård Danmark
Contact:

Re: WU-forecast.php

Postby Trainman » Mon Dec 19, 2011 4:47 pm

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:

gemini06720
Posts: 1700
Joined: Mon Aug 10, 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: WU-forecast.php

Postby gemini06720 » Tue Dec 20, 2011 5:58 am

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.

User avatar
MickinMoulden
Posts: 498
Joined: Mon Dec 20, 2010 12:12 pm
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Location: Palmerston, NT, Australia
Contact:

Re: WU-forecast.php

Postby MickinMoulden » Tue Dec 20, 2011 8:52 am

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!
ImageImage

Trainman
Posts: 25
Joined: Fri May 21, 2010 5:47 pm
Weather Station: Davis VP2
Operating System: Windows 7
Location: Kvistgård Danmark
Contact:

Re: WU-forecast.php

Postby Trainman » Thu Dec 22, 2011 5:31 pm

Thank You Ray and Michael for Your input.

User avatar
MickinMoulden
Posts: 498
Joined: Mon Dec 20, 2010 12:12 pm
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Location: Palmerston, NT, Australia
Contact:

Re: WU-forecast.php

Postby MickinMoulden » Fri Dec 23, 2011 12:03 am

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!
ImageImage

gemini06720
Posts: 1700
Joined: Mon Aug 10, 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: WU-forecast.php

Postby gemini06720 » Fri Dec 23, 2011 3:30 am

Kenneth, you are using an old link for the YoWindow script - the following following line has been replaced:

Code: Select all

<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: Select all

<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.

gemini06720
Posts: 1700
Joined: Mon Aug 10, 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: WU-forecast.php

Postby gemini06720 » Fri Dec 23, 2011 3:39 am

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... ;)

User avatar
MickinMoulden
Posts: 498
Joined: Mon Dec 20, 2010 12:12 pm
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Location: Palmerston, NT, Australia
Contact:

Re: WU-forecast.php

Postby MickinMoulden » Fri Dec 23, 2011 8:43 am

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!
ImageImage

gemini06720
Posts: 1700
Joined: Mon Aug 10, 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: WU-forecast.php

Postby gemini06720 » Fri Dec 23, 2011 8:53 am

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).

User avatar
MickinMoulden
Posts: 498
Joined: Mon Dec 20, 2010 12:12 pm
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Location: Palmerston, NT, Australia
Contact:

Re: WU-forecast.php

Postby MickinMoulden » Fri Dec 23, 2011 9:35 am

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!
ImageImage

gemini06720
Posts: 1700
Joined: Mon Aug 10, 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: WU-forecast.php

Postby gemini06720 » Fri Dec 23, 2011 11:18 am

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:

User avatar
MickinMoulden
Posts: 498
Joined: Mon Dec 20, 2010 12:12 pm
Weather Station: WS-1081 with rain gauge mod
Operating System: Windows 7 & 1.9.3 b1059
Location: Palmerston, NT, Australia
Contact:

Re: WU-forecast.php

Postby MickinMoulden » Fri Dec 23, 2011 1:31 pm

Sorry I asked. Feel free not to return.

Trainman
Posts: 25
Joined: Fri May 21, 2010 5:47 pm
Weather Station: Davis VP2
Operating System: Windows 7
Location: Kvistgård Danmark
Contact:

Re: WU-forecast.php

Postby Trainman » Mon Jan 02, 2012 1:07 pm

gemini06720 wrote:Kenneth, you are using an old link for the YoWindow script - the following following line has been replaced:

Code: Select all

<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: Select all

<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.

serowe
Posts: 484
Joined: Tue Aug 03, 2010 6:23 am
Weather Station: WM918
Operating System: Win Server 2008 R2
Location: Ferntree Gully, VIC, Oz
Contact:

Re: WU-forecast.php

Postby serowe » Mon Jan 02, 2012 9:07 pm

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'


Return to “3rd Party Tools”

Who is online

Users browsing this forum: No registered users and 3 guests