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 <[email protected]> wrote:

> 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 <[email protected]> het
> volgende geschreven:
>
> 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 audio
> for cart number 3460 is /var/snd/003460_001.wav so here's what my script
> does:
> cd /var/snd        #change directory to /var/snd
> rm -f canada_e.html
> wget -q http://text.weatheroffice.gc.ca/canada_e.html      #grab the text
> version of the temperature website
> j=`cat canada_e.html |grep Saskatoon |sed -e :a -e
> 's/<[^>]*>//g;/</N;//ba; s/[a-zA-Z&;]//g'`      #strip out everything
> except the temperature in Saskatoon for example 15
>  s=$((3500+$j))                  #in our 15 degree example s would equal
> 3515
>  file=00${s}_001.wav           #the audio file that corresponds to 15
> degrees is 003515_001.wav
> cp $file 004000_001.wav      #replace the 004000_001.wav audio with, in
> our example, the 003515_001.wav audio so when cart 4000 is played it will
> say "it's 15 degrees in Saskatoon".
>
> The script is called commandtoextracttemperature.sh and is stored in my
> home directory and made executable. This line in the root crontab
> 4,24,44 * * * * /home/robert/commandtoextracttemperature.sh
> fires the script every 20 minutes and I insert cart 4000 any time in the
> log that I want the current temperature recording to play.
> Note, messing with the audio in /var/snd is not the approved method of
> doing things in Rivendell. I should be doing an rdimport command. But it
> works for me and I wrote that script many years ago before I knew you could
> import without the gui.
>
> Hope that helps.
> Robert
>
>
> On Wed, Apr 10, 2013 at 6:14 AM, Jamie Dominey <[email protected]>wrote:
>
>> 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 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://text.weatheroffice.gc.ca/canada_e.html
>> > j=`cat canada_e.html |grep Saskatoon |sed -e :a -e
>> > 's/<[^>]*>//g;/</N;//ba; s/[a-zA-Z&;]//g'`
>> >  s=$((3500+$j))
>> >  file=00${s}_001.wav
>> > cp $file 004000_001.wav
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Tue, Apr 9, 2013 at 9:54 AM, Bill Putney <[email protected]> wrote:
>> >         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 online sources, unless you live next to a major
>> >         airport. All
>> >         the information would be available as local variables
>> >         refreshed minute
>> >         by minute to make decisions about what to play.
>> >
>> >         Bill
>> >
>> >         On 4/9/13 8:17 AM, Sébastien Leblanc wrote:
>> >         > 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
>> >         > [email protected]
>> >         >
>> >         http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>> >
>> >         _______________________________________________
>> >         Rivendell-dev mailing list
>> >         [email protected]
>> >         http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>> >
>> >
>> >
>> > _______________________________________________
>> > Rivendell-dev mailing list
>> > [email protected]
>> > http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>>
>>
>> _______________________________________________
>> Rivendell-dev mailing list
>> [email protected]
>> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>>
>
> _______________________________________________
> Rivendell-dev mailing list
> [email protected]
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>
>
> _______________________________________________
> Rivendell-dev mailing list
> [email protected]
> http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev
>
>
_______________________________________________
Rivendell-dev mailing list
[email protected]
http://lists.rivendellaudio.org/mailman/listinfo/rivendell-dev

Reply via email to