torsdag 12 februari 2015

Telldus-Core on Raspberry Pi

#***************************************************
#**********           INSTALL             **********
#***************************************************

#Add repository:
sudo echo "deb-src http://download.telldus.com/debian/ stable main" | sudo tee -a /etc/apt/sources.list.d/telldus.list

#Temporary? repository for Raspbian Stretch
#https://developer.telldus.com/ticket/493?cversion=0&cnum_hist=2
sudo echo "deb http://s3.eu-central-1.amazonaws.com/download.telldus.com unstable main" | sudo tee -a /etc/apt/sources.list.d/telldus.list

#Create dir for Telldus Public key
mkdir ~/telldus-key && cd ~/telldus-key

#Download Telldus Public key
wget http://download.telldus.com/debian/telldus-public.key

#Install Telldus Public key
sudo apt-key add telldus-public.key

#Download updated package list
sudo apt-get update

#Install
sudo apt-get install -y telldus-core

#Remove temporary key folder
cd ~ && rm -rf ~/telldus-key

#Autostart is enabled by default.


#***************************************************
#**********            Misc               **********

#***************************************************

#Config file
nano /etc/tellstick.conf

#Restart
sudo service telldusd restart

#List
tdtool --list

#List sensors
tdtool --list-sensors


#***************************************************
#**********           Backup              **********


#***************************************************

#Restore from rsnapshot
sudo scp -r root@192.168.1.92:/var/backup/rsnapshot/hourly.0/PI3/etc/tellstick.conf /etc/tellstick.conf

Inga kommentarer:

Skicka en kommentar