<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Timothy Kist on Medium]]></title>
        <description><![CDATA[Stories by Timothy Kist on Medium]]></description>
        <link>https://medium.com/@Kisty?source=rss-7e9595df3204------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wRcS00qz_tOhtA0oOsuSTw.jpeg</url>
            <title>Stories by Timothy Kist on Medium</title>
            <link>https://medium.com/@Kisty?source=rss-7e9595df3204------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 22:16:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Kisty/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Raspberry Pi Pomodoro Task Timer]]></title>
            <link>https://medium.com/@Kisty/raspberry-pi-pomodoro-task-timer-39a3837a0ff2?source=rss-7e9595df3204------2</link>
            <guid isPermaLink="false">https://medium.com/p/39a3837a0ff2</guid>
            <dc:creator><![CDATA[Timothy Kist]]></dc:creator>
            <pubDate>Sun, 21 Apr 2019 21:04:12 GMT</pubDate>
            <atom:updated>2021-09-24T08:47:08.127Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FPUpbV0AQUYQ%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DPUpbV0AQUYQ&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FPUpbV0AQUYQ%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f0feb20840794f2d46e69513ef1c290/href">https://medium.com/media/3f0feb20840794f2d46e69513ef1c290/href</a></iframe><p>I’m keen to improve my work process. I’ve found that I can get easily distracted and some days my work was not as productive. Sometimes I would get caught up in a task I’ve over-complicated, or be working on something to make sure it’s perfect when I really only needed to spend a snippet of time on it to get it working or I might get frustrated with a task get distracted with the internet. So, I went on a mission to help me find ways to keep my focus. And so, I stumbled upon the Pomodoro Technique® which involves:</p><ul><li>Take a task to focus on</li><li>Start a timer for 25 minutes</li><li>Work on that task and only that task</li><li>Ignore distractions such as email, phone calls, talking to colleagues, etc.</li><li>At the end of the timer, you can reward yourself with a five minute break as you gave 25 minutes of undivided time to a task.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fdnt2lTdcn8g%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Ddnt2lTdcn8g&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fdnt2lTdcn8g%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a8369c684757aa2e000bfd604ddf9060/href">https://medium.com/media/a8369c684757aa2e000bfd604ddf9060/href</a></iframe><p>There’s more to the technique but that’s the basics.</p><p>If you want to learn more, I’d recommend <a href="https://www.amazon.co.uk/Pomodoro-Technique-Illustrated-Pragmatic-Life/dp/1934356506">this book</a>.</p><p>I’ve been on the lookout for a good timer I can use on my workstation and I’ve finally found a brilliant one called <a href="https://pomodoneapp.com/">PomoDone app</a>. This has integrations for services such as <a href="https://todoist.com/">Todoist</a>, <a href="https://trello.com/">Trello</a> and <a href="https://www.atlassian.com/software/jira">JIRA</a> to name a few and has apps for web, mobile and desktop. I’ve loved this service for a couple of years now and is part of my workflow. PomoDone team, I tip my hat off to you. Thanks for a brilliant app!</p><p>The problem is that with the desktop app, I want to be able to see my timer remaining at a quick glance and I couldn’t find a solution to do so. At the time of writing, there were a few options to I could show the desktop app in mini mode on top of my windows but that gets in the way and distracting itself.</p><figure><img alt="A screenshot of my workspace with a small task timer window covering up part of the screen" src="https://cdn-images-1.medium.com/max/1024/1*Q5trPqDLZotquJUFymA5vg.png" /></figure><p><em>Can you spot the task timer in the screenshot?</em></p><p>The solution is the Raspberry Pi timer!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25aMVQ7drG02FqDbn7TD5w.jpeg" /></figure><p>PomoDone announced a while back that they’re introducing command line integrations, which means you can make the computer do anything, within reason, you can do on the command line when the timer starts and stops and my mind started to dream…</p><p><a href="https://twitter.com/zboarda/status/1035783364421345280">https://twitter.com/zboarda/status/1035783364421345280</a></p><p>Now this tool is part of my daily work process. I start my timer on the computer and the Pi timer shows the time too automatically! Now I can see from a glance how much of my 25 minutes stint I have left and I don’t have anything obscuring the window. I’ve made it a 25 minute Pomodoro timer but it could be configured to whatever time you want. Now you can use it too.</p><h3><strong>Ingredients</strong></h3><ul><li><a href="https://shop.pimoroni.com/products/raspberry-pi-zero-w">Raspberry Pi Zero W</a> — <em>or any other Raspberry Pi, if you want. I used a Pi Zero (no W) but had to use a WiFi dongle</em></li><li><a href="https://shop.pimoroni.com/products/scroll-phat-hd?variant=38472781450">Scroll pHAT HD</a></li><li><a href="https://shop.pimoroni.com/products/gpio-hammer-header">Pi Zero female and male header pins</a> male pins required if not already on the Pi Zero</li><li><a href="https://shop.pimoroni.com/products/noobs-16gb-microsd-card">Micro SD card (8GB+)</a></li><li><a href="https://shop.pimoroni.com/products/zero-adaptor-kit">mini-HDMI adaptor</a> — <em>required only for set up</em></li><li>HDMI cable — <em>required only for set up. You could just reuse one from your TV.</em></li><li><a href="https://www.amazon.co.uk/Racksoy-Professional-Wireless-Compatible-Raspberry/dp/B00JZFT3VS/ref=sr_1_4?keywords=raspberry+pi+wifi+usb&amp;qid=1555592049&amp;s=computers&amp;sr=1-4">Raspberry Pi compatible USB WiFi dongle</a> — <em>optional, only when you need to connect via WiFi and there’s no WiFi on the Pi</em></li><li><a href="https://shop.pimoroni.com/products/raspberry-pi-universal-power-supply">Power supply with micro USB cable</a> — <em>I’ve plugged it in to a powered USB hub which works well</em></li><li><a href="https://shop.pimoroni.com/products/official-raspberry-pi-zero-case">Raspberry Pi Zero case</a> — <em>optional, or another case to fit your Raspberry Pi with a GPIO cutout</em></li></ul><h3><strong>Method</strong></h3><p>If you have the <a href="https://shop.pimoroni.com/products/gpio-hammer-header?variant=35643318026">solderless hammer header sockets &amp; pins</a> then just use them. If you have the regular headers, then solder then to both Raspberry Pi Zero and Scroll pHAT HD.</p><p>Be careful to attach the pins (female headers) to the Pi and the sockets (male headers) to the Scroll pHAT HD. I didn’t hence why the soldering looks a mess! I tried to undo it but to no avail. If it’s your first time soldering, pick up a soldering iron, a solder practice kit to get to grips with soldering or just use <a href="https://shop.pimoroni.com/products/gpio-hammer-header?variant=35643318026">the solderless hammer headers</a>.</p><p>Now to set up Pi Zero with HDMI display. You can do this without a screen (called <em>headless</em> setup) but it’s easier with a screen.</p><ul><li>Download latest image of <a href="https://www.raspberrypi.org/downloads/raspbian/">Raspbian</a> and burn to a micro SD card using <a href="https://www.balena.io/etcher/">Etcher</a></li><li>Once the image is on the SD card, insert SD card in to the Raspberry Pi, plug pi zero into screen and set up the pi. This is when you can connect to the network.</li><li>If you want, enable SSH. Useful to configure Pi without connecting it to a screen.</li><li>Open a terminal and install Scroll pHAT HD library.</li></ul><pre>$ curl <a href="https://get.pimoroni.com/scrollphathd">https://get.pimoroni.com/scrollphathd</a> | bash</pre><ul><li>Install flask</li></ul><pre>$ pip install python-flask</pre><ul><li>Install the timer app</li></ul><pre>$ cd ~</pre><pre>$ git clone <a href="https://bitbucket.org/zboarda/scroll-phat-hd-timer.git">https://bitbucket.org/zboarda/scroll-phat-hd-timer.git</a></pre><ul><li>Check you can run the Scroll pHAT HD clock example</li></ul><pre>$ cd scroll-phat-hd-timer &amp;&amp; python -m api</pre><ul><li>Check you can run timer locally on the Pi using curl.</li></ul><p><em>Windows Powershell</em></p><pre>PS C:\Users\Tim&gt; curl -Method POST -Uri raspberrypi.local:8080/scrollphat/start</pre><p><em>Linux/macOS</em></p><pre>$ curl -X POST raspberrypi.local:8080/scrollphat/start</pre><ul><li>Repeat on another computer so that you can check it works over the network. Cool! To stop it, just replace ‘start’ with ‘stop’. Simples.</li><li>Next, and optionally but highly recommended, autostart the app using a cron rule.</li></ul><p><em>Open the cron configuration file</em></p><pre>crontab -e</pre><p>Inside the cron config file add to the bottom:</p><pre>@reboot cd scroll-phat-hd-timer &amp;&amp; python -m api</pre><p>Now set up a PomoDone. The amazing team at PomoDone have given you readers a 7-day trial to their Ultimate plan which includes command-line integration used for this. They have a free plan which gives you the basics but no command-line integration. Disclaimer: I’m not being paid for referrals to PomoDone app, I just love their product!</p><ol><li>Create <a href="http://pmdn.co/zboarda10d">PomoDone account with 7-day trial for the Ultimate plan</a></li><li>Set up Powershell/terminal integration</li><li>Add a task and start it</li><li>See the Raspberry Pi timer start</li></ol><p>If you end up wanting to stick with the PomoDone app Ultimate plan after the trial, you can <a href="http://pmdn.co/zboarda10d">get a 10% discount here</a></p><h3><strong>My experience</strong></h3><p>This has been a fun little project to do and has given me something useful! I’m personally not experienced at Python but have done a little in past and thought it would be fun to give it a go. I had look and play with the Scroll pHAT HD examples the Pimoroni team did and merged the <a href="https://github.com/pimoroni/scroll-phat-hd/blob/master/library/scrollphathd/api/http.py">web server example</a> with the <a href="https://github.com/pimoroni/scroll-phat-hd/blob/master/examples/clock.py">clock example</a>. The major challenge for me was to get the app to change state (start, stop, etc.) from web server commands but that was more to do with not being experienced with how to use the web server along side python code. After tinkering, I got it to work. There was a slight delay on the Pomodone app but putting an artificial 3 seconds delay in to account for that. Having the app autorun at start was helpful so I can plug it in to mains and it’ll just work. cron took a little time to work out how to use it but once I got the hang of it, it didn’t take too much time to set it up.</p><h3><strong>Future</strong></h3><p>This little thing works well for me but there’s a few things I would like to improve.</p><ol><li>Be able to change the timer duration. E.g. Start a 15 minute task on desktop starts the pi timer countdown from 15 minutes, not 25. I could use webhooks in PomoDone to get the task duration, but would require making the timer accessible on the internet (not entirely sure what the delay would be for starting timer on PC, hitting PomoDone server and then hitting the timer).</li><li>Physical buttons to start and stop timer, though would be best if it worked two-way and not sure that’s supported.</li><li>Add-ons so that you could enable physical buttons/use different text displays for timers, etc.</li><li>When the timer finishes it says “Time’s up” and will go on until it receives another command. A simple timeout on that message would solve that.</li></ol><p>This wouldn’t have been a Thing if Alex and the team at PomoDone didn’t help me so want to give them a huge thanks for that! 👏👏👏</p><p>Also, big thanks to Pimoroni team for the Scroll pHAT HD and the library.</p><p>Thanks for Alex at PomoDone, Mike Bews, Jon Haddow and Katharine, my wife, for proofreading this.</p><p>This is my first voyage in to the whole Internet of Things (IoT) world which has been fun. I can’t describe how it felt when I got the timer working when I pinged it from my desktop. The whole IoT thing makes sense! What do you think of this project? Any features you’d like to see? Let me know in the comments or open an issue on the project page and whether you’ve done the same.</p><p><a href="https://bitbucket.org/zboarda/scroll-phat-hd-timer">zboarda / scroll-phat-hd-timer</a></p><p><strong>If you like this, please give me some 👏. You can follow me on </strong><a href="https://twitter.com/zboarda"><strong>Twitter</strong></a><strong> too.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39a3837a0ff2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>