Archived
1
0

Initial Commit

This commit is contained in:
Markus Birth 2014-08-23 22:02:49 +02:00
commit fcf6e8ef36
7 changed files with 897 additions and 0 deletions

120
CameraMute.prj.xml Normal file
View File

@ -0,0 +1,120 @@
<TaskerData sr="" dvi="1" tv="4.4u3m">
<dmetric>1080.0,1776.0</dmetric>
<Profile sr="prof5" ve="2">
<cdate>1322875031772</cdate>
<edate>1408821215348</edate>
<flags>16</flags>
<id>5</id>
<mid0>6</mid0>
<mid1>59</mid1>
<nme>📷 Silence Camera</nme>
<App sr="con0" ve="2">
<cls0>com.android.camera.CameraLauncher</cls0>
<flags>2</flags>
<label0>Camera</label0>
<pkg0>com.google.android.GoogleCamera</pkg0>
</App>
</Profile>
<Project sr="proj0" ve="2">
<cdate>1408821140615</cdate>
<name>CameraMute</name>
<pids>5</pids>
<psort>Alpha</psort>
<scenes>Muted Icon</scenes>
<tids>58,6,59</tids>
<Img sr="icon" ve="2">
<nme>hl_device_access_camera</nme>
</Img>
</Project>
<Scene sr="sceneMuted Icon">
<cdate>1361323151406</cdate>
<edate>1408821236134</edate>
<heightLand>-1</heightLand>
<heightPort>109</heightPort>
<nme>Muted Icon</nme>
<widthLand>-1</widthLand>
<widthPort>107</widthPort>
<ImageElement sr="elements0" ve="2">
<clickTask>58</clickTask>
<flags>4</flags>
<geom>0,0,106,97,-1,-1,-1,-1</geom>
<Str sr="arg0" ve="3">Muted</Str>
<Img sr="arg1" ve="2">
<nme>hd_device_access_volume_muted</nme>
</Img>
<Int sr="arg2" val="255"/>
<Str sr="arg3" ve="3">#</Str>
<RectElement sr="background">
<flags>4</flags>
<geom>-1,-1,-1,-1,-1,-1,-1,-1</geom>
<Str sr="arg0" ve="3"/>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3">#77333333</Str>
<Str sr="arg3" ve="3">#77333333</Str>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3">#FF000000</Str>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</RectElement>
</ImageElement>
<PropertiesElement sr="props">
<Int sr="arg0" val="1"/>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3">#33FFFFFF</Str>
<Int sr="arg3" val="0"/>
<Str sr="arg4" ve="3">Muted Icon</Str>
<Str sr="arg5" ve="3"/>
<Img sr="arg6" ve="2"/>
<Str sr="arg7" ve="3"/>
</PropertiesElement>
</Scene>
<Task sr="task58">
<cdate>1361323528946</cdate>
<edate>1361323528946</edate>
<id>58</id>
<Action sr="act0" ve="6">
<code>49</code>
<Str sr="arg0" ve="3">Muted Icon</Str>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%TRUN</lhs>
<op>3</op>
<rhs>Silence</rhs>
</Condition>
</ConditionList>
</Action>
</Task>
<Task sr="task59">
<cdate>1361323740300</cdate>
<edate>1408821226733</edate>
<id>59</id>
<nme>Hide Mute Icon</nme>
<Action sr="act0" ve="6">
<code>49</code>
<Str sr="arg0" ve="3">Muted Icon</Str>
</Action>
</Task>
<Task sr="task6">
<cdate>1332335481311</cdate>
<edate>1408821244180</edate>
<id>6</id>
<nme>Silence</nme>
<Action sr="act0" ve="6">
<code>310</code>
<Int sr="arg0" val="1"/>
</Action>
<Action sr="act1" ve="6">
<code>47</code>
<Str sr="arg0" ve="3">Muted Icon</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="200"/>
<Int sr="arg4" val="1"/>
<Int sr="arg5" val="0"/>
<Int sr="arg6" val="1"/>
</Action>
<Img sr="icn" ve="2">
<nme>hl_device_access_volume_muted</nme>
</Img>
</Task>
</TaskerData>

83
LetsGoHome.tsk.xml Normal file
View File

@ -0,0 +1,83 @@
<TaskerData sr="" dvi="1" tv="4.1u3m">
<Task sr="task69">
<cdate>1373144774404</cdate>
<edate>1373146475970</edate>
<id>69</id>
<nme>LetsGoHome</nme>
<pri>10</pri>
<Action sr="act0" ve="3">
<code>547</code>
<Str sr="arg0" ve="3">%TransitFrom</Str>
<Str sr="arg1" ve="3">Alexanderplatz 1, 10178 Berlin</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="3">
<code>547</code>
<Str sr="arg0" ve="3">%TransitTo</Str>
<Str sr="arg1" ve="3">Pariser Platz 1, 10117 Berlin</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act2" ve="3">
<code>118</code>
<Str sr="arg0" ve="3">maps.googleapis.com</Str>
<Str sr="arg1" ve="3">maps/api/directions/json</Str>
<Str sr="arg2" ve="3">origin=%TransitFrom
destination=%TransitTo
sensor=false
departure_time=%TIMES
mode=transit
language=de</Str>
<Str sr="arg3" ve="3"/>
<Int sr="arg4" val="10"/>
<Str sr="arg5" ve="3">text/*</Str>
<Str sr="arg6" ve="3"/>
</Action>
<Action sr="act3" ve="3">
<code>129</code>
<Str sr="arg0" ve="3">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']);</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
<Action sr="act4" ve="3">
<code>547</code>
<Str sr="arg0" ve="3">%TransitInfo</Str>
<Str sr="arg1" ve="3">Um %TransitLeavingTime los gehen, um %TransitTitle zu erreichen.</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act5" ve="3">
<code>548</code>
<Str sr="arg0" ve="3">%TransitInfo</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act6" ve="3">
<code>559</code>
<Str sr="arg0" ve="3">%TransitInfo</Str>
<Str sr="arg1" ve="3">com.google.android.tts:deu-deu</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="7"/>
<Int sr="arg5" val="0"/>
</Action>
<Img sr="icn" ve="2">
<nme>hd_aaa_ext_home</nme>
</Img>
</Task>
</TaskerData>

383
PowerDownTimer.prj.xml Normal file
View File

@ -0,0 +1,383 @@
<TaskerData sr="" dvi="1" tv="4.4u3m">
<dmetric>720.0,1184.0</dmetric>
<Profile sr="prof10" ve="2">
<cdate>1408818362914</cdate>
<clp>true</clp>
<edate>1408818382949</edate>
<id>10</id>
<mid0>9</mid0>
<nme>Check/Reset Endtime</nme>
<Time sr="con0">
<fh>-1</fh>
<fm>-1</fm>
<rep>2</rep>
<repval>2</repval>
<th>-1</th>
<tm>-1</tm>
</Time>
</Profile>
<Profile sr="prof2" ve="2">
<cdate>1407359874845</cdate>
<clp>true</clp>
<edate>1408817622594</edate>
<id>2</id>
<mid0>5</mid0>
<nme>Movement Detected</nme>
<Event sr="con0" ve="2">
<code>599</code>
<Str sr="arg0" ve="3">org.motion.detector.ACTION_GLOBAL_BROADCAST</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
</Event>
</Profile>
<Profile sr="prof7" ve="2">
<cdate>1408810584607</cdate>
<clp>true</clp>
<edate>1408802784182</edate>
<id>7</id>
<mid0>6</mid0>
<mid1>6</mid1>
<nme>Orientation Change</nme>
<State sr="con0" ve="2">
<code>122</code>
<Int sr="arg0" val="0"/>
</State>
</Profile>
<Profile sr="prof8" ve="2">
<cdate>1408810584752</cdate>
<clp>true</clp>
<edate>1408802314772</edate>
<id>8</id>
<mid0>4</mid0>
<nme>Show Bar if time left</nme>
<State sr="con0" ve="2">
<code>165</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%PowerDownTime</lhs>
<op>7</op>
<rhs>0</rhs>
</Condition>
</ConditionList>
</State>
</Profile>
<Project sr="proj0" ve="2">
<cdate>1408797356058</cdate>
<name>PowerDownTimer</name>
<pids>2,7,8,10</pids>
<psort>Alpha</psort>
<scenes>📱 Countdown</scenes>
<tids>5,9,6,4</tids>
<Img sr="icon" ve="2">
<nme>hl_device_access_data_usage</nme>
</Img>
</Project>
<Scene sr="scene📱 Countdown">
<cdate>1408752136929</cdate>
<edate>1408810702795</edate>
<heightLand>20</heightLand>
<heightPort>20</heightPort>
<nme>📱 Countdown</nme>
<widthLand>1280</widthLand>
<widthPort>720</widthPort>
<RectElement sr="elements0">
<flags>4</flags>
<geom>0,0,720,20,0,0,1280,20</geom>
<Str sr="arg0" ve="3">SecondsLeft</Str>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3">#FF00FF2E</Str>
<Str sr="arg3" ve="3"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3">#FF000000</Str>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</RectElement>
<PropertiesElement sr="props">
<Int sr="arg0" val="1"/>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3">#00FFFFFF</Str>
<Int sr="arg3" val="0"/>
<Str sr="arg4" ve="3">Countdown</Str>
<Str sr="arg5" ve="3"/>
<Img sr="arg6" ve="2"/>
<Str sr="arg7" ve="3"/>
</PropertiesElement>
</Scene>
<Task sr="task4">
<cdate>1408753205686</cdate>
<edate>1408817594186</edate>
<id>4</id>
<nme>🔜 Countdown</nme>
<pri>10</pri>
<Action sr="act0" ve="6">
<code>11820</code>
<Bundle sr="arg0">
<Vals sr="val">
<com.intangibleobject.securesettings.plugin.extra.BLURB>Screen &amp; Keyboard Lights On
1 Second</com.intangibleobject.securesettings.plugin.extra.BLURB>
<com.intangibleobject.securesettings.plugin.extra.BLURB-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.BLURB-type>
<com.intangibleobject.securesettings.plugin.extra.SETTING>wake_device</com.intangibleobject.securesettings.plugin.extra.SETTING>
<com.intangibleobject.securesettings.plugin.extra.SETTING-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.SETTING-type>
<com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_DURATION>1000</com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_DURATION>
<com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_DURATION-type>java.lang.Long</com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_DURATION-type>
<com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_TYPE>full</com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_TYPE>
<com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_TYPE-type>java.lang.String</com.intangibleobject.securesettings.plugin.extra.WAKE_LOCK_TYPE-type>
<com.twofortyfouram.locale.intent.extra.BLURB>Screen &amp; Keyboard Lights On
1 Second</com.twofortyfouram.locale.intent.extra.BLURB>
<com.twofortyfouram.locale.intent.extra.BLURB-type>java.lang.String</com.twofortyfouram.locale.intent.extra.BLURB-type>
<net.dinglisch.android.tasker.subbundled>true</net.dinglisch.android.tasker.subbundled>
<net.dinglisch.android.tasker.subbundled-type>java.lang.Boolean</net.dinglisch.android.tasker.subbundled-type>
</Vals>
</Bundle>
<Str sr="arg1" ve="3">com.intangibleobject.securesettings.plugin</Str>
<Str sr="arg2" ve="3">Secure Settings</Str>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="6">
<code>812</code>
<Int sr="arg0" val="0"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="23"/>
</Action>
<Action sr="act10" ve="6">
<code>547</code>
<Str sr="arg0" ve="3">%sceneon</Str>
<Str sr="arg1" ve="3">1</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act11" ve="6">
<code>38</code>
</Action>
<Action sr="act12" ve="6">
<code>30</code>
<Int sr="arg0" val="100"/>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
</Action>
<Action sr="act13" ve="6">
<code>135</code>
<Int sr="arg0" val="1"/>
<Int sr="arg1" val="1"/>
<Str sr="arg2" ve="3">StepDown</Str>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%TIMES</lhs>
<op>6</op>
<rhs>%PowerDownTime</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act14" ve="6">
<code>58</code>
<Str sr="arg0" ve="3">📱 Countdown</Str>
<Str sr="arg1" ve="3">SecondsLeft</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3">
<var>1</var>
</Int>
<Int sr="arg4" val="4"/>
<Int sr="arg5" val="50"/>
</Action>
<Action sr="act15" ve="6">
<code>49</code>
<Str sr="arg0" ve="3">📱 Countdown</Str>
</Action>
<Action sr="act16" ve="6">
<code>547</code>
<Str sr="arg0" ve="3">%PowerDownTime</Str>
<Str sr="arg1" ve="3">0</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act17" ve="6">
<code>16</code>
</Action>
<Action sr="act2" ve="6">
<code>49</code>
<se>false</se>
<Str sr="arg0" ve="3">📱 Countdown</Str>
</Action>
<Action sr="act3" ve="6">
<code>46</code>
<Str sr="arg0" ve="3">📱 Countdown</Str>
</Action>
<Action sr="act4" ve="6">
<code>300</code>
<label>StepDown</label>
</Action>
<Action sr="act5" ve="6">
<code>547</code>
<Str sr="arg0" ve="3">%secondsleft</Str>
<Str sr="arg1" ve="3">%PowerDownTime - %TIMES</Str>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act6" ve="6">
<code>547</code>
<Str sr="arg0" ve="3">%length</Str>
<Str sr="arg1" ve="3">( %secondsleft / ( %PowerDownTime - %PowerDownReset ) ) * %ScreenWidth</Str>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act7" ve="6">
<code>58</code>
<Str sr="arg0" ve="3">📱 Countdown</Str>
<Str sr="arg1" ve="3">SecondsLeft</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3">
<var>%length</var>
</Int>
<Int sr="arg4" val="4"/>
<Int sr="arg5" val="50"/>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%length</lhs>
<op>7</op>
<rhs>0</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act8" ve="6">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%sceneon</lhs>
<op>1</op>
<rhs>1</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act9" ve="6">
<code>47</code>
<Str sr="arg0" ve="3">📱 Countdown</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="0"/>
<Int sr="arg6" val="1"/>
</Action>
</Task>
<Task sr="task5">
<cdate>1408797442309</cdate>
<edate>1408817610616</edate>
<id>5</id>
<nme>🔝 Countdown Reset</nme>
<pri>10</pri>
<Action sr="act0" ve="6">
<code>547</code>
<Str sr="arg0" ve="3">%PowerDownReset</Str>
<Str sr="arg1" ve="3">%TIMES</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="6">
<code>547</code>
<Str sr="arg0" ve="3">%PowerDownTime</Str>
<Str sr="arg1" ve="3">%TIMES + %PowerDownSeconds</Str>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="0"/>
</Action>
</Task>
<Task sr="task6">
<cdate>1408798930038</cdate>
<edate>1408802752403</edate>
<id>6</id>
<nme>📱 Get Screen Size</nme>
<pri>10</pri>
<Action sr="act0" ve="6">
<code>123</code>
<Str sr="arg0" ve="3">dumpsys window | grep cur=</Str>
<Int sr="arg1" val="0"/>
<Int sr="arg2" val="1"/>
<Str sr="arg3" ve="3">%screeninfo</Str>
<Str sr="arg4" ve="3"/>
<Str sr="arg5" ve="3"/>
</Action>
<Action sr="act1" ve="6">
<code>590</code>
<Str sr="arg0" ve="3">%screeninfo</Str>
<Str sr="arg1" ve="3">cur=</Str>
<Int sr="arg2" val="1"/>
</Action>
<Action sr="act2" ve="6">
<code>547</code>
<Str sr="arg0" ve="3">%screeninfo</Str>
<Str sr="arg1" ve="3">%screeninfo2</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act3" ve="6">
<code>590</code>
<Str sr="arg0" ve="3">%screeninfo</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
</Action>
<Action sr="act4" ve="6">
<code>547</code>
<Str sr="arg0" ve="3">%ScreenSize</Str>
<Str sr="arg1" ve="3">%screeninfo1</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act5" ve="6">
<code>547</code>
<Str sr="arg0" ve="3">%screensize</Str>
<Str sr="arg1" ve="3">%ScreenSize</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act6" ve="6">
<code>590</code>
<Str sr="arg0" ve="3">%screensize</Str>
<Str sr="arg1" ve="3">x</Str>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act7" ve="6">
<code>547</code>
<Str sr="arg0" ve="3">%ScreenWidth</Str>
<Str sr="arg1" ve="3">%screensize1</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act8" ve="6">
<code>547</code>
<Str sr="arg0" ve="3">%ScreenHeight</Str>
<Str sr="arg1" ve="3">%screensize2</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
</Task>
<Task sr="task9">
<cdate>1408818309001</cdate>
<edate>1408818403903</edate>
<id>9</id>
<nme>🔚 Check/Reset Endtime</nme>
<pri>10</pri>
<Action sr="act0" ve="6">
<code>37</code>
<ConditionList sr="if">
<Condition sr="c0" ve="3">
<lhs>%TIMES</lhs>
<op>7</op>
<rhs>%PowerDownTime</rhs>
</Condition>
</ConditionList>
</Action>
<Action sr="act1" ve="6">
<code>547</code>
<Str sr="arg0" ve="3">%PowerDownTime</Str>
<Str sr="arg1" ve="3">0</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act2" ve="6">
<code>38</code>
</Action>
</Task>
</TaskerData>

41
README.md Normal file
View File

@ -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.

169
RainWarning.prf.xml Normal file
View File

@ -0,0 +1,169 @@
<TaskerData sr="" dvi="1" tv="4.0u1m">
<Profile sr="prof62" ve="2">
<cdate>1365112517568</cdate>
<clp>true</clp>
<edate>1365113603659</edate>
<id>62</id>
<mid0>60</mid0>
<nme>Rain Warning</nme>
<Time sr="con0">
<fh>3</fh>
<fm>0</fm>
<th>12</th>
<tm>30</tm>
</Time>
<Event sr="con1" ve="2">
<code>306</code>
</Event>
</Profile>
<Task sr="task60">
<cdate>1365078569558</cdate>
<edate>1370607047164</edate>
<id>60</id>
<nme>RainWarning</nme>
<pri>10</pri>
<Action sr="act0" ve="3">
<code>547</code>
<Str sr="arg0" ve="3">%WUnderKey</Str>
<Str sr="arg1" ve="3">###changeme###</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act1" ve="3">
<code>118</code>
<Str sr="arg0" ve="3">api.wunderground.com</Str>
<Str sr="arg1" ve="3">/api/%WUnderKey/forecast/lang:DL/q/%LOCN.json</Str>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Int sr="arg4" val="10"/>
<Str sr="arg5" ve="3">text/*</Str>
<Str sr="arg6" ve="3"/>
</Action>
<Action sr="act10" ve="3">
<code>598</code>
<Str sr="arg0" ve="3">%Rain_predict2</Str>
<Str sr="arg1" ve="3">km/h</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="1"/>
<Str sr="arg7" ve="3">Kilometer pro Stunde</Str>
</Action>
<Action sr="act11" ve="3">
<code>559</code>
<Str sr="arg0" ve="3">Heute gibt es %Rain_mm Millimeter Regen. Tagsüber: %Rain_predict. Nachts: %Rain_predict2</Str>
<Str sr="arg1" ve="3">default:default</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="0"/>
</Action>
<Action sr="act12" ve="3">
<code>38</code>
</Action>
<Action sr="act2" ve="3">
<code>547</code>
<Str sr="arg0" ve="3">%JSON</Str>
<Str sr="arg1" ve="3">%HTTPD</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act3" ve="3">
<code>129</code>
<Str sr="arg0" ve="3">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']);</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="10"/>
</Action>
<Action sr="act4" ve="3">
<code>37</code>
<lhs>%Rain_mm</lhs>
<op>4</op>
<rhs>0</rhs>
</Action>
<Action sr="act5" ve="3">
<code>598</code>
<Str sr="arg0" ve="3">%Rain_mm</Str>
<Str sr="arg1" ve="3">\.</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="1"/>
<Str sr="arg7" ve="3">,</Str>
</Action>
<Action sr="act6" ve="3">
<code>523</code>
<Str sr="arg0" ve="3">Heute %Rain_mm mm Regen</Str>
<Str sr="arg1" ve="3">%Rain_predict (%Rain_date)</Str>
<Img sr="arg2" ve="2">
<nme>hd_aaa_ext_rain</nme>
</Img>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Int sr="arg5" val="3"/>
<ListElementItem sr="item0">
<label>TWC</label>
<Action sr="action" ve="3">
<code>20</code>
<App sr="arg0">
<appClass>com.weather.Weather.activity.WeatherController</appClass>
<appPkg>com.weather.Weather</appPkg>
<label>The Weather Channel</label>
</App>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
</Action>
<Img sr="icon" ve="2">
<cls>com.weather.Weather.activity.WeatherController</cls>
<pkg>com.weather.Weather</pkg>
</Img>
</ListElementItem>
</Action>
<Action sr="act7" ve="3">
<code>598</code>
<Str sr="arg0" ve="3">%Rain_predict</Str>
<Str sr="arg1" ve="3">([0-9.]+)C</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="1"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="1"/>
<Str sr="arg7" ve="3">$1 Grad</Str>
</Action>
<Action sr="act8" ve="3">
<code>598</code>
<Str sr="arg0" ve="3">%Rain_predict</Str>
<Str sr="arg1" ve="3">km/h</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="1"/>
<Str sr="arg7" ve="3">Kilometer pro Stunde</Str>
</Action>
<Action sr="act9" ve="3">
<code>598</code>
<Str sr="arg0" ve="3">%Rain_predict2</Str>
<Str sr="arg1" ve="3">([0-9.]+)C</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
<Int sr="arg4" val="0"/>
<Str sr="arg5" ve="3"/>
<Int sr="arg6" val="1"/>
<Str sr="arg7" ve="3">$1 Grad</Str>
</Action>
<Img sr="icn" ve="2">
<nme>hd_aaa_ext_rain</nme>
</Img>
</Task>
</TaskerData>

38
SayCaller.prf.xml Normal file
View File

@ -0,0 +1,38 @@
<TaskerData sr="" dvi="1" tv="4.0u1m">
<Profile sr="prof24" ve="2">
<cdate>1322875032080</cdate>
<edate>1370610573034</edate>
<flags>16</flags>
<id>24</id>
<mid0>25</mid0>
<nme>Phone Ringing</nme>
<Event sr="con0" ve="2">
<code>6</code>
<Str sr="arg0" ve="3"/>
</Event>
</Profile>
<Task sr="task25">
<cdate>1332335481305</cdate>
<edate>1370610573033</edate>
<id>25</id>
<pri>10</pri>
<Action sr="act0" ve="3">
<code>590</code>
<Str sr="arg0" ve="3">%CNAME</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="0"/>
</Action>
<Action sr="act1" ve="3">
<code>559</code>
<Str sr="arg0" ve="3">Anruf von %CNAME1</Str>
<Str sr="arg1" ve="3">com.google.android.tts:deu-DEU</Str>
<Int sr="arg2" val="2"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="0"/>
</Action>
<Img sr="icn" ve="2">
<nme>hd_social_person</nme>
</Img>
</Task>
</TaskerData>

63
SayLocation.tsk.xml Normal file
View File

@ -0,0 +1,63 @@
<TaskerData sr="" dvi="1" tv="4.4u2m">
<Task sr="task41">
<cdate>1407385982443</cdate>
<edate>1408201909173</edate>
<id>41</id>
<nme>💬 Say Location</nme>
<pri>10</pri>
<Action sr="act0" ve="6">
<code>559</code>
<Str sr="arg0" ve="3">Let me check that.</Str>
<Str sr="arg1" ve="3">default:default</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act1" ve="6">
<code>902</code>
<Int sr="arg0" val="2"/>
<Int sr="arg1" val="10"/>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act2" ve="6">
<code>118</code>
<Str sr="arg0" ve="3">maps.google.com</Str>
<Str sr="arg1" ve="3">maps/api/geocode/json</Str>
<Str sr="arg2" ve="3">latlng=%LOC
sensor=false
language=en</Str>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3"/>
<Int sr="arg5" val="10"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Int sr="arg8" val="0"/>
</Action>
<Action sr="act3" ve="6">
<code>129</code>
<Str sr="arg0" ve="3">var data=JSON.parse(global('HTTPD'));
setGlobal('LastAddress', data['results'][0]['formatted_address']);</Str>
<Str sr="arg1" ve="3"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="45"/>
</Action>
<Action sr="act4" ve="6">
<code>559</code>
<Str sr="arg0" ve="3">You are at %LastAddress</Str>
<Str sr="arg1" ve="3">default:default</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Img sr="icn" ve="2">
<nme>hl_ab_device_access_location_found</nme>
</Img>
</Task>
</TaskerData>