commit fcf6e8ef36d4ac6d402d0109d661113ce1c31412 Author: Markus Birth Date: Sat Aug 23 22:02:49 2014 +0200 Initial Commit diff --git a/CameraMute.prj.xml b/CameraMute.prj.xml new file mode 100644 index 0000000..a8ad276 --- /dev/null +++ b/CameraMute.prj.xml @@ -0,0 +1,120 @@ + + 1080.0,1776.0 + + 1322875031772 + 1408821215348 + 16 + 5 + 6 + 59 + πŸ“· Silence Camera + + com.android.camera.CameraLauncher + 2 + Camera + com.google.android.GoogleCamera + + + + 1408821140615 + CameraMute + 5 + Alpha + Muted Icon + 58,6,59 + + hl_device_access_camera + + + + 1361323151406 + 1408821236134 + -1 + 109 + Muted Icon + -1 + 107 + + 58 + 4 + 0,0,106,97,-1,-1,-1,-1 + Muted + + hd_device_access_volume_muted + + + # + + 4 + -1,-1,-1,-1,-1,-1,-1,-1 + + + #77333333 + #77333333 + + #FF000000 + + + + + + + + #33FFFFFF + + Muted Icon + + + + + + + 1361323528946 + 1361323528946 + 58 + + 49 + Muted Icon + + + %TRUN + 3 + Silence + + + + + + 1361323740300 + 1408821226733 + 59 + Hide Mute Icon + + 49 + Muted Icon + + + + 1332335481311 + 1408821244180 + 6 + Silence + + 310 + + + + 47 + Muted Icon + + + + + + + + + hl_device_access_volume_muted + + + diff --git a/LetsGoHome.tsk.xml b/LetsGoHome.tsk.xml new file mode 100644 index 0000000..910d735 --- /dev/null +++ b/LetsGoHome.tsk.xml @@ -0,0 +1,83 @@ + + + 1373144774404 + 1373146475970 + 69 + LetsGoHome + 10 + + 547 + %TransitFrom + Alexanderplatz 1, 10178 Berlin + + + + + 547 + %TransitTo + Pariser Platz 1, 10117 Berlin + + + + + 118 + maps.googleapis.com + maps/api/directions/json + origin=%TransitFrom +destination=%TransitTo +sensor=false +departure_time=%TIMES +mode=transit +language=de + + + text/* + + + + 129 + var data=JSON.parse(global('HTTPD')); + +var route=data['routes'][0]['legs'][0]; +setGlobal('TransitLeavingTime', route['departure_time']['text']); + +var first_transit=null; +for (var i in route['steps']) { + if (route['steps'][i]['travel_mode'] === 'TRANSIT') { + first_transit=route['steps'][i]; + break; + } +} + +setGlobal('TransitTitle', first_transit['html_instructions']); +setGlobal('TransitLine', first_transit['transit_details']['line']['short_name']); + + + + + + 547 + %TransitInfo + Um %TransitLeavingTime los gehen, um %TransitTitle zu erreichen. + + + + + 548 + %TransitInfo + + + + 559 + %TransitInfo + com.google.android.tts:deu-deu + + + + + + + hd_aaa_ext_home + + + diff --git a/PowerDownTimer.prj.xml b/PowerDownTimer.prj.xml new file mode 100644 index 0000000..2d814b8 --- /dev/null +++ b/PowerDownTimer.prj.xml @@ -0,0 +1,383 @@ + + 720.0,1184.0 + + 1408818362914 + true + 1408818382949 + 10 + 9 + Check/Reset Endtime + + + + 1407359874845 + true + 1408817622594 + 2 + 5 + Movement Detected + + 599 + org.motion.detector.ACTION_GLOBAL_BROADCAST + + + + + + + + 1408810584607 + true + 1408802784182 + 7 + 6 + 6 + Orientation Change + + 122 + + + + + 1408810584752 + true + 1408802314772 + 8 + 4 + Show Bar if time left + + 165 + + + %PowerDownTime + 7 + 0 + + + + + + 1408797356058 + PowerDownTimer + 2,7,8,10 + Alpha + πŸ“± Countdown + 5,9,6,4 + + hl_device_access_data_usage + + + + 1408752136929 + 1408810702795 + 20 + 20 + πŸ“± Countdown + 1280 + 720 + + 4 + 0,0,720,20,0,0,1280,20 + SecondsLeft + + #FF00FF2E + + + #FF000000 + + + + + + + #00FFFFFF + + Countdown + + + + + + + 1408753205686 + 1408817594186 + 4 + πŸ”œ Countdown + 10 + + 11820 + + + Screen & Keyboard Lights On +1 Second + java.lang.String + wake_device + java.lang.String + 1000 + java.lang.Long + full + java.lang.String + Screen & Keyboard Lights On +1 Second + java.lang.String + true + java.lang.Boolean + + + com.intangibleobject.securesettings.plugin + Secure Settings + + + + 812 + + + + + + 547 + %sceneon + 1 + + + + + 38 + + + 30 + + + + + + + + 135 + + + StepDown + + + %TIMES + 6 + %PowerDownTime + + + + + 58 + πŸ“± Countdown + SecondsLeft + + + 1 + + + + + + 49 + πŸ“± Countdown + + + 547 + %PowerDownTime + 0 + + + + + 16 + + + 49 + false + πŸ“± Countdown + + + 46 + πŸ“± Countdown + + + 300 + + + + 547 + %secondsleft + %PowerDownTime - %TIMES + + + + + 547 + %length + ( %secondsleft / ( %PowerDownTime - %PowerDownReset ) ) * %ScreenWidth + + + + + 58 + πŸ“± Countdown + SecondsLeft + + + %length + + + + + + %length + 7 + 0 + + + + + 37 + + + %sceneon + 1 + 1 + + + + + 47 + πŸ“± Countdown + + + + + + + + + + 1408797442309 + 1408817610616 + 5 + πŸ” Countdown Reset + 10 + + 547 + %PowerDownReset + %TIMES + + + + + 547 + %PowerDownTime + %TIMES + %PowerDownSeconds + + + + + + 1408798930038 + 1408802752403 + 6 + πŸ“± Get Screen Size + 10 + + 123 + dumpsys window | grep cur= + + + %screeninfo + + + + + 590 + %screeninfo + cur= + + + + 547 + %screeninfo + %screeninfo2 + + + + + 590 + %screeninfo + + + + + 547 + %ScreenSize + %screeninfo1 + + + + + 547 + %screensize + %ScreenSize + + + + + 590 + %screensize + x + + + + 547 + %ScreenWidth + %screensize1 + + + + + 547 + %ScreenHeight + %screensize2 + + + + + + 1408818309001 + 1408818403903 + 9 + πŸ”š Check/Reset Endtime + 10 + + 37 + + + %TIMES + 7 + %PowerDownTime + + + + + 547 + %PowerDownTime + 0 + + + + + 38 + + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..bd1f0a0 --- /dev/null +++ b/README.md @@ -0,0 +1,41 @@ +Tasker for Android Tasks +======================== + +(Import by long-press on PROFILES-tab in Tasker.) + + +CameraMute +---------- +Mutes the phone (and therefore the shutter sound) while the camera is active - to not frighten away the subjects. + + +LetsGoHome +---------- +Queries the next transit connection between the given addresses (`%TransitFrom`and `%TransitTo`) and notifies you of the time you should leave. You can set e.g. `%TransitFrom` to `%LOCN` to get directions from your current position. + + +PowerDownTimer +-------------- +Needs a Tasker-compatible motion detection app, e.g. [Motion Detector](https://play.google.com/store/apps/details?id=org.motion.detector Motion Detector). Also needs Root. + +Set your desired screen timeout in the `%PowerDownSeconds` variable. + +Upon triggering the *Countdown Reset* task, the screen turns on and a green bar appears at the top of the screen and shrinks according to the seconds left. When new movement is detected, i.e. the task is triggered another time, the bar fills up again. If no movement is detected and the bar reaches 0, the screen is turned off. + + +RainWarning +----------- +Runs upon stopping my morning alarm. It fetches today's weather prediction from Weather Underground +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). + + +SayCaller +--------- +Announces the caller's first name. + + +SayLocation +----------- +This task aquires your location, geocodes it into an address using the Google Geocoding API and speaks the address to you. It is meant to be launched via Google Now and AutoVoice. diff --git a/RainWarning.prf.xml b/RainWarning.prf.xml new file mode 100644 index 0000000..f274816 --- /dev/null +++ b/RainWarning.prf.xml @@ -0,0 +1,169 @@ + + + 1365112517568 + true + 1365113603659 + 62 + 60 + Rain Warning + + + 306 + + + + 1365078569558 + 1370607047164 + 60 + RainWarning + 10 + + 547 + %WUnderKey + ###changeme### + + + + + 118 + api.wunderground.com + /api/%WUnderKey/forecast/lang:DL/q/%LOCN.json + + + + text/* + + + + 598 + %Rain_predict2 + km/h + + + + + + Kilometer pro Stunde + + + 559 + Heute gibt es %Rain_mm Millimeter Regen. TagsΓΌber: %Rain_predict. Nachts: %Rain_predict2 + default:default + + + + + + + 38 + + + 547 + %JSON + %HTTPD + + + + + 129 + var json_str=global('HTTPD'); +var data=JSON.parse(json_str); +var today=data['forecast']['simpleforecast']['forecastday'][0]; +var today_txt= data['forecast']['txt_forecast']['forecastday'][0]; +var tonight_txt= data['forecast']['txt_forecast']['forecastday'][1]; +setGlobal('Rain_mm', today['qpf_allday']['mm']); +setGlobal('Rain_date', today['date']['pretty']); +setGlobal('Rain_predict', today_txt['fcttext_metric']); +setGlobal('Rain_predict2', tonight_txt['fcttext_metric']); + + + + + + 37 + %Rain_mm + 4 + 0 + + + 598 + %Rain_mm + \. + + + + + + , + + + 523 + Heute %Rain_mm mm Regen + %Rain_predict (%Rain_date) + + hd_aaa_ext_rain + + + + + + + + 20 + + com.weather.Weather.activity.WeatherController + com.weather.Weather + + + + + + + com.weather.Weather.activity.WeatherController + com.weather.Weather + + + + + 598 + %Rain_predict + ([0-9.]+)C + + + + + + $1 Grad + + + 598 + %Rain_predict + km/h + + + + + + Kilometer pro Stunde + + + 598 + %Rain_predict2 + ([0-9.]+)C + + + + + + $1 Grad + + + hd_aaa_ext_rain + + + diff --git a/SayCaller.prf.xml b/SayCaller.prf.xml new file mode 100644 index 0000000..722c238 --- /dev/null +++ b/SayCaller.prf.xml @@ -0,0 +1,38 @@ + + + 1322875032080 + 1370610573034 + 16 + 24 + 25 + Phone Ringing + + 6 + + + + + 1332335481305 + 1370610573033 + 25 + 10 + + 590 + %CNAME + + + + + 559 + Anruf von %CNAME1 + com.google.android.tts:deu-DEU + + + + + + + hd_social_person + + + diff --git a/SayLocation.tsk.xml b/SayLocation.tsk.xml new file mode 100644 index 0000000..0ba6848 --- /dev/null +++ b/SayLocation.tsk.xml @@ -0,0 +1,63 @@ + + + 1407385982443 + 1408201909173 + 41 + πŸ’¬ Say Location + 10 + + 559 + Let me check that. + default:default + + + + + + + + + 902 + + + + + + + 118 + maps.google.com + maps/api/geocode/json + latlng=%LOC +sensor=false +language=en + + + + + + + + + 129 + var data=JSON.parse(global('HTTPD')); +setGlobal('LastAddress', data['results'][0]['formatted_address']); + + + + + + 559 + You are at %LastAddress + default:default + + + + + + + + + hl_ab_device_access_location_found + + +