forked from AndyFHWN/CLIMB_RaspberryLogger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0_commands.txt
44 lines (33 loc) · 1.23 KB
/
0_commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
sudo teamviewer setup
# regular execution of dropbox upload
crontab -e -> insert: */60 * * * * python3 /home/pi/logger/dbb.py >> /home/pi/logger/dbb.log 2>&1
# Logger Service:
sudo nano /lib/systemd/system/logger.service
sudo chmod 644 /lib/systemd/system/logger.service
sudo systemctl daemon-reload
sudo systemctl enable logger.service
sudo systemctl status logger.service
# Startup notify Service:
sudo nano /lib/systemd/system/startup_notify.service
sudo chmod 644 /lib/systemd/system/startup_notify.service
sudo systemctl daemon-reload
sudo systemctl enable startup_notify.service
sudo systemctl status startup_notify.service
# Startup rs485 Service:
sudo nano /lib/systemd/system/rs485.service
sudo chmod 644 /lib/systemd/system/rs485.service
sudo systemctl daemon-reload
sudo systemctl enable rs485
sudo systemctl status rs485
# get log
journalctl -u logger -e
# get log live
journalctl -u logger -e -l
# --- old ---
# number of reboots
last reboot | grep ^reboot | wc -l
# startup
su - pi -c "screen -dm -S python3 logger_screen /home/pi/logger.py"
# startup message
#sudo nano /etc/profile
#su - pi -c "screen -dm -S logger_startup_notify python3 /home/pi/logger/logberry_startup_notify.py"