-
Notifications
You must be signed in to change notification settings - Fork 0
Instruction setup for a RPi
update your raspberry pi using these commands: apt-get update && apt-get dist-upgrade
apt-get install libilmbase-dev && apt-get install libopenexr-dev && apt-get install libgstreamer1.0-dev && apt-get install libatlas-base-dev
apt-get -y install python3-pip
pip3 install requests && pip3 install imageio && pip3 install pygifsicle && pip3 install opencv-python && pip3 install python-telegram-bot && pip3 install websocket-client && pip3 install arrow
cd /home/pi/ touch bot.sh
###give execution rights: chmod +x /home/pi/
#!/bin/bash #python starstcript in bash #afterwards make a crontab with following content: #@reboot /bin/sh /home/pi/telegrambot/bot.sh
cd home/pi/ #sleep 10 seconds and start python script of the bot: /bin/sleep 10 && /usr/bin/python3 /home/pi/telegrambot/Repetier-Server_Telegram_Bot.py
#edit the .json file adding your personal telegram + repetier settings using nano nano RepetierBot.json
#now try starting your bot for the first time: python3 RepetierBot.py
apt-get update && apt-get dist-upgrade -y apt-get install screen -y /usr/bin/screen -S bot /usr/bin/python3 /path/to/bot/RepetierBot.py
rm RepetierBot.py wget https://raw.githubusercontent.com/DanJunior78/Repetier-Server-Telegram-Bot/main/RepetierBot.py