Hi,
I was fidgeting with this last night and came up with the following:
I wanted the phone to tell me todays forecast so I used the HTTP Get
task and entered
rss.wunderground.com/auto/rss_full/global/stations/02635.xml?
units=metric
Where 02635 is my location so you need to either hard code this to
your location or mix in a variable there if you want to be able to
change based on location etc. Also I use metric.
The easiest way to get the correct rss feed is to go to weather
underground.com and search for your location and look at the URL for
the resulting feed. The reason I chose weather underground instead of
Yahoo etc. was because the feed had the info I wanted for this
specific purpose.
in the Server:Port field, chose text/xml as Mime type.
This will create a Variable named %HTTPD
The next step is to split this variable into the parts you need, to do
this you need to find specific points of text in the feed you want to
use as a splitting point. This part is a little tricky and you end up
with a ton of different variables. There is probably a better way of
doing this but I'm just working with trial and error :)
For example: splitting %HTTPD results in two new variables: %HTTPD1
and %HTTPD2 if you then further split %HTTPD1 you end up with %HTTPD11
and %HTTPD12 if you split %HTTPD12 you get %HTTPD121 and %HTTPD122 and
so on.
As you can see you end up with a nice little mess of variables which
each contain a block of the text depending on where you split it.
Once I managed to split the text up in the chunks I wanted I created
the next task which in my case ended up being
Say: Today, %HTTPD22211, %HTTPD22212 degrees, Tonight, %HTTPD32211,
%HTTPD32212 degrees
In clear text it says Today, Partly Cloudy, High 22 degrees, Tonight,
Chance of Rain, Low 17 degrees
(Depending on the forecast of course)
The last thing I did in the task was to clear all the variables out so
that there is a clean slate for other tasks to use the HTTP Get
command.
Hope that helps get you started at least.
On Aug 1, 7:30 am, iraqidonkey <
rihav...@gmail.com> wrote:
> Okay, I am really new to this, and I have never programmed anything
> like this. I am trying to make an alarm clock that will tell me theweatherfor my current location. I have it so it will play music, and