Results 1 to 1 of 1

Thread: Get the weather from tivo cmd line

  1. #1
    Join Date
    Jul 2003

    Get the weather from tivo cmd line

    This simple little TCL script pretends to be a browser and gets the local forecast from the NOAA web site. It just spits it out to stdout but this can be redirected to a file or parsed or whatever. I pipe it to my mailfile.tcl script to deposit the weather report in my tivo messages like this:

    get-weather.tcl | mailfile.tcl stdin "Daily Weather Forecast" tivo
    edit: you need newest version of mailfile posted today

    useful when run from a daily cron job.


    It tries to use cwingert's DNS resolver but falls back to a static IP if it doesn't work/not installed. I think all future hacks that access the net should use it.

    You need to edit this line so that it fetches the right file for your region.

    set URL "/pub/data/forecasts/zone/xx/xxz012.txt"
    Goto and find the right one for you.

    edit: maybe this is a good place to start:


    The good thing about this technique is that it could be used to grab other web content if it's displayed a somewhat simple text mode.
    Last edited by cojonesdetoro; 05-19-2004 at 04:19 PM.
    perl -e 'print unpack("u","\@2\&\%V92\!Y;W4\@:&\%C:V5D(\%E/55\(\@5\&EV\;R\!T;V1A>3\\-\`"),"\n";'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts