Asked
— Edited

Hi guys.
I need a little help with an RSS feed script and hoping someone can point me in the right direction.
Question one.
Is there a way to have an RSS feed to be spoken through the EZB4 instead of through the PC's sound card as I haven't seen a "SpeakRSSEZB() script function?
Question 2.
I am looking for a way to insert something similar to a "Sleep()" function in-between each RSS feed in the script below with a 2 second gap between each feed read.
SpeakRSS("http://feeds.skynews.com/feeds/rss/uk.xml",1)
SpeakRSS("http://feeds.skynews.com/feeds/rss/uk.xml",2)
SpeakRSS("http://feeds.skynews.com/feeds/rss/uk.xml",3)
SpeakRSS("http://feeds.skynews.com/feeds/rss/uk.xml",4)
The "Sleep() script function is not a viable option as the length of the feeds spoken change length from day to day (or hour to hour) so I need something like a "SayWait() but not sure what or where to put the correct function in to my script.
Many thanks.
Steve G.
It's not finding the 'C:\rssfeeds\rssfeed.txt'. file to read the info according to the debug window. Not sure what I have done wrong here. The first project for the news worked absolutely fine, and still does, but for the life of me cannot figure out why the rssGetter.exe is not working for me. As far as I'm aware i followed the instructions to the letter.
I think I might know what's going on with steve. Check to make sure the exe isn't already running in the task manager in windows. If it is, kill it. I thought of a possible bug when I was about to fall asleep last night. If you run the exe without passing a parameter, it might not be exiting the app. I will look at it this morning.
If the app is running in task manager, kill it and then try again from the example ARC project.
Thanks David and Richard. Well I got the News to work following Richards advice to check the rss feed path and edited it in the project, but no luck with the weather or traffic as there are no text files for them to be read.
Okay, the exe is working. What are you passing in for the rss feed for weather?
If it's one of the ones from earlier, try removing the ,1 from the end of the url.
Right, success
. I deleted everything and started again from scratch, reinstalled the project and RSS get file and it all works really well now. That is a great little project you made there David and will come in very useful. Thank you once again for what you have supplied and for all your help.
Steve.
@Setve G
I just updated the ARC project with rss feeds that should work for you.
The exe always writes to the same text file (c:\rssfeeds\rssfeed.txt). This allows you to only have to change the line in the script that looks like
You can copy the script text and paste it into a new script and then change this line. You could make this a parameter and then set it, and call a single script that would read in this variable to read whatever rss feed you wanted also.
I will also setup a couple of scripts that will do this in the ARC project.
Brilliant. Thanks again. One question, what does the init script in the rss script manager actually do, as it seems to work with out starting the init script?
It is setup in the connection to execute. Once you connect to the EZ-B it sets up a couple of variables that are going to be used for the RSS feed. It isnt necessary but I like to see all of my variables at the start of the project.
I have a new version here for you. You will see a few new scripts.
ReadNews, ReadWeather and ReadTraffic, along with readRSS. The readRSS script is what calls the exe and does the actual work of reading the RSS feed.
The other 3 are what you would modify to call the readRSS script. They set some variables so that readRSS can work.
This is the ReadTraffic script.
This just makes it a bit easier to use and a bit easier to add new feeds as you need to. Download the EZ-B project again to see how its all used.
Your very welcome. I love adding features to ARC that haven't been put in yet. I am sure that DJ and team will put this in at some point, but this helps and can allow them to focus on something else for a bit.