From a8ecfcef87d2d86539b1c8b01c86c59b9604695d Mon Sep 17 00:00:00 2001 From: Nikki Date: Thu, 26 Oct 2017 15:09:29 -0400 Subject: [PATCH] added VoiceWeatherAlarm.xml and updated readme --- README.md | 10 ++++ VoiceWeatherAlarm.prf.xml | 112 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 VoiceWeatherAlarm.prf.xml diff --git a/README.md b/README.md index bd1f0a0..4674984 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,16 @@ and notifies **ONLY** if there will be rain today. Don't forget to change `%WUnderKey` to your API key - get one from [here](http://www.wunderground.com/weather/api). +VoiceWeatherAlarm +----------------- +Runs upon stopping my morning alarm. It fetches today's weather prediction from Weather Underground +and speaks it to you aloud. Prediction includes current temperature, sky condition, humidity percentage, day temperature high, and day temperature low. Additional data can be added be reading the wunderground.com api documentation and editing the tasker details. + +Don't forget to change `%WUnderKey` to *your* unique API key - get one from [here](http://www.wunderground.com/weather/api). Also, enter in your name and zip code. Detailed instructions can be found +[here](https://github.com/NA-Dev/VoiceWeatherAlarm-Tasker). + +You may need to download a Tasker-compatible alarm app, e.g. [Gentle Alarm](https://play.google.com/store/apps/details?id=com.mobitobi.android.gentlealarm&hl=en). Alternatively, you could give the free [ClockTask](https://play.google.com/store/apps/details?id=com.balda.clocktask&hl=en) plugin a try along with your stock alarm app. + SayCaller --------- diff --git a/VoiceWeatherAlarm.prf.xml b/VoiceWeatherAlarm.prf.xml new file mode 100644 index 0000000..ad49eeb --- /dev/null +++ b/VoiceWeatherAlarm.prf.xml @@ -0,0 +1,112 @@ + + + 1508549314954 + 1509033475145 + 30 + 37 + VoiceWeatherAlarm + + 446 + + + + + + + + + 1386947273630 + 1508770528125 + 37 + AlarmWeather + 100 + + 547 + %string + Error, data not found. + + + + + + 547 + %WUnderKey + ###changeme### + + + + + 547 + %Name + ###changeme### + + + + + 547 + %Zip + ###changeme### + + + + + 118 + api.wunderground.com + api/%WUnderKey/conditions/forecast/q/%Zip.json + + + + + + + + + + 129 + false + var tmp = JSON.parse(global('HTTPD')).current_observation.temp_f; + +var skies = JSON.parse(global('HTTPD')).current_observation.weather; + +var high = JSON.parse(global('HTTPD')).forecast.simpleforecast.forecastday[0].high.fahrenheit; + +var low = JSON.parse(global('HTTPD')).forecast.simpleforecast.forecastday[0].low.fahrenheit; + +var humid = JSON.parse(global('HTTPD')).forecast.simpleforecast.forecastday[0].avehumidity; + + + + + + 303 + + + + + + 548 + false + %string + + + + 559 + Good morning %Name. Wake up please. Let me tell you the weather. The current temperature is %tmp degrees. The skies are %skies with %humid percent humidity in the air. The high today will be %high degrees, and the low will be %low degrees. + com.google.android.tts:eng-aus + + + + + + + + + 30 + + + + + + + +