Skip to content

maxtacu/RaspicastBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RaspicastBot

Telegram bot that controls your Raspicast device. This bot was created to make it easier to share connection to the Raspicast device without sharing ssh credentials.

Requirements

Before starting this bot on your device, you should configure raspberry Pi as a Chromecast device.
You can follow the guide here: https://pimylifeup.com/raspberry-pi-chromecast

OPTIONAL
You can also configure it as a Spotify Connect client.
Check the tutorial here: https://github.com/dtcooper/raspotify

After you configured and tested your Raspicast, you are ready to go.

Screenshot from 2019-04-11 01-19-35

Above is an example of the bot response when someone is sending a link to play.


Running the Bot

Please be sure that you have Python 3.6 installed.

I preffer to run the bot inside of the virtualenv. But you can do as you want and skip this section.

python3.6 -m venv .venv

This will create virtualenv inside .venv folder.

source .venv/bin/activate

Install all dependencies:

pip install -r requirements.txt

Create apiKey.txt file in the same folder as the raspicast_bot.py script with the bot's API key
which you retrieved from the BotFather when you created your bot in telegram.

Now you are ready to start the bot.

python raspicast_bot.py

Some features/commands of the bot

Webp net-resizeimage
RaspicastBot has aditionally a User Management support to restrict access to the bot. Use /admin command to add/remove/list users by their telegram username.

Please update the Admins list line with your telegram username to get access to the admin (user-management) functions.

About

Telegram bot that controls your Raspicast device

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages