Author Topic: Embed WU radio stream into your own site  (Read 30238 times)

0 Members and 1 Guest are viewing this topic.

Offline wuhu_software

  • Forecaster
  • *****
  • Posts: 689
    • WUHU Software Yahoo Group
Re: Embed WU radio stream into your own site
« Reply #25 on: October 19, 2009, 07:31:45 AM »

"the internet stream can come in handy because if you are somewhere where you don't have a radio like work, home, etc. You can still monitor the weather if you know it is suppose to be or get bad."

That was the whole idea for the WU streaming radio, to give people a heads-up about weather that is headed their way. It is not supposed to be a primary alerting device, as mentioned. When the shingles are being torn off, it is a little late to turn to the Internet for info.

The goal (although not yet achieved) is to write software that sits in the tray and talks to WU. When severe conditions are posted, the software could automatically alert the user (beeps, sounds, etc), then give them a one-click option to start streaming the radio. This would in effect put a weather radio on any PC, anywhere. The same could also be done for mobile devices like the iPhone, G-Phone, and other multimedia devices capable of streaming data.

Another important feature we want to add to the alerting software is the ability to monitor several locations. If for example, you have family in another state, you could be monitoring their location and streaming the radio from their location if bad weather arises.

Ideally, the user could set-up a configuration that tells the software exactly what type of alert to monitor, just like a SAME radio. I thought it might be a good idea to mimic the SAME codes as have the ability to update those codes over time. Custom codes would probably be simple to implement as well.

I have not found any .Net programmers that are interested in the project so I might have to write a tray application in MFC/C++. The problem, as always, is to find the time to do it. If there any C++/MFC programmers out there willing to spend some time on it (it will be freeware), let me know.


Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3205
    • North Georgia Weather
Re: Embed WU radio stream into your own site
« Reply #26 on: October 22, 2009, 06:41:10 PM »
I spoke too soon. Starting sometime this week or over the weekend, they started blocking Flash for the school system. I'm having to jump though hoops to get it turned back on for WU.

Offline WeatherGoose

  • Forecaster
  • *****
  • Posts: 603
  • LIVE from the Southern Sierra Nevada!
    • Sierra Springs Village - MADIS Station D2149 - Bass Lake Ca.
Re: Embed WU radio stream into your own site
« Reply #27 on: October 22, 2009, 08:57:27 PM »
Has anyone actually completed this attempt?

I mean a web page with the WU audio button on the page?

I would like to add this to my website, so I would love to get the complete code to insert into my page code.

Thanks in advance!  :)


HARDWARE: Davis VP2 wireless w/daytime FARS - Logitech Quickcam Pro 9000 - Apple 24" iMAC - OSX 10.6.2
SOFTWARE: Lightsoft Weather Center for Mac OSX -  EVOcam 2.6.5

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3205
    • North Georgia Weather
Re: Embed WU radio stream into your own site
« Reply #28 on: October 22, 2009, 09:03:43 PM »
See if I'm doing what you're talking about. Go to daculaweather.com, click on the NOAA Links on the top menu bar, and click on the NOAA Wunderground Radio.

<a href="#" onclick="MyWindow=window.open('http://www.wunderground.com/wxradio/smallplayer.html?stationid=chrisinhoschton|197|3021','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=340,height=225'); return false;">Wunderground NOAA Radio</a>

You would need to change the stationid=  section to a station close to you.
« Last Edit: October 22, 2009, 09:06:39 PM by DaculaWeather »

Offline Mark / Ohio

  • Live from Mars!
  • Forecaster
  • *****
  • Posts: 2505
    • Fairfield County Weather
Re: Embed WU radio stream into your own site
« Reply #29 on: October 22, 2009, 11:07:02 PM »
I'm using Carterlakes's code on my front page.  Here's the code I have:

<embed type="application/x-shockwave-flash"
 src="http://www.wunderground.com//radio/radio-player-v16.swf"
 id="radio-player" name="radio-player" bgcolor="#ffffff"
 quality="high" allowscriptaccess="always"
 movie="http://www.wunderground.com/radio/radio-player-v16.swf"
 ;=""
 flashvars="XMLMode=HTTP&strStreamURL=http%3A//www.wunderground.com/wxradio/requestxml.html%3Faction%3Dgetsinglefromallstations%26stationid%3DFCW%7C622%7C2207&autoplay=true"
 height="100" width="210">



Ok, I cracked the code...

Code: [Select]
<embed
type="application/x-shockwave-flash"
src="http://www.wunderground.com//radio/radio-player-v16.swf"
id="radio-player"
name="radio-player"
bgcolor="#ffffff"
quality="high"
allowscriptaccess="always"
movie="http://www.wunderground.com/radio/radio-player-v16.swf";
flashvars="XMLMode=HTTP&amp;strStreamURL=http%3A//www.wunderground.com/wxradio/requestxml.html%3Faction%3Dgetsinglefromallstations%26stationid%3DCarterLake%7C515%7C11&amp;autoplay=true"
height="100"
width="210">

Where you get the station ID from is:
http://www.wunderground.com/wxradio/requestxml.html?action=getsinglefromallstations&stationid=CarterLake|515|11
(you'll have to copy/paste into a browser)

If you edit, be careful not to remove the ASCII %7C (which is ASCII for pipes | )

I currently have it up as my test page:
http://www.carterlake.org/test.php

Oh and...

Quote
According to John Celenza, Director of Weather Technology at Wunderground.

Please feel free to use Wunderground images and data on personal sites, as long as you link those images to Wunderground or give direct credit. Something like "This image courtesy of Weather Underground" is appropriate.

Be sure to give credit where credit is due.
Mark 
2002 Davis VP I Wireless, WeatherLink (Serial), GRLevel3, VirtualVP, StartWatch, Weather Display, Windows 10


Offline WeatherGoose

  • Forecaster
  • *****
  • Posts: 603
  • LIVE from the Southern Sierra Nevada!
    • Sierra Springs Village - MADIS Station D2149 - Bass Lake Ca.
Re: Embed WU radio stream into your own site
« Reply #30 on: October 23, 2009, 12:23:25 AM »
See if I'm doing what you're talking about. Go to daculaweather.com, click on the NOAA Links on the top menu bar, and click on the NOAA Wunderground Radio.

<a href="#" onclick="MyWindow=window.open('http://www.wunderground.com/wxradio/smallplayer.html?stationid=chrisinhoschton|197|3021','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=340,height=225'); return false;">Wunderground NOAA Radio</a>

You would need to change the stationid=  section to a station close to you.


Thanks Steve!

That is EXACTLY what I was talking about!  ;)

I got the code into my page and it is popping up the window, I couldn't figure out what the station ID was until I looked at yours and matched it to the URL I found for Atlanta!  It was easy after I made that connection to find the one I needed for Sacramento Ca.!

Problem is now that when I click on the link, I get Anchorage AK!  ](*,)  The apparent ID for Sacramento is Xootneg - I got this by comparing the URL in your LISTEN link to the one for Sacramento.  The part of the path where your ID was located is Xootneg for mine.  But... It doesn't work!  #-o

Here is my test page.  WU Radio link is last one in right hand column in grey nav bar, top of page.

UPDATE 10/28/09

I have gone online with this now and the permanent URL is my home page:

http://basslake-weather.com
« Last Edit: October 29, 2009, 02:17:22 AM by WeatherGoose »


HARDWARE: Davis VP2 wireless w/daytime FARS - Logitech Quickcam Pro 9000 - Apple 24" iMAC - OSX 10.6.2
SOFTWARE: Lightsoft Weather Center for Mac OSX -  EVOcam 2.6.5

Offline SnoopyDog

  • Certified Skywarn Spotter
  • Member
  • *
  • Posts: 5
    • Coming Soon
Re: Embed WU radio stream into your own site
« Reply #31 on: October 28, 2009, 03:25:37 PM »
Hello,

I would like to embed a weather radio on my site and I would love to stream it with Weather Underground. However after reading all of the posts on Weather Underground NWS Streaming Project thread I was wondering if I could stream using my NOAA Weather Radio Midland WR-100 and I have been curious what kind of cablings do I need to use for streaming with the WR-100. However, I look forward to hear from you all soon.

Regards

Ryan
Ryan Agee, #9281
Basic Storm Spotter

Offline WeatherGoose

  • Forecaster
  • *****
  • Posts: 603
  • LIVE from the Southern Sierra Nevada!
    • Sierra Springs Village - MADIS Station D2149 - Bass Lake Ca.
Re: Embed WU radio stream into your own site
« Reply #32 on: October 28, 2009, 04:17:27 PM »
Hello,

I would like to embed a weather radio on my site and I would love to stream it with Weather Underground. However after reading all of the posts on Weather Underground NWS Streaming Project thread I was wondering if I could stream using my NOAA Weather Radio Midland WR-100 and I have been curious what kind of cablings do I need to use for streaming with the WR-100. However, I look forward to hear from you all soon.

Regards

Ryan

All the info you need for this is provided at Weather Underground.

Here is the link:

http://wiki.wunderground.com/index.php/NOAA_Weather_Radio


Main WU Radio Page which includes the link to sign up to stream your internet re-broadcast:

http://www.wunderground.com/wxradio/index.html
« Last Edit: October 28, 2009, 04:39:00 PM by WeatherGoose »


HARDWARE: Davis VP2 wireless w/daytime FARS - Logitech Quickcam Pro 9000 - Apple 24" iMAC - OSX 10.6.2
SOFTWARE: Lightsoft Weather Center for Mac OSX -  EVOcam 2.6.5

Offline SnoopyDog

  • Certified Skywarn Spotter
  • Member
  • *
  • Posts: 5
    • Coming Soon
Re: Embed WU radio stream into your own site
« Reply #33 on: October 29, 2009, 01:35:42 AM »
Thanks for the links, however, I don't think my Midland WR-100 have an audio output so I have to buy a new NOAA Weather Radio that has an audio output. 
Ryan Agee, #9281
Basic Storm Spotter

Offline WeatherGoose

  • Forecaster
  • *****
  • Posts: 603
  • LIVE from the Southern Sierra Nevada!
    • Sierra Springs Village - MADIS Station D2149 - Bass Lake Ca.
Re: Embed WU radio stream into your own site
« Reply #34 on: October 29, 2009, 02:15:32 AM »
Thanks for the links, however, I don't think my Midland WR-100 have an audio output so I have to buy a new NOAA Weather Radio that has an audio output.  

Yeah... You really do need to have that capability.  Using a mic just doesn't cut it since you can never get rid of the ambient room echo unless you enclose the radio in a foam lined box, and even then, you would be forced to listen to the NOAA broadcast 24/7/365!  #-o

I am using a CCRadio Plus for my broadcast source.  It cost a lot more than the Midland 300, but I bought this thing years ago for the AM/FM performance and not so much for the weather band.  Now that I live up here in the Sierra where our AM/FM reception is basically nill, surprisingly enough, the weather band is the only thing I can pick up with it here!

Worked out well though, since otherwise, this radio was basically useless to me.    This thing also has an audio line-out, so it makes the perfect dedicated weather radio for the WU stream!  I will be putting a 9 band graphic EQ in line between the radio output and the computer so I can pull some of the hiss out of the carrier.  I tried software based EQ, but I was getting a lot of dithering in the stream, so I decided to try using an analog EQ upstream of the Macintosh computer I am using as my dedicated audio streamer.  

I will find out if the analog EQ does the trick when it arrives tomorrow.  ;)
« Last Edit: October 29, 2009, 02:19:08 AM by WeatherGoose »


HARDWARE: Davis VP2 wireless w/daytime FARS - Logitech Quickcam Pro 9000 - Apple 24" iMAC - OSX 10.6.2
SOFTWARE: Lightsoft Weather Center for Mac OSX -  EVOcam 2.6.5

Offline mkutche

  • Forecaster
  • *****
  • Posts: 968
    • GosportWx.com
Re: Embed WU radio stream into your own site
« Reply #35 on: January 20, 2013, 01:56:56 PM »
i did everything from craterlakes code but I still cant get California off and Indianapolis, IN to show up

http://www.gosportwx.com/wxweatherradio.php
Mike K.
WS2080 - Cumulus MX b3043
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportINWX
-----------------------------------------------------------

Offline DaculaWeather

  • WxElement panel
  • Forecaster
  • *****
  • Posts: 3205
    • North Georgia Weather
Re: Embed WU radio stream into your own site
« Reply #36 on: January 20, 2013, 02:13:32 PM »

Offline mkutche

  • Forecaster
  • *****
  • Posts: 968
    • GosportWx.com
Re: Embed WU radio stream into your own site
« Reply #37 on: January 20, 2013, 02:33:06 PM »
yea I got it working now :D sorry to bring back an old post I didn't wanna start another one due to this one existing
Mike K.
WS2080 - Cumulus MX b3043
Gosport, Indiana
Gosportwx.com Gosportwx.com/PWS/ Gosportwx.com/j-template/ twitter.com/GosportINWX facebook.com/GosportINWX
-----------------------------------------------------------