https://github.com/cafca/displaybot
Telegram-connected living room gadget plays endless gif stream, web radio, etc.
https://github.com/cafca/displaybot
conversational-ui raspberry-pi smarthome telegram telegram-bot
Last synced: 2 months ago
JSON representation
Telegram-connected living room gadget plays endless gif stream, web radio, etc.
- Host: GitHub
- URL: https://github.com/cafca/displaybot
- Owner: cafca
- License: mit
- Created: 2016-12-18T16:08:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-03T19:12:32.000Z (almost 8 years ago)
- Last Synced: 2025-06-03T02:14:58.909Z (about 1 year ago)
- Topics: conversational-ui, raspberry-pi, smarthome, telegram, telegram-bot
- Language: Python
- Homepage:
- Size: 1.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DisplayBot
This script runs on a Raspberry Pi and provides a fullscreen infinite gif loop
as well as a webradio. Both can be accessed and controlled through a Telegram bot.

# Installation
First, install `mplayer`, `omxplayer` and `ffmpeg` through a package manager. Then clone
displaybot to `~/displaybot` and make a Python 3 virtual environment for it.
Then
$ pip install -r requirements.txt
Finally
$ ./scripts/setup.sh
This script creates folders for the clips, asks you for a Telegram bot API token
(which you can get by adding @BotFather in Telegram) and optionally installs
a systemd unit file to start the script automatically on system start.
Now you can run displaybot from its root dir with
$ python3 displaybot/displaybot.py
# Updates
If you want to update the bot unattended you can create a cron entry that
executes `scripts/update.sh`. To do this run `sudo crontab -e`, move to the bottom
and add a new line
0 * * * * /home/pi/displaybot/scripts/update.sh
# Contributing
Please ask me before you start working on anything big. In general any kind of
comment and contribution is welcome. Make an issue or contact me via email if
you have questions or feedback.
# License
MIT License. See LICENSE file.