WXforum.net
May 23, 2013, 05:23:22 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
Members: 6618  •  Posts: 178700  •  Topics: 18129
Please welcome moranbahweather, our newest member.
Welcome to the the new hosting for WXforum.net.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Template for showing yr.no-forecast  (Read 4688 times)
0 Members and 1 Guest are viewing this topic.
Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« on: April 16, 2009, 03:27:46 AM »

I have found a php script that produces a 10-day forecast for any place on Earth at any time.

The source of information is the Norwegian weather service yr.no and it is completely free of charge.

For more information follow the link below

http://www.nordicweather.net/index.php?sivu=95.3
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


TorH
Forecaster
*****
Offline Offline

Posts: 405



WWW
« Reply #1 on: April 16, 2009, 05:09:58 AM »

Here can you find more info about yr.no in english http://www.yr.no/english/1.2025949 , you can get the forecast in PHP or XML format or other forms too.

Here is the site from yr.no, here you can get the forecast data, sorry it is only in norwegian http://www.yr.no/verdata/1.3321307. But all you need is also in the link too NordicWeatherNetwork which Lars have in his post.

Myself is using some of the forecasts from there.
« Last Edit: April 16, 2009, 05:12:51 AM by tokke » Logged

Davis Vantage PRO2 wireless
VWS V14.00 p103, WD ver.10.37N, WL 5.8.2, VVP.
WeatherFlash
DW1549
WeatherUnderground: INORDLAN14
Location: Fauske, Northern Norway. N 67°15'41", E 15°24'41"
http://bjornli.net                     
Arthurhh
Senior Contributor
****
Offline Offline

Posts: 251


IT Fixer


WWW
« Reply #2 on: May 13, 2009, 01:04:52 AM »

I really like this but have had no sucess in getting it working some tips etc would be most welcolme.
Logged

Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #3 on: May 13, 2009, 01:14:13 AM »

I really like this but have had no sucess in getting it working some tips etc would be most welcolme.

what is the problem?

Could you post the url to the page so we could see it?
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


Arthurhh
Senior Contributor
****
Offline Offline

Posts: 251


IT Fixer


WWW
« Reply #4 on: May 13, 2009, 01:16:18 AM »

Sure can

http://tokoroa.dyndns.org/forcast/yr_xml_en.php
ttp://tokoroa.dyndns.org/forcast/yrfrcst.php

I have changed the url to match my location but cannot see how to implement this template. I am sure its a blond thing  Shocked

FIXED

I had missed a php statement which I know my server doesnt like. <? instead of <?PHP just a little thing
« Last Edit: May 13, 2009, 06:24:30 AM by Arthurhh » Logged

Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #5 on: October 13, 2009, 05:50:39 AM »

There is an more advanced picture to this script.

If you want to use this picture in the script you will have to change from http://www.yr.no/place/Sweden/Scania/Axelvold/meteogram.png to http://www.yr.no/place/Sweden/Scania/Axelvold/avansert_meteogram.png

This is for Axelvold

New


Old
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


CNYWeather
Forecaster
*****
Offline Offline

Posts: 1386



WWW
« Reply #6 on: October 13, 2009, 08:10:09 AM »

Check out what the guys at the WD forums found:

http://repkasoft.com/


Logged

Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #7 on: October 13, 2009, 08:25:39 AM »

Looks nice, I will have to try that.  Laughing
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


Arthurhh
Senior Contributor
****
Offline Offline

Posts: 251


IT Fixer


WWW
« Reply #8 on: October 13, 2009, 11:56:57 PM »

There is an more advanced picture to this script.

If you want to use this picture in the script you will have to change from http://www.yr.no/place/Sweden/Scania/Axelvold/meteogram.png to http://www.yr.no/place/Sweden/Scania/Axelvold/avansert_meteogram.png

This is for Axelvold

SNIPPED

Got it found that what you actually meant was to change the line
<img src="' . $URL . 'meteogram.png" alt="meteogram" title=""  width="800" />
to
<img src="' . $URL . 'avansert_meteogram.png" alt="meteogram" title=""  width="800" />
Which makes it all work
Logged

Axelvold
Forecaster
*****
Offline Offline

Posts: 1702



WWW
« Reply #9 on: October 14, 2009, 01:19:27 AM »

That's correct Arthurhh  Applause
Logged

Lars Magnusson
Axelvold / Sweden
55° 57' 41" N / 13° 6' 1" E
WX Station: Davis Vantage Pro2 Plus


Cienega32
Forecaster
*****
Offline Offline

Posts: 2307



WWW
« Reply #10 on: January 18, 2010, 08:38:33 PM »

I tried the yr.no forecast script from nordicweather.net and liked it. I also saw a few sites that had the obvious "use a YoWindow on top too" concept.

I went further and hacked-out a dynamic YoWindow routine that changes to match whatever city forecast is chosen from the drop down list and thought it was a decent added feature being that I love that YoWindow!

http://www.lascruces-weather.com/wxyowindow2.php5  is the concept page.

www.lascruces-weather.com/yr_no_script_with_dynamic_YoWin.pdf  details what I did.

I only use the SaratogaWx templates in narrow mode so I don't know how it'l work with anything else.

BTW - if any of the PHP gurus see "problems" or anything to educate me in my approach as detailed in the pdf, please feel free to drop it on me! I just hack my thru until it works...  Razz


My site isn't online yet so ignore any site related stuff that's out of whack.


Logged


Pat ~ Davis VP2 6153-Weatherlink-Weather Display-StartWatch-VirtualVP-WinXP Pro-SP3
www.LasCruces-Weather.com   www.EastMesaWeather.com
CNYWeather
Forecaster
*****
Offline Offline

Posts: 1386



WWW
« Reply #11 on: January 18, 2010, 09:42:09 PM »

Very nice job on that!
Logged

Cienega32
Forecaster
*****
Offline Offline

Posts: 2307



WWW
« Reply #12 on: January 19, 2010, 02:13:04 AM »

Thanks. That yr.no forecast script from Henkka is the key to the hiway for me. It's a great script.


I roughed out an NFL version too  http://www.lascruces-weather.com/wxyowindow2nfl.php5Very Happy Just waiting on a few stadium towns to be added to YoWindow. Glad I did now that the season's over...

I always wanted my own view of the weather for the NFL.



MLB version is next.  Shocked
Logged


Pat ~ Davis VP2 6153-Weatherlink-Weather Display-StartWatch-VirtualVP-WinXP Pro-SP3
www.LasCruces-Weather.com   www.EastMesaWeather.com
CNYWeather
Forecaster
*****
Offline Offline

Posts: 1386



WWW
« Reply #13 on: January 19, 2010, 09:55:16 PM »

Thanks. That yr.no forecast script from Henkka is the key to the hiway for me. It's a great script.


I roughed out an NFL version too  http://www.lascruces-weather.com/wxyowindow2nfl.php5Very Happy Just waiting on a few stadium towns to be added to YoWindow. Glad I did now that the season's over...

I always wanted my own view of the weather for the NFL.





MLB version is next.  Shocked


Thats a great idea! Dont forget Nascar too LOL   Cool
Logged

Cienega32
Forecaster
*****
Offline Offline

Posts: 2307



WWW
« Reply #14 on: January 20, 2010, 05:13:27 AM »

Boy howdy...
Logged


Pat ~ Davis VP2 6153-Weatherlink-Weather Display-StartWatch-VirtualVP-WinXP Pro-SP3
www.LasCruces-Weather.com   www.EastMesaWeather.com
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.114 seconds with 19 queries.