For details, see hardware.md.
$ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 10 (buster)
Release: 10
Codename: buster
$ python3 --version
Python 3.7.3
-
Install the additional packages for the application and download the application.
cd /to/the/application/path && \ sudo apt install -y python3-pip python3-requests pigpio git && \ pip3 install slackclient==1.3.0 --user && \ pip3 install pigpio==1.44 --user && \ git clone https://github.com/dongsiku/SmartRemoteControl2.git
-
Create
setting/smartrc.cfg
. For example, see setting/smartrc.cfg.default.[SLACK] SLACK_API_TOKEN = YOUR-SLACK-API-TOKEN [GDRIVE] ID = YOUR-GDRIVE-ID [BASIC] LOCATION = YOUR-SMARTRC-LOCATION-NAME is_WITH_RECODER = False [SLACKBOT] DEFAULT_REPLY = Sorry but I did not understand you [GPIO] RECORD = 18 PLAYBACK = 17
-
Install this application.
bash SmartRemoteControl2/install.sh && \ # Install SmartRemoteControl2 bash SmartRemoteControl2/install-gdrive.sh # Install gdrive
This application is controled with smartrc
(SMART Remote Control) command.
-
To record IR remote control codes
smartrc record IR_REMOTE_CONTROL_ID
or
smartrc learn IR_REMOTE_CONTROL_ID
-
To playback IR remote control codes
smartrc playback IR_REMOTE_CONTROL_ID
or
smartrc send IR_REMOTE_CONTROL_ID
If you want to use these features, gdrive must be installed on the Raspberry Pi by install-gdrive.sh.
-
To backup IR remote control codes
smartrc backup
-
To restore IR remote control codes
smartrc recovery
-
To share IR remote control codes
This command makes Raspberry Pis having same slack channel and Google drive directory ID share their data. This command can be used on the Raspberry Pi set up as the Pi having recorder, because only this Pi can send the data.
smartrc share
or
smartrc update