Photo & Timelapse Telegram Bot
-
timelapses with libcamera, ffmpeg rendering & publishing on Github Pages
-
save to folders shots & vids (with data.json & readme.md)
-
upload to git and aws glacier
-
self cleaning rotating storage
-
!! automatically take a timelapse every day !!
Fix regressions, lost features:
- Likes
- Preview while running
- Misc commands: Cancel?!
- Local FFMpeg when Github disabled
- Glacier Backup
- Check/Retry Github Upload
- Destructive Rotation
Create Gallery and publish on github.io!
Discord API exploration and rearchitectured Bot: Sunseph
We have this new utility since Bullseye (buster 2022).
While taking the pictures for timelapses goes through libcamera-still
, you can also use other commands,
e.g. Videostreaming libcamera-vid -t 0 --width 1920 --height 1080 --codec h264 --inline --listen -o tcp://0.0.0.0:8888
and vlc tcp/h264://192.168.2.138:8888/
to manually adjust the objective, so you get sharp images (or libcamera-vid -t 0 --width 4056 --height 3040 --codec mjpeg --framerate 10 --inline --listen -o tcp://0.0.0.0:8888
and vlc tcp/mjpeg://192.168.2.150:8888/
).
I've failed to use this to make captures with more than 370 frames on my RaspberryPi 3 (it just crashes without a stack), so now we are back to scheduling each frame ourselves again. Also, I tried both packages node-libcamera
and libcamera
(which is a bit smaller), but we might aswell have full control about the spawned process without using additional dependencies
Install nodejs and ffmpeg
sudo apt-get update
sudo apt-get install ffmpeg -y
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
nvm install 16
nvm use 16
npm i -g pm2
I don't know if there is a copyright on it, I just liked the loading animation a lot.
Discord:
- Register App
- Authenticate & add to server: https://discord.com/oauth2/authorize?client_id=948316990228033608&scope=bot&permissions=534723950656