RadioDJ - Free Radio Automation Software Forum

RadioDJ v1.7+ => Plugin Development => Topic started by: szabi on February 05, 2017, 02:05:37 PM

Title: Weather (Temperature)
Post by: szabi on February 05, 2017, 02:05:37 PM
Hello,

Is there any plugin like "Say Time" but for weather using real recorded voice instead of TTS? Getting XML data from a server, then choosing and playing the right wav file, for example: if it's 14°c degrees then open intro.wav (Our temerature is:) + 14c.wav (fourteen degrees)

Thank you
Title: Re: Weather (Temperature)
Post by: Capt_Fuzzy on February 05, 2017, 05:59:46 PM
In the realm of 'internet radio' a weather report is pretty much useless, since most people that listen to your station over the internet are probably not in your immediate area, so a weather report really has no impact on them...
If you still wish to do this, I would think that the best way would be to use some form of SQL query to pull it off, there is no plugin, that I'm aware of anyway, that would do this for you.
Title: Re: Weather (Temperature)
Post by: szabi on February 05, 2017, 06:30:20 PM
In the realm of 'internet radio' a weather report is pretty much useless, since most people that listen to your station over the internet are probably not in your immediate area, so a weather report really has no impact on them...
If you still wish to do this, I would think that the best way would be to use some form of SQL query to pull it off, there is no plugin, that I'm aware of anyway, that would do this for you.

I understand your pont, and I'm on a same opinion with you, however the station I'm setting up the RadioDJ is a local radio, also broadcasting on FM around the whole city. Could you suggest a script or a way I can find it out to make this work? I'm ok with PHP and some SQL querys but I have no idea where to start with this one :)

anyway, thank you for your quick help/respone

Szabi
Title: Re: Weather (Temperature)
Post by: plauri on February 06, 2017, 01:33:18 AM
I understand your pont, and I'm on a same opinion with you, however the station I'm setting up the RadioDJ is a local radio, also broadcasting on FM around the whole city. Could you suggest a script or a way I can find it out to make this work? I'm ok with PHP and some SQL querys but I have no idea where to start with this one :)

anyway, thank you for your quick help/respone

Szabi

About 8 years ago I wrote a project for the terrestrial Fm radio station I worked for to do exactly what you are writing for, unfortunately I'm not good in programming and I couldn't find anybody doing it (my idea was using some C++, taking the data from meteo stations around the region, convert them into sound and make a wave or mp3 string to be played automatically and randomly in the playlist), so I gave up  :bash:
Title: Re: Weather (Temperature)
Post by: szabi on February 06, 2017, 01:54:57 AM
About 8 years ago I wrote a project for the terrestrial Fm radio station I worked for to do exactly what you are writing for, unfortunately I'm not good in programming and I couldn't find anybody doing it (my idea was using some C++, taking the data from meteo stations around the region, convert them into sound and make a wave or mp3 string to be played automatically and randomly in the playlist), so I gave up  :bash:

That is a good idea, I'm thinking about the same, only need some function like getting XML data for temperature from the server using weather station code (my location), and selecting the proper audio file (what's already recorded for me, all the temperature degrees for different files. I imagine a plug-in doing this: getting the temperature -> choosing the right wav file for the actual temperature, and playing it like the SayTime plugin does with current time.

I have some coding experience, but I'm afraid that is going to be a hard pain in the ***  ::)
Title: Re: Weather (Temperature)
Post by: Capt_Fuzzy on February 06, 2017, 04:52:20 AM
I don't know who you might contact in Hungary, but in the U.S., I can get recorded weather conditions from the National Weather Service and/or NOAA.
They are available via RSS feed if I'm not mistaken, but then again, this is for the U.S., I don't know if there's something similar for your area or not...
Title: Re: Weather (Temperature)
Post by: plauri on February 06, 2017, 04:38:31 PM
Infact, now there are rss feed that do the job, but when I first thought this (8 years ago) I first made a search and nobody offered a service like that.
Title: Re: Weather (Temperature)
Post by: Marius on February 06, 2017, 06:45:37 PM
Give me a day or two and i will try to put together a plugin for you, Szabi. Ok?
Title: Re: Weather (Temperature)
Post by: szabi on February 06, 2017, 11:25:24 PM
Give me a day or two and i will try to put together a plugin for you, Szabi. Ok?

Wow, that would be great, Marius! take your time :) And thank you in advance.
Title: Re: Weather (Temperature)
Post by: szabi on February 06, 2017, 11:30:48 PM
Infact, now there are rss feed that do the job, but when I first thought this (8 years ago) I first made a search and nobody offered a service like that.

Exactly. Few years ago I was setting up the BSI's Simian automation for a radio station I worked for, that does the exactly  job, but I think they made it too complicated. Using a standalone exe always running in the background, getting data from openweathermap and saving to a .ini file, then the automation software somehow was reading that ini as a macro in scheduled events. I think it could be more simple like a plugin.
Title: Re: Weather (Temperature)
Post by: Marius on February 09, 2017, 12:02:44 PM
One question: how would you like the play the files? In the playlist, or over music?
My guess is that since you want to play also an intro, you want them in the main playlist, but i want to be sure. :)
Title: Re: Weather (Temperature)
Post by: szabi on February 09, 2017, 05:09:42 PM
One question: how would you like the play the files? In the playlist, or over music?
My guess is that since you want to play also an intro, you want them in the main playlist, but i want to be sure. :)

Hi Marius,

Yes, we would like to use it as a separate block like commercials etc. in the main playlist between songs.

Thank you
Title: Re: Weather (Temperature)
Post by: Anderson on February 09, 2017, 05:51:29 PM
Good job, thank you plugin weather forecast :ok: :ok: :ok: :ok:
Title: Re: Weather (Temperature)
Post by: Skyfire on April 12, 2018, 05:05:46 PM
Where might we be able to find this plugin??
Title: Re: Weather (Temperature)
Post by: Jhonny on April 12, 2018, 09:15:45 PM
Where might we be able to find this plugin??

It's under construction.
Title: Re: Weather (Temperature)
Post by: Chip Douglas Mosley on April 13, 2018, 03:01:53 AM
I am also interested in this. I use Weather Watcher software that can convert the weather conditions, including temperature, to an XML file. Hope this will be able to work with this software.
Title: Re: Weather (Temperature)
Post by: Compdoggie on June 11, 2018, 06:28:53 AM
I recently posted this item showing the xml links for US weather stations and how to use tts to speak time and weather

http://www.radiodj.ro/community/index.php?topic=11314.0 (http://www.radiodj.ro/community/index.php?topic=11314.0)

Thanks to Capt_fuzzy for making it pinned in the v1.7+ - Support Forum
Title: Re: Weather (Temperature)
Post by: Capt_Fuzzy on June 13, 2018, 05:03:16 AM
I recently posted this item showing the xml links for US weather stations and how to use tts to speak time and weather

http://www.radiodj.ro/community/index.php?topic=11314.0 (http://www.radiodj.ro/community/index.php?topic=11314.0)

Thanks to Capt_fuzzy for making it pinned in the v1.7+ - Support Forum
I didn't actually make it pinned, I merely suggested that it be pinned, but I thank you for the 'nod' regardless... :cool:
Title: Re: Weather (Temperature)
Post by: Myriad on September 06, 2018, 04:34:21 PM
Give me a day or two and i will try to put together a plugin for you, Szabi. Ok?

What happened in the end ?
Title: Re: Weather (Temperature)
Post by: Chip Douglas Mosley on September 06, 2018, 07:18:05 PM
I'd like to know, too. Thanks in advance!
Title: Re: Weather (Temperature)
Post by: djspike on July 03, 2019, 12:29:23 PM
Hi guys!
I think it didn't work out with that plugin.
But we can use other software for this, right? Some weather services provide api access, or rss feeds. We need a program that will take weather data and will compile a playlist from proper mp3 files. Finely, radiodj will play the playlist in events.
Any ideas about how to develop a program like this?
Title: Re: Weather (Temperature)
Post by: federalfm on September 06, 2019, 01:46:04 AM
Before, you need to create audio files without any sound. Just put the temperature as name of the file. Then, you can start the TTS plugin. So use the event to schedule the file with temperature for TTS can read.

I use the Radio DJ in our radio Federal FM


http://www.federalfm.com.br/automacao-radio/ (http://www.federalfm.com.br/automacao-radio/)
http://www.federalfm.com.br/equipamentos-fm-radio/ (http://www.federalfm.com.br/equipamentos-fm-radio/)
http://www.federalfm.com.br/ouvir-podcast-aplicativos/ (http://www.federalfm.com.br/ouvir-podcast-aplicativos/)