Telegram controlled snowglobe bot
- omxplayer - show video on framebuffer
- omxiv - show pictures on framebuffer ( https://github.com/HaarigerHarald/omxiv )
- Add "vt.global_cursor_default=0" to /boot/cmdline.txt to stop blicking of cursor on framebuffer
- dnsmasq & hostapd - to provide initial interface via wifi to enter the WiFi SSID and password
- unzip & tar - to support updates
- Create settings.yaml in the working directory:
--- telegram: api_token: "<PLACE TOKEN HERE>" # Telegram API key you got from Telegram's BotFather users: # Users can interact with the bot - <TELEGRAM_USERNAME> admins: # Admin users who can update the bot - <TELEGRAM_USERNAME> developer_chat_ids: # Which chats to update on error happened - <TELEGRAM_CHAT_ID> slideshow: directories: - /home/pi/Album
- Install requirements:
sudo apt install omxplayer dnsmasq hostapd unzip tar python3-venv
- Run the bot:
./teleglobe.sh
Here we will configure the CM108 small usb audio device: https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/cm108-type
- Make sure the system is up to date:
$ sudo apt update $ sudo apt full-upgrade $ sudo reboot
- Change lines in
/usr/share/alsa/alsa.conf
:-defaults.ctl.card 0 -defaults.pcm.card 0 +defaults.ctl.card 1 +defaults.pcm.card 1
- Make sure the volume is set to maximum:
$ amixer sset PCM,0 100%,100% unmute cap
- Test audio output with speaker-test:
$ speaker-test -c 2
sudo curl -s -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
sudo apt update
sudo apt install syncthing
sudo systemctl enable [email protected]
sudo systemctl start [email protected]
vi .config/syncthing/config.xml
- change IP address from 127.0.0.1 to 0.0.0.0 to listen on all interfacessudo systemctl restart [email protected]
- Go to IP:8384 and set admin+password and enable https
- Now connect the required folders as "receive only"
- Download MZDPI repo:
wget https://github.com/tianyoujian/MZDPI/archive/refs/heads/master.zip
- Rename:
mv master.zip MZDPI.zip
- Unpack:
unzip MZDPI.zip
- Change dir:
cd MZDPI-master/vga
- Install driver:
sudo ./mzdpi-vga-autoinstall-online
- Change screen rotation:
sudo vi /boot/config.txt
replace todisplay_rotate=1
sudo raspi-config
-> Interfaces -> Camera -> Yes -> Reboot
This is an experimental project - main goal is to test State Of The Art philosophy on practice.
We would like to see a number of independent developers working on the same project issues for the real money (attached to the ticket) or just for fun. So let's see how this will work.
Repository and it's content is covered by Apache v2.0
- so anyone can use it without any concerns.
If you will have some time - it will be great to see your changes merged to the original repository - but it's your choise, no pressure.