--
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/c3ck63Kr3sM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
Code
arr = JSON.parse(global("HTTPD"));
var wuconditions = arr.forecast.simpleforecast.forecastday[0].conditions; var wuicon = arr.forecast.simpleforecast.forecastday[0].icon; var wuiconurl = arr.forecast.simpleforecast.forecastday[0].icon_url; var wuhigh = arr.forecast.simpleforecast.forecastday[0].high.fahrenheit; var wulow = arr.forecast.simpleforecast.forecastday[0].low.fahrenheit; var wutitle1 = arr.forecast.txt_forecast.forecastday[0].title; var wutitle2 = arr.forecast.txt_forecast.forecastday[1].title; var wufcttext1 = arr.forecast.txt_forecast.forecastday[0].fcttext; var wufcttext2 = arr.forecast.txt_forecast.forecastday[1].fcttext; var wumaxwindmph = arr.forecast.simpleforecast.forecastday[0].maxwind.mph; var wuavewindmph = arr.forecast.simpleforecast.forecastday[0].avewind.mph; var wuavewinddir = arr.forecast.simpleforecast.forecastday[0].avewind.dir; var wumaxwinddir = arr.forecast.simpleforecast.forecastday[0].maxwind.dir; var wuavehumidity = arr.forecast.simpleforecast.forecastday[0].avehumidity;
Then you can "variable search and replace" your variables as needed to get what you are looking for or do not want. ie, I use a say command to read the weather but it will say the "F" so I did a "variable search and replace" for F[.] and replaced it with degrees - now my say task will say it correctly. Especially handy when you get to wind directions - NW, NNW, SSW, W, NW etc...
I haven't figured out how to get all of the wind directions in a few actions so I have about 20 "search and replace" :( (would definately appreciate a little help with that)
Also would love a solution to get weather based on current location. Currently I've hardcoded the location.
I didn't create this as I have little to no experience with java/javascripts but I hope that it helps
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
For more options, visit <a
To unsubscribe from this group and all its topics, send an email to tasker+unsubscribe@googlegroups.com.
(dynamic)
 <a
On Monday, April 3, 2017 at 7:16:34 AM UTC+2, Logan Fury wrote:<blockquote class="gmail_quot
--
--
--
Im sure this is part of the puzzle but im not sure how to use this in an HTTP GET. As I can access all my forcast, conditions, astronomy, etc pages on the net to search for variables, I tried to open a page with this data. I used:
http://api.wunderground.com/auto/wui/geo/GeoLookupXML/index.xml?query=%LOCN
and it took me to a simple WU page with this info:
<wui_error><title>Search not found</title><description/></wui_error>So, im stumped. Rob or anyone that understands what im trying to accomplish here and has time to explain, please post when you can.Thanks as always for reading.
Awesome work, how about a XML file for those of us who have been watching this grow into a success story! 😃
That's great. Yes I am in the US. No worries, just love/admire the hard work you put into this.
That looks great. I am from San Diego, but just moved to Minnesota to help with Mom care. So I can definitely help test this for you 😉
Hmmmm, seems like I can't unzip this file after I d/l it? Can someone else check it? I have d/l it several times now.  Eager to check it out!
Marta
Marta
Sounds good, I will be in Florida for another week and will return to Minnesota, so will check to see what you got and"test" it for you 😎
I do like those clean lines. 😃 Looks very good to me.
Sometimes, the voice interface you use can affect the spoken output. For example, Ivona Voice will sometimes interpret certain words as abbreviations where the standard Google text to speech will not. I had to ditch Ivona voice a few years ago for that very reason. Quite annoying.