I now have two time-lapse "shootings" running at the same time. One is pointing at west and the other at north. After months, i added another Raspberry Pi Zero W to my arsenal, since i developed a reliable setup
for this kind of long-term operation. I also got it to work as wireless access point, to make it independent from a router, but still have the option to connect to it. And i made further improvements. For example, i let them automatically adjust
the settings according to sunrise and sunset. This way the slow shutter speed is only active if needed, depending on the Earth's position to the Sun, which changes during the year.
The city lights dominate, but compared to earlier, i have with a dynamic timeframe a better chance to catch more stars at night
to work based on Perl, but installing the module "DateTime::Event::Sunrise" via cpanm takes too long on the Zero W. It only needs to be done once for each Raspberry Pi, but that's not worth it, since there is no gain in speed.
Since some years, i'm looking more for CLI options of the software i use, to a point where i learned to enjoy "command-line interfaces". This way i can create scripts and automate repetitive tasks
. Even after two decades of typing characters into computers, it still feels like "breathing life" into all these things to me. Although i don't mind using or building a GUI, since i sit on both sides
Creating rules and throwing "input" against it, to see how the program reacts, is a bit like playing with Lego "Technic" from my childhood. But the difference is that i can now make the parts myself, just by adding lines
of code into a text editor. Connecting all these pieces, written by others or me, is a jigsaw puzzle without a real end, but certainly with the goal to get the job done
Here i'm listing a few free apps i use regularly through a graphical user interface: 7Zip, AllDup, Audacity, "Everything" by David Carpenter, FileZilla, Notepad by Don Ho, TrayBackup, and WinMerge. Last but not least some icing
on the cake: Dolphin Emulator with "Mario Kart Wii" via RomUlation. FYI, i got my first copy of Adobe Photoshop from an internship in June 2001.
After my latest adjustments
, including the use of "lock files" to make all transitions seamless, my time-lapse photography with a Raspberry Pi is basically as good as it can get, especially considering the limited resources of the "Zero W" and the workload i let it have. The size of the whole setup makes it possible to mount it almost everywhere, since the power requirements
are manageable. The "Camera Module v2" delivers enough quality for the purpose, without to degrade, even after six months of constant use, while being exposed to the sun at the window.
My custom UPS
for the "headless" Raspberry Pi has not let me down either. As of now, i built four of these uninterruptible power supplies: Two are in use, and the rest is waiting for a mission. The Zero W is now reliably providing me with RSS updates from 200+ blogs daily and making 9k+ photos for my time-lapse videos weekly. It is also checking for new content in Cantonese by the BBC for my parents, and at the same time, offering me another place to do some "high-level" programming
via Apache server and Unix shell. With the Raspberry Pi great things can come in tiny packages, literally and metaphorically. Thanks to smart people like Eben Upton, the United Kingdom will be just fine after leaving the EU
Remotely related, after i successfully deployed my "geo-blocking" mechanism at another site
one month ago, i now use the same technology for this blog. Visitors from certain countries will be denied access, and all they get is a "Error 403" HTTP status code with "This site is not available in your country" as HTML response.
Yesterday, the basement of the house got flooded. And the landlord thinks that we did it, which is wrong. These rich tourists from the "Middle East" are more likely the reason
for that, since they really don't care. Because they can buy "human resources" to make the problems go away, with more or less success: Good workforce
is rare, especially in a less developed country with no work ethic. Money bubbles out of the ground in their countries, enabling them to make bad decisions, without the need to learn anything. And they spread their behavior to Bad Godesberg, a place that is like a paradise
for these people, and things get messy.
Apparently, they have overloaded our "sewage pipe" with so much stuff that it broke. Because the toilet is not a trash bin. And they have no idea how to handle garbage bags
, and are leaking waste all over the place. At least they are efficient in reproduction. I know, "sanitation" is a relatively new technology for humanity in general, and you can not blame me for that
. Unlike these sneaky Germans here, i'm not in the business of sheep farming, also known as "human trafficking".
For several months, i have set the time frame for creating the "zip file" to a static value. But a disadvantage of this approach is, a few minutes pass by, in which the Raspberry Pi has nothing to do at all. Because i reserved with 15 minutes a generous amount for the quite demanding job
. Since the "zip file" sizes with up to 600 MB were too big anyway, i changed the way i do it. Instead of making one big archive at midnight, i create two small ones, one every 12 hours, as instructed in my shell scripts
, and set up in crontab. Files with around 300 MB are just more manageable on the "Zero W", especially with the workload it has.
I also make use of a "file locking" mechanism to get the transitions seamless. This way the Raspberry Pi will immediately continue
to take photos when the packaging of the JPEG files is done, simply by checking for the absence of a "lock file", which prevents it from doing multitasking. I wrote four separate "Unix shell scripts" for this process, and added them to cron: camera, cameraSweep, cameraWatchdog, and cameraZip. They explain themselves
by their filename, and i already presented some functions in older posts, except for the second one: After a fresh start, it deletes all "lock files", just in case if the reason for the reboot was a crash and crumbs are left behind.
This site is not available in your country.