aboutsummaryrefslogtreecommitdiff
path: root/public/simple-world-clock-with-eiink-display-and-raspberry-pi-zero.html
diff options
context:
space:
mode:
Diffstat (limited to 'public/simple-world-clock-with-eiink-display-and-raspberry-pi-zero.html')
-rwxr-xr-xpublic/simple-world-clock-with-eiink-display-and-raspberry-pi-zero.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/public/simple-world-clock-with-eiink-display-and-raspberry-pi-zero.html b/public/simple-world-clock-with-eiink-display-and-raspberry-pi-zero.html
index 2acc7ba..94f4425 100755
--- a/public/simple-world-clock-with-eiink-display-and-raspberry-pi-zero.html
+++ b/public/simple-world-clock-with-eiink-display-and-raspberry-pi-zero.html
@@ -15,7 +15,7 @@ project.<p>A while ago I bought a small eInk display <a href="https://shop.pimor
15pHAT</a> and I 15pHAT</a> and I
16have a bunch of <a href=https://www.raspberrypi.org/products/raspberry-pi-zero/>Raspberry Pi's 16have a bunch of <a href=https://www.raspberrypi.org/products/raspberry-pi-zero/>Raspberry Pi's
17Zero</a> lying around that 17Zero</a> lying around that
18I really need to use.<figure><img src=/posts/world-clock/hardware.jpg alt="Inky pHAT, Raspberry Pi Zero"></figure><p>Since the Inky <a href="https://shop.pimoroni.com/products/inky-phat?variant=12549254217811">Inky 18I really need to use.<figure><img loading="lazy" src=/posts/world-clock/hardware.jpg alt="Inky pHAT, Raspberry Pi Zero"></figure><p>Since the Inky <a href="https://shop.pimoroni.com/products/inky-phat?variant=12549254217811">Inky
19pHAT</a> is 19pHAT</a> is
20essentially a HAT, it can easily be added on top of the <a href=https://www.raspberrypi.org/products/raspberry-pi-zero/>Raspberry Pi 20essentially a HAT, it can easily be added on top of the <a href=https://www.raspberrypi.org/products/raspberry-pi-zero/>Raspberry Pi
21Zero</a>.<p>First, I installed the necessary software on Raspberry Pi with <code>pip3 install inky</code>.<p>And then I created a file <code>clock.py</code> in home directory <code>/home/pi</code>.<pre tabindex=0 style=background-color:#fff><code><span style=display:flex><span><span style=color:green>#!/usr/bin/env python</span> 21Zero</a>.<p>First, I installed the necessary software on Raspberry Pi with <code>pip3 install inky</code>.<p>And then I created a file <code>clock.py</code> in home directory <code>/home/pi</code>.<pre tabindex=0 style=background-color:#fff><code><span style=display:flex><span><span style=color:green>#!/usr/bin/env python</span>
@@ -62,15 +62,15 @@ Zero</a>.<p>First, I installed the necessary software on Raspberry Pi with <code
62</span></span><span style=display:flex><span>board.show() 62</span></span><span style=display:flex><span>board.show()
63</span></span></code></pre><p>And because eInk displays are rather slow to refresh and the clock requires 63</span></span></code></pre><p>And because eInk displays are rather slow to refresh and the clock requires
64refreshing only once a minute, this can be done through cronjob.<p>Before we add this job to cron we need to make <code>clock.py</code> executable with <code>chmod +x clock.py</code>.<p>Then we add a cronjob with <code>crontab -e</code>.<pre><code>* * * * * /home/pi/clock.py 64refreshing only once a minute, this can be done through cronjob.<p>Before we add this job to cron we need to make <code>clock.py</code> executable with <code>chmod +x clock.py</code>.<p>Then we add a cronjob with <code>crontab -e</code>.<pre><code>* * * * * /home/pi/clock.py
65</code></pre><p>So, we end up with a result like this.<figure><img src=/posts/world-clock/world-clock.jpg alt="World Clock"></figure><p>And for the enclosure that can be 3D printed, but I haven't yet something like 65</code></pre><p>So, we end up with a result like this.<figure><img loading="lazy" src=/posts/world-clock/world-clock.jpg alt="World Clock"></figure><p>And for the enclosure that can be 3D printed, but I haven't yet something like
66this can be used.</p><iframe id=vs_iframe src="https://www.viewstl.com/?embedded&url=https%3A%2F%2Fmitjafelicijan.com%2Fposts%2Fworld-clock%2Fenclosure.stl&color=gray&bgcolor=white&edges=no&orientation=front&noborder=no" style=border:0;margin:0;width:100%;height:400px></iframe><p>You can download my <a href=/posts/world-clock/enclosure.stl>STL file for the enclosure 66this can be used.</p><iframe id=vs_iframe src="https://www.viewstl.com/?embedded&url=https%3A%2F%2Fmitjafelicijan.com%2Fposts%2Fworld-clock%2Fenclosure.stl&color=gray&bgcolor=white&edges=no&orientation=front&noborder=no" style=border:0;margin:0;width:100%;height:400px></iframe><p>You can download my <a href=/posts/world-clock/enclosure.stl>STL file for the enclosure
67here</a>, but make sure that dimensions make 67here</a>, but make sure that dimensions make
68sense and also opening for USB port should be added or just use a drill and some 68sense and also opening for USB port should be added or just use a drill and some
69hot glue to make it stick in the enclosure.</div></article></main><section><hr><h2>Posts from blogs I follow around the net</h2><ul><li><a href=https://utcc.utoronto.ca/~cks/space/blog/solaris/ZFSWhyNotDirectoryToFilesystem target=_blank rel=noopener>One reason that ZFS can't turn a directory into a filesystem</a> — <a href=https://utcc.utoronto.ca/~cks/space/blog/>Chris's Wiki :: blog</a><div>One of the wishes that I and other people frequently have for ZFS 69hot glue to make it stick in the enclosure.</div></article></main><section><hr><h2>Posts from blogs I follow around the net</h2><ul><li><a href=https://utcc.utoronto.ca/~cks/space/blog/linux/NFSv4ServerLockClients target=_blank rel=noopener>Finding which NFSv4 client owns a lock on a Linux NFS(v4) server</a> — <a href=https://utcc.utoronto.ca/~cks/space/blog/>Chris's Wiki :: blog</a><div>A while back I wrote an entry about finding which NFS client owns
70is the ability to take an existing directory (and everything 70a lock on a Linux NFS server, which turned
71underneath it) in a ZFS filesystem and turn it into a sub-filesystem 71out to be specific to NFS v3 (which I really should have seen coming,
72of its own. One reason for wanting this is that a number of things 72since it involved NLM and lockd). Finding the NFS v4 client that
73are set and controlled on a per-filesyst…<li><a href=http://www.landley.net/notes-2023.html#28-10-2023 target=_blank rel=noopener>October 28, 2023</a> — <a href=http://www.landley.net/notes-2023.html>Rob Landley's Blog Thing for 2023</a><div>Oh good grief, two of my least favorite licensing people, Larry Rosen 73owns a lock is, depending on your perspective, either simpl…<li><a href=http://www.landley.net/notes-2023.html#28-10-2023 target=_blank rel=noopener>October 28, 2023</a> — <a href=http://www.landley.net/notes-2023.html>Rob Landley's Blog Thing for 2023</a><div>Oh good grief, two of my least favorite licensing people, Larry Rosen
74and Bradley Kuhn, are interacting on the OSI's license-discuss 74and Bradley Kuhn, are interacting on the OSI's license-discuss
75list where the're doing 75list where the're doing
76bad computer history and insisting that a guy Larry Rosen 76bad computer history and insisting that a guy Larry Rosen