diff options
Diffstat (limited to 'public/simple-world-clock-with-eiink-display-and-raspberry-pi-zero.html')
| -rwxr-xr-x | public/simple-world-clock-with-eiink-display-and-raspberry-pi-zero.html | 14 |
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 | |||
| 15 | pHAT</a> and I | 15 | pHAT</a> and I |
| 16 | have a bunch of <a href=https://www.raspberrypi.org/products/raspberry-pi-zero/>Raspberry Pi's | 16 | have a bunch of <a href=https://www.raspberrypi.org/products/raspberry-pi-zero/>Raspberry Pi's |
| 17 | Zero</a> lying around that | 17 | Zero</a> lying around that |
| 18 | I 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 | 18 | I 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 |
| 19 | pHAT</a> is | 19 | pHAT</a> is |
| 20 | essentially a HAT, it can easily be added on top of the <a href=https://www.raspberrypi.org/products/raspberry-pi-zero/>Raspberry Pi | 20 | essentially a HAT, it can easily be added on top of the <a href=https://www.raspberrypi.org/products/raspberry-pi-zero/>Raspberry Pi |
| 21 | Zero</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> | 21 | Zero</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 |
| 64 | refreshing 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 | 64 | refreshing 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 |
| 66 | this 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 | 66 | this 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 |
| 67 | here</a>, but make sure that dimensions make | 67 | here</a>, but make sure that dimensions make |
| 68 | sense and also opening for USB port should be added or just use a drill and some | 68 | sense and also opening for USB port should be added or just use a drill and some |
| 69 | hot 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 | 69 | hot 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 |
| 70 | is the ability to take an existing directory (and everything | 70 | a lock on a Linux NFS server, which turned |
| 71 | underneath it) in a ZFS filesystem and turn it into a sub-filesystem | 71 | out to be specific to NFS v3 (which I really should have seen coming, |
| 72 | of its own. One reason for wanting this is that a number of things | 72 | since it involved NLM and lockd). Finding the NFS v4 client that |
| 73 | are 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 | 73 | owns 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 |
| 74 | and Bradley Kuhn, are interacting on the OSI's license-discuss | 74 | and Bradley Kuhn, are interacting on the OSI's license-discuss |
| 75 | list where the're doing | 75 | list where the're doing |
| 76 | bad computer history and insisting that a guy Larry Rosen | 76 | bad computer history and insisting that a guy Larry Rosen |
