The probably most tricky part of preparing the Image for the Website.
For documentation purposes.
The workaround to name the file TEMP.bakjpg is due to the deletion of remaining *.jpg files in the directory in the last step of the script. rm *.jpg
Therefore i am renaming the image capt*.jpg to TEMP.bakjpg to prevent the current image from being deleted. The problem was, if the script is canceled du to an error or outage, there are more then one shots in the temp folder from the last captures. DATE=$(date +"%Y%m%d_%H%M")
DATEPIC=$(date +"%d.%m.%Y um %H:%M Uhr")
TEMP=$(cat /home/pi/Logs/tempoutsideusb.log)
TEMPPI=$(tail /home/pi/Logs/temppi.log | cut -c 32-40)for file in TEMP.bakjpg ; do
convert "$file" -quality 55% -resize 100% \
-crop 3888x2187+0+0 \
-fill "rgba(255,255,255,0.70)" -opaque "rgb(255,255,255)" -draw 'rectangle 0,0,3888,40' \
-fill "rgba(255,255,255,0.70)" -opaque "rgb(255,255,255)" -draw 'rectangle 3370,2150,3888,2187' \
-font /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed.ttf \
-pointsize 26 -fill black -annotate +10+32 "$DATEPIC" \
-pointsize 26 -fill black -annotate +1800+32 'Lufttemperatur:' \
-pointsize 26 -fill black -annotate +2010+32 $TEMP \
-pointsize 26 -fill black -annotate +2075+32 '°C' \
-pointsize 26 -fill black -annotate +3430+32 'Grosskirchheim | 46.9696 N 12.8980 E' \
-pointsize 26 -fill black -annotate +3375+2178 'kleinlercher.me | clemens@kleinlercher.me' \
-pointsize 26 -fill black -annotate +0+0 '' \
"current.jpg"
done
Apple Siri became the worst voice-assistant so far
Can you still remember when Apple introduced Siri. That was a milestone. You had the feeling you could talk to your devices in the future, like Jean Luc Picard and his followers on board the Enterprise.
nn
2023 has arrived and it is fair to say that Apple has managed to make Siri even dumber with every update.
nn
Even simple tasks like setting a timer are acknowledged by our iPad in the kitchen just with …please wait.
nn
My Apple Watch activates Siri even without the “Hey Siri” command. And yes, I have disabled “raise to speak” and the digital crown to activate Siri manually.
nn
Siri on the iPhone fails to fulfill requests for directions and instead launches Google with search suggestions.
nn
Hey Apple, get this shit done and at least bring it up to Alexa level. In the last few years, you’ve fixed your notebooks, listened to the users, finally reinstalled MagSafe and interfaces (SD Card Slot ftw), straightened out MacOSs and generally made everything a bit more open again, even if it was only due to external pressure. Now go ahead and fix this stupid old thing.
EOS 1000D Shutter Count
Using gphoto2 the commandline tool allows me to read the shutter count of the weathercam. gphoto2 can be easily installed on linux based systems as well as on macOS using brew.
On macOS you have to install brew first to then install gphoto2 using
brew install gphoto2
Connect your Canon EOS 1000D using your mini-USB cable and power it on.
Open Terminal and type
gphoto2 --get-config /main/status/shuttercounter
It will then show you the current shutter count.
Label: Shutter Counter
Type: TEXT
Current: 89768
The EOS 1000D has a declared shutter life of 100 000. But only few of them really reach this number. Most of them are starting to fail for other reasons
Some stats about my 3 Canon EOS 1000D that has been used so far for the weathercamPi:
#1: about 110000 shutter releases
#2: about 80000 shutter releases
#3: exactly 89768 shutter releases (currently in use)
#4: 1689 shutter releases (the “new one” that will replace #3 as soon it’s starting to fail)
New Project: Horrorskop.at
Last week I’ve launched a website called Horrorskop.at
nn
Technically it’s nothing special just a simple WordPress Page including a randomizer for its content.
nn
The interesting thing is, they are horoscopes, but they are anything but encouraging and joyful. Therefore it’s named horrorscope.
nn
90% of the content was generatedwith chatGPT and the cover image with Stable Diffusion. TThis applies to both the negative predictions and the haikus.
nn
Have fun! Or not…
weathercamPi Up2date 03.2023
Since I have announced that I will continue to operate the weather camera actively, instead of simply waiting for the hardware to fail, an update is due in the next few days. I have to thank a supporter supporting me to buy some replacement hardware.
nn
If the installed EOS 1000D stops working, I now have a replacement that can be used within a very short time. In addition, a donated RaspberryPi3 is ready as a replacement too.
nn
So, there is some work to be done for the upcoming weekend:
nn
- n
- Removal of the case and cleaning
- Backup of the settings and the operating system of the installed RaspberryPI (basically a 1:1 copy of the memory card), as well as replacement of the memory card (the 32GB microSDXC card is working there for over 6 years, wow!)
- another insulation mat to keep the hardware in a reasonable temperature window on cold and hot days.
n
n
n
nn
The camera will therefore be temporarily unavailable from March 3 to 5.
Fiat Lux!
Hi