GetPlaceName (18)
A1: Variable Clear [ Name:%LOCNAME
Pattern Matching:Off ]
A2: Variable Clear [ Name:%PCODE
Pattern Matching:Off ]
A3: Flash [ Text:PLEASE WAIT Long:On
]
A4: HTTP Get [
Server:Port:maps.google.com/maps/api/geocode/json?latlng=%LOCN&sensor=false
Path: Attributes: Cookies: Timeout:10 Mime Type:text/xml Output File:pcode ]
A5: Variable Set [ Name:%PLACE
To:%HTTPD Do Maths:Off Append:Off ]
A6: Variable Split [ Name:%HTTPD
Splitter:"types" : [ "country", "political" ]
Delete Base:On ]
A7: Variable Split [ Name:%HTTPD2
Splitter:{ Delete Base:On ]
A8: Variable Split [ Name:%HTTPD22
Splitter:: " Delete Base:Off ]
A9: Variable Set [ Name:%POST
To:%HTTPD222 Do Maths:Off Append:Off ]
A10: Variable Clear [ Name:%HTTP*
Pattern Matching:On ]
A11: Variable Split [ Name:%POST
Splitter:" Delete Base:Off ]
A12: Variable Set [ Name:%PCODE
To:
%POST1 Do Maths:Off Append:Off ]
A13: Variable Split [ Name:%PLACE
Splitter:"route" Delete Base:Off ]
A14: Variable Split [ Name:%PLACE2
Splitter:: " Delete Base:Off ]
A15: Variable Split [ Name:%PLACE22
Splitter:" Delete Base:Off ]
A16: Variable Set [ Name:%LOCNAME
To:%PLACE221 Do Maths:Off Append:Off ]
A17: Variable Clear [ Name:%PLACE*
Pattern Matching:On ]
A18: Show Scene [ Name:HTTP Display
As:Dialog Horizontal Position:100 Vertical Position:100 Show Exit Button:On
Continue Task Immediately:On ]
%PCODE is Postcode
Scene shows %PCODE and %LOCNAME
Weather forecast (27)
A1: HTTP Get [
Server:Port:ical.wunderground.com/auto/ical/TX/Dallas.ics Path: Attributes:
Cookies: Timeout:10 Mime Type:text/xml Output File: ]
A2: Variable Set [ Name:%result To:%HTTPD Do Maths:Off
Append:On ]
A3: Variable Split [ Name:%result Splitter:DESCRIPTION:
Delete Base:On ]
A4: Variable Split [ Name:%result2 Splitter:\n Delete
Base:Off ]
A5: Say [ Text:Here is the weather report for %result21
Engine:Voice:eng-us Stream:3 Pitch:5 Speed:5 Continue Task Immediately:Off ]
On the variable split %HTTPD21 my splitter is this:
] }, { "long_name" : "
The way I found that is in eye variables under %HTTPD21 it was not just "long_name" : " it was what I listed above. So i just copied what I saw in the variable before the Zipcode and it worked.
Hope this will help someone!
Here is what I use.
From: tas...@googlegroups.com [mailto:tas...@googlegroups.com] On Behalf Of Christopher Lewis
Sent: Monday, April 15, 2013 9:51 PM
To: tas...@googlegroups.com
Subject: Re: Task that retrieves the 'zipcode' from location (%LOC) task
Scott, I'd like to mod your profile to send the weather to my Pebble watch. Any chance you can share you updated profile that pulls currently location?
On Monday, March 4, 2013 7:17:45 AM UTC-7, ScottS wrote:
I found and tweaked the following Profile from the wiki: Gets and Speaks Weather for Current Location in Morning
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/LklOAoVfm-s/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Here’s what I use for current weather.
From: tas...@googlegroups.com [mailto:tas...@googlegroups.com] On Behalf Of Christopher Lewis
Sent: Wednesday, April 17, 2013 12:31 AM
To: tas...@googlegroups.com
Subject: Re: Task that retrieves the 'zipcode' from location (%LOC) task
Thanks again Scott. I got it to work and send the information to my Pebble. One thing I'd like to add is the current temperature. I can't seem to find the XML link at wunderground to get that info like you have the forecast and location info. I've tried several things in place of the ForecastXML portion of the link without success. Is there a list somewhere that shows what links I can use?
--