If this is your first visit, be sure to check out the FAQ. You must register before you can post. Your first post will be checked for appropriate content
(SPAM) - please allow a bit of time for that. After that, you'll be able to post at will!
I ran your script and it seems to have set up correctly. My virtual device gets the headlines, but is it supposed to create a page with the results? What are the options as far as seeing or hearing the results?
As implemented the script just updates a virtual device that can be viewed on your status page. If you want to do more you can then setup up an .asp page to display as you please.
-Rupp
...One Nation Under GOD, Indivisible, With Liberty And Justice For All.
Rupp is correct, all it does is update a virtual device with the new headlines. You can control the output format by changing the template, i.e. if you want to process this in a page as I did, just include the standard HTML link tags, so you can click it within the webinterface.
How often do you check for breaking news? I have mine set to check every 10 minutes and I believe this is why I'm missing out on most of the breaking news headlines. How long do they leave the alert up?
-Rupp
...One Nation Under GOD, Indivisible, With Liberty And Justice For All.
most alerts stay up for a while, I got my breaking news set to 5mins (but JUST changed it to 3), and headlines to 10. CNN has a cluster of webservers and gets millions of hits a day, a few more won't hurt [img]/infopop/emoticons/icon_wink.gif[/img] We aren't even downloading the graphic content, so bandwidth usage is minimal. If you got broadband or a fast connection, even 1 minute wouldn't hurt (I don't set it to 1 because I got too many scripts running every minute as it is). I haven't gotten any alerts today yet, which is what matters since the script was seriously screwed up yesterday.
actually most people are wondering what it does.
I actually expected it to read the headlines. Dont know why, I looked at the script and realized that wasnt the case. But now I get it. It updates my web page when their is news and then takes me to the site.
I just setup a voice event to tell me when the Virtual Device Changes telling me there are some headlines then Turns on my TV to the news.
Very useful to the creative mind.
__________________________
Dave and RJON
233 mhz PII 256mb RAM
Windows 2000 SP2
Ocelot for IR and x10
HomeSeer Ver 1.6
HS Phone Ver 1.0.xx
_____________________
I am adding a routine to my morning script that reads the headlines. If you only want to use it to read headlines to you, and don't care for the webdisplay, then remove the HTML and %%url%% from the HTMLtemplate, it should make processing easier.
ok, I added the option to hs.speak the headlines with a 2 second pause. All you have to do is call the script using custom_cnn_headlines.txt("main","speak"). This way, you could include it in your goodmorning script or trigger it by a remote. If you just run the script without parameters, it will only update the device.
ack that's what happens when you make a change, hardcode it, then test it, change it so it's a variable and don't test it again. Sorry guys, I did that one in a hurry to make some people happy. Will fix it.
Comment