Re: [RDD] Temperature controlled jingles

2013-04-13 Thread Tim Camp
Will short of actually writing scripts, let me see if I can point you in the right direction. Seems like this project would require two scripts. The first you already have run a cron job periodically find out what current temperature is, now store this figure in a file, by adding a simple > tempera

Re: [RDD] Temperature controlled jingles

2013-04-13 Thread Peter Claes
Tim, Do you have an example on how to do this ? I mean getting an external scriptresult into a macro. Regards Peter Verstuurd vanaf mijn iPhone Op 12-apr.-2013 om 15:16 heeft Tim Camp het volgende geschreven: Greetings, Just a thought that a better way to do this instead of messing with aud

Re: [RDD] Temperature controlled jingles

2013-04-12 Thread Tim Camp
Greetings, Just a thought that a better way to do this instead of messing with audio files in var and, have you script assign temperature to a variable then have a macro cart in your log that would read the variable and run rmlsend MN to load the correct cart, this is just one of several ways I can

Re: [RDD] Temperature controlled jingles

2013-04-12 Thread Robert Orr
so do we... it should work as is. Thanks for trying it and giving feedback Robert On Fri, Apr 12, 2013 at 2:58 AM, Peter Claes wrote: > Robert, > > Tried it, works like a charm ! > Had to alter at bit, Because we works in centigrades :) negative values > > Many thanks ! > Peter > > Verstuurd va

Re: [RDD] Temperature controlled jingles

2013-04-12 Thread Peter Claes
Robert, Tried it, works like a charm ! Had to alter at bit, Because we works in centigrades :) negative values Many thanks ! Peter Verstuurd vanaf mijn iPhone Op 10-apr.-2013 om 17:09 heeft Robert Orr het volgende geschreven: Hi Jamie, I have 80 carts numbered from 3460 to 3540 that contain t

Re: [RDD] Temperature controlled jingles

2013-04-10 Thread Geoff Barkman
But don't you think it would be really neat if radio stations all around the world had temperature announcements for the current temperature in Saskatoon Canada. But seriously I'm sure it could be adapted to show temperatures in Dunedin New Zealand or Dunedin Florida if we wanted. Many thanks

Re: [RDD] Temperature controlled jingles

2013-04-10 Thread Jamie Dominey
Thanks, that helps me understand what you are doing and how to adapt it to work for me. On Wed, 2013-04-10 at 09:09 -0600, Robert Orr wrote: > Hi Jamie, > > I have 80 carts numbered from 3460 to 3540 that contain the > temperatures from minus 40 to plus 40. In actuality, each of those > carts ha

Re: [RDD] Temperature controlled jingles

2013-04-10 Thread Robert Orr
Hi Jamie, I have 80 carts numbered from 3460 to 3540 that contain the temperatures from minus 40 to plus 40. In actuality, each of those carts has a dj reading "it's minus 40 in Saskatoon" or "it's minus 39 in Saskatoon" ... etc. All the audio for carts in Rivendell are stored in /var/snd ie. the a

Re: [RDD] Temperature controlled jingles

2013-04-10 Thread Jamie Dominey
Can you give more details? I'm not that familiar with scripts. Where are the 80 carts located and how are they named and numbered? Thanks On Tue, 2013-04-09 at 10:14 -0600, Robert Orr wrote: > Here's mine. I have 80 carts prerecorded with "It's 15 degrees in > Saskatoon", "It's 16 degrees in S

Re: [RDD] Temperature controlled jingles

2013-04-09 Thread Guy Curtis
: Re: [RDD] Temperature controlled jingles To: User discussion about the Rivendell Radio Automation System     >Have a script that fetches the weather from some public API like >forecast.io and this script will put the appropriate cart number in a >known file (e.g. /var/tmp/weather).

Re: [RDD] Temperature controlled jingles

2013-04-09 Thread Robert Orr
Here's mine. I have 80 carts prerecorded with "It's 15 degrees in Saskatoon", "It's 16 degrees in Saskatoon" etc. The script below just runs every 20 minutes via crontab and I have cart 4000 inserted in my log whenever I want to give the temperature: cd /var/snd rm -f canada_e.html wget -q http://t

Re: [RDD] Temperature controlled jingles

2013-04-09 Thread Bill Putney
There is weather station software that runs on Linux (Weather-Display for one) and hobby class weather stations are not that expensive. If have all your own temperature, humidity, wind speed/direction and rain gauge from your own station it is likely to be better and more current than the onlin

Re: [RDD] Temperature controlled jingles

2013-04-09 Thread Sébastien Leblanc
Damn, just checked their terms of use (Forecast.io) and they don't allow radios, newspapers, broadcast and cable television to use their API... ___ Rivendell-dev mailing list Rivendell-dev@lists.rivendellaudio.org http://lists.rivendellaudio.org/mailman/

Re: [RDD] Temperature controlled jingles

2013-04-09 Thread Sébastien Leblanc
Have a script that fetches the weather from some public API like forecast.io and this script will put the appropriate cart number in a known file (e.g. /var/tmp/weather). Then you have a cart which is actually a RML command that runs a shell script. This shell script will check the timestamp on /v

Re: [RDD] Temperature controlled jingles

2013-04-09 Thread Daniel Roviriego
Hi. I Think the approach would change depending on how much earlier you ' d like to schedule your commercial. For instance, if it' s more than 24 hours in advance, I ' d write some code to fill in a txt column formatted file and import that to your slots through the traffic iport function within r

[RDD] Temperature controlled jingles

2013-04-09 Thread Peter Claes
Hi guys, I've read somewhere, that there are stations that use temperature controlled commercial, using rivendell. I would like to have this hourly mentioned on our station. Can someone enlighten me on how i should start on this ? My guess would be a php script that Fetches the temp at for exam