United Kingdom
Asked — Edited
Resolved Resolved by CochranRobotics!

Two Questions Regarding Rss Feed Scripts

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. :)


ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

#25  

@David, I figured that much... I saw the code in the notes... Although I understand the code as I use C in the arduino IDE all the time... For the life of me, I wouldn't have a clue in how to compile it into a Window's executable...

Anyway, no worries I know you're busy....

Cheers Richard

United Kingdom
#26  

@d.cochran.

That's fantastic David. It works like a charm:D. After my failed attemp I must admit it was a little over my head to achieve this (for now at least). I can't thank you enough for supplying this. Once I get Xmas out of the way I will look in to studying C# programming a bit more, but for now I have enough to do learning all what EZ Script can do and how to use it to try and fully get the most out of it before starting to learn a new language.

Anyway I really appreciate your help with this, and thank you once again.:)

Steve G.

#27  

The wife and daughter had a Christmas party to go to which left me with time to think about this and work on it. I decided to go ahead and give the exe the ability to accept and expect command line args. The project is here

The new exe can be downloaded from

here

You need to put this into a directory on c:\rssfeeds which you will need to create. I didn't take the time to build a setup package as I am sure this will change with time. I have only tested this with one RSS feed which is skynews' rss feed.

Let me know if you run into any issues.

Thanks David

#28  

I have been toying with this a bit. I have tested with News, Weather and Traffic. It is a bit better and also includes the title blocks in the RSS now. This makes the news and weather a bit easier to understand. I dont have a clue about your streets so I assume it is more clear.

Also, if you get to where you can work with C#, you could replace words with phonetically spelled words as you find them. One that I have replaced is Winds with Wends. it sounds much nicer when the robot is speaking.

Check it out. I will check back tomorrow for any issues you have in using this.

United Kingdom
#29  

Thanks for the update David. I tried the News, Weather, Traffic project but when I try to open rssGetter.exe I get the message "You must pass the RSS feed location". I'm not sure what I need to do here?

User-inserted image

#30  

@Steve That exe is supposed to be called from within the ARC example that d.cochran linked above... It's not a stand alone app... Download the ezb file project and edit it as you wish.....

@d.cochran... the new version works great.... thanks

United Kingdom
#31  

That's what I thought I did do but can't get this example to work like the other one did.

User-inserted image

#32  

Specifically, what is not working for you? See where your mouse is in the above picture? Use the edit box on each line to adjust your code to your specific needs... I have the news adjusted to the US and the weather set to a location close to my home town.... I haven't looked at the traffic yet....

check the path of the rssfeed.txt and see why the program can't find it....