https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2021-05-28/
Kategorie: raspberrypiOS
Access Guest SMB-Shares and mount
#!/bin/sh
mkdir -p ~/my_local_folder
# mac specific
# mount_smbfs -N //guest@host.local/sharefolder ~/my_local_folder
# smb version 1.0!
sudo mount -t cifs -o rw,guest,vers=3.0 //host/sharefolder ~/my_local_folder
Undervoltage-LED, external
#!/bin/bash
while [ $loop 1 ] ; do
dmesg | grep -iC 3 "Undervoltage detected!"
if [ $? != 0 ]
then
echo "normal voltage" &>/dev/null
else
sh /home/pi/LED/voltage-led
echo "under voltage" &>/dev/null
fi
sleep 1
done
sleep 0
done
Who is online
Based on http://rootfriend.com/online-led
Avahi Service File
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h</name>
<service>
<type>_ssh._tcp</type>
<port>22</port>
<txt-record>path=/home/yep/</txt-record>
<txt-record>u=fukit</txt-record>
</service>
</service-group>
/etc/avahi/services/ssh.service
sudo service avahi-daemon restartArgonPOD-Screen and VideoLooper (Zero 1 W/Zeros 2 W)
Legacy-Version required: 32-bit-version
Installer-Script:
#!/bin/bash
sudo apt-get update
sudo apt-get install -y git
sudo rm -rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod -R 755 LCD-show
cd LCD-show/
sudo ./LCD28-show
echo "2.8” RPi Display (MPI2801) ... finished"
Die offizielle Anleitung befindet sich hier: https://cdn.shopify.com/s/files/1/0556/1660/2177/files/ARGON_POD_MANUAL.pdf
Backup
VideoLooper: Timer
Play one file at full hour and change back to normal one („b.mp4“) 🙂
timer.sh
#/bin/bash
mv /home/pi/video/b.mp4 /home/pi/video_off
mv /home/pi/video_off/a.mp4 /home/pi/video
# videoduration a.mp4
sleep 300
mv /home/pi/video/a.mp4 /home/pi/video_off
mv /home/pi/video_off/b.mp4 /home/pi/video
crontab
0 13 * * * /bin/bash /home/pi/timer.sh >> /home/pi/timer.log 2>&1
0 14 * * * /bin/bash /home/pi/timer.sh >> /home/pi/timer.log 2>&1
0 15 * * * /bin/bash /home/pi/timer.sh >> /home/pi/timer.log 2>&1
0 16 * * * /bin/bash /home/pi/timer.sh >> /home/pi/timer.log 2>&1
Videolooper Netvideo: play videos from SMB-Sources
„Netvideo“ ist eine elegante Erweiterung, um Videos nicht von USB-Stick oder dem internen Verzeichnis abzuspielen, sondern über das Netzwerk. Vorteil: jede Änderung in dem Netzwerkverzeichnis wird unmittelbar erkannt und die Datei oder die Dateien werden ganz easy, vom Schreibtisch aus gesteuert, abgespielt. Macht richtig viel Sinn für mittlere und grosse Ausstellungsflächen.
Continue reading „Videolooper Netvideo: play videos from SMB-Sources“
CM4. Compute Models.
Das CM4 gibt es in 32 verschiedenen Varianten und gerade in der Version mit eMMC (integrierten Flash-Speicher) gibt es Unterschiede bei der Erstinstallation im Gegensatz zum normalen RPi.
Zur generellen Unterscheidung hier die Modelle mit Wifi und eMMC:
Continue reading „CM4. Compute Models.“
Mail Konsole / Mutt Hotmail.cfg
set ssl_starttls=yes
set ssl_force_tls=yes
set imap_user = 'user_name@hotmail.com'
set imap_pass = 'password_here'
set from= $imap_user
set use_from=yes
set realname='Your_Name'
set folder = imaps://imap-mail.outlook.com:993
set spoolfile = "+INBOX"
set postponed="+[hotmail]/Drafts"
set mail_check = 100
set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"
set smtp_url = "smtp://$imap_user@smtp-mail.outlook.com:587"
set smtp_pass = $imap_pass
set move = no
set imap_keepalive = 900
set record="+Sent"
Online LED
Script for external LEDs:
Continue reading „Online LED“
Webcam@Ionos with sshpass & sftp & imagemagick
Record Audio in Raspberry Pi OS
#!/bin/bash
arecord -D plughw:1 -c1 -r 48000 -f S32_LE -t wav -V mono -v listen-usb.wav
Mutt Config File for IONOS
nano ~/.mutt/muttrc
#================ IMAP ====================
set imap_user = your@email.de
set imap_pass = yourpassword
set spoolfile = imaps://imap.ionos.de/INBOX
set folder = imaps://imap.ionos.de/
set record="imaps://imap.ionos.de/mbox/Sent Mail"
set postponed="imaps://imap.ionos.de/mbox/Drafts"
set mbox="imaps://imap.ionos.de/mbox/All Mail"
set header_cache = "~/.mutt/cache/headers"
set message_cachedir = "~/.mutt/cache/bodies"
set certificate_file = "~/.mutt/certificates"
#================ SMTP ====================
set smtp_url = "smtp://your@email.de@smtp.ionos.de:587/"
set smtp_pass = $imap_pass
set ssl_force_tls = yes
#================ Composition ====================
set editor = "nano"
set edit_headers = yes
set charset = UTF-8 # value of $LANG; also fallback for send_charset
# Sender, email address, and sign-off line must match
unset use_domain
set realname = "yourname"
set from = "your@email.de"
set use_from = yes
set timeout = 30
send email with:
echo „this is body of email“ | mutt -s „this is subject of email“ receiver@mail.com
tcptrack
sudo apt-get install tcptrack
sudo tcptrack -i eth0