-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (63 loc) · 3.54 KB
/
index.html
File metadata and controls
86 lines (63 loc) · 3.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html><link rel="stylesheet" type="text/css" href="/normalize.css" />
<link rel="stylesheet" type="text/css" href="/layout.css" />
<link rel="stylesheet" type="text/css" href="/design.css" />
<title>Yaxel's Blog - Yaxel's Blog</title>
<body>
<div class="container"><header class="blog-header">
<h1>Yaxel's Blog</h1>
<nav>
<a href="/">Home</a>
<a href="/posts">Posts</a>
<a href="/about">About</a>
<a href="https://github.com/YaxelPerez">Github</a>
</nav>
</header>
<hr>
<div class="post-list">
<article class="post">
<header>
<a href="http://yaxelperez.github.io/posts/hack_morse/" class="post-link"><h3 class="post-title">Hack: Morse Code Phone Notifications</h3></a>
<h4 class="post-date">Posted on 2018-10-28 21:31:58 -0700 PDT</h4>
</header>
<div class="post-summary">
<p><em>Note: This only works on Android.</em></p>
<p>I was too lazy to pull out my phone to read notifications, so I programmed it to vibrate in morse
code. Here’s how you could do this too, probably:</p>
<ol>
<li><p>Install <a href="https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en_US">Tasker</a> and <a href="https://play.google.com/store/apps/details?id=com.joaomgcd.autonotification&hl=en_US">AutoNotification</a> (not free).</p></li>
<li><p>Download and import this <a href="https://gist.github.com/YaxelPerez/a773f8715eb5040f2085bae1832faed9">Tasker profile I made</a>.
Tap “profiles” and then “import” in the Tasker app.</p></li>
<li><p>Download <a href="https://gist.github.com/YaxelPerez/563748a1427990a8e7b7189dca7c6e71">this JS script</a>
somewhere onto your phone. (<a href="https://tasker.joaoapps.com/userguide/en/javascript.html">Documentation for the Tasker JS API</a>).</p></li>
<li><p>Tap on the profile and edit the task (right side) so that it can find the .js script. I put mine
in <code>Download/</code> because I’m lazy.</p></li>
<li><p>Test the task (press play). It should vibrate “SOS” in morse code. If it doesn’t, StackOverflow
can’t help you. Good luck.</p></li>
<li><p>(OPTIONAL) Change the <code>%text</code> variable. I set it to vibrate the first 3 letters of the app that
produced the notification, but you can change it to vibrate anything. (<a href="https://joaoapps.com/variables/">Full list of
variables</a>)</p></li>
<li><p>Go back and configure the AutoNotification Intercept behavior (tap profile, left side) to select
which apps to listen to.</p></li>
</ol>
<p>If you followed all these steps plus some other ones that I forgot, you should now have a new way
to read notifications. In my experience, friends and family will be marginally impressed.</p>
<p>I’ve only tested this on a Google Pixel 2. Your mileage may vary.</p>
<h4 id="possible-improvements">Possible Improvements:</h4>
<ul>
<li><p>Increase WPM. I’m not very good at reading morse code so I keep it at ~15 WPM. More experienced
users could probably set it higher, although I’m sure at some point you would reach the physical
limitations of your phone’s vibrate feature. This is set in the .js file, but it should be set in
the task itself.</p></li>
<li><p>Disable the original notification vibration. Right now I have it set to wait 500ms because I couldn’t figure out how to get rid of the normal notification vibration.</p></li>
</ul>
<p></p>
</div>
<footer>
<a class="read-more" href="http://yaxelperez.github.io/posts/hack_morse/"><nobr>Read more</nobr></a>
</footer>
</article>
</div>
</div>
</body>
</html>