Skip to content

Instantly share code, notes, and snippets.

@b1nary
Created October 21, 2013 09:01
Show Gist options
  • Save b1nary/7080787 to your computer and use it in GitHub Desktop.
Save b1nary/7080787 to your computer and use it in GitHub Desktop.
<h3>Variablen</h3>
<ul>
<li><code>%ATHOME</code>true when connected to Heim-Wifi</li>
<li><code>%ATWORK</code>true when connected to Work-Wifi</li>
<li><code>%ATKNOWN</code>is true if we are at a known Wifi place</li>
<li><code>%TOGGLENET</code>Toggles the Network all 14 minutes if true</li>
<li><code>%WORKDAY</code>true if i have to work</li>
</ul>
<h3>My Tasks</h3>
<ul>
<li>
<strong>Near@home</strong>. Enables wifi when i am near my home cell towers.
</li>
<li>
<strong>Is@home</strong>. Toggles when in home wifi, sets display timeout to 35 minutes, pops up a welcome message, deactivates mobile network and blutooth. <code>%TOGGLENET</code> is set to <code>false</code>, <code>%ATHOME</code> & <code>%ATKNOWN</code> to <code>true</code>
</li>
<li>
<strong>Not@home</strong>. When connection to home wifi ist lost. <code>%ATKNOWN</code> & <code>%ATHOME</code> get set to <code>false</code>. <code>%TOGGLENET</code> gets set to <code>true</code>. Wifi gets disabled.
</li>
<li>
<strong>All 14 minutes</strong>. When %TOGGLENET. Enable Wifi or Mobile internet, wait a minute and disable again. Get notifacations in a reasonable time while you dont waste akku for nothing.
</li>
<li>
<strong>Monday, Tuesday, Wednesday, Thirsday, Friday</strong>. Set %WORKDAY to true. (Later add google calender functionality for holidays and sick days.
</li>
<li>
<strong>Saturday, Sunday</strong>. Set %WORKDAY to false. (Later add google calender functionality for extra dates.
</li>
<li>
<strong>Friday</strong>. Set "Friday, friday!!" Notifactions and play rebecca blacks friday after morning infos.
</li>
<li>
<strong>@work</strong>. Set <code>%ATWORK</code> & <code>%ATKNOWN</code> to <code>true</code>. Disable alarm sounds, vibration and mobile data, enable Wifi and make the ring tone silent but hearable.
</li>
</ul>
<h3>AI</h3>
<p>I use Marelen from IVONA, a beautiful german voice, to tell me several things over the day</p>
<ul>
<li><strong>Good Morning</strong>. Picks a random good morning phrase which most likely contains the <code>%DATE</code> and <code>%TIME</code>. After that download current weather and read it out.</li>
<li><strong>To late</strong>. Random phrases which mean i should wake up. Some contain <code>%DATE</code> and/or <code>%TIME</code>. The task gets called when i still am connected to my home wifi but should be on my way to work already</li>
<li><strong>Go to sleep</strong>. Tells me that i should go to sleep when it is 00:00 and the next day is a work day.</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment