Skip to content

radaron/rpi_remote_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI - Version

Rpi Remote client

Installation

Install/Upgrade package

python3 -m pip install --upgrade rpi-remote --user

Create service

echo "[Unit]
Description=rpi_remote service
After=multi-user.target
[email protected]
[Service]
User=${USER}
Type=simple
Environment="LC_ALL=C.UTF-8"
Environment="LANG=C.UTF-8"
ExecStart=${HOME}/.local/bin/rpi-remote
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target" | sudo tee /etc/systemd/system/rpi-remote.service
sudo systemctl daemon-reload
sudo systemctl enable rpi-remote.service
sudo systemctl start rpi-remote.service

Configuartion

Config file path: ~/.config/rpi_remote/config.ini

This file automatically generated when the service starts. See the example below.

[connection]
server_host = localhost
server_port = 80 # 443 in case of https
ssl = true # true/false
ssh_username = root
ssh_port = 22
period_time_sec = 30
client_name = test_client
disk_path = /media/HDD

Check logs

journalctl -fu rpi-remote