projects:rfid:start
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:rfid:start [2025/06/02 12:11] – [Chicken coop 1] hoi-fung.sam | projects:rfid:start [2025/06/23 15:43] (current) – [Stop systemctl] hoi-fung.sam | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== RFID for Chicken ====== | ====== RFID for Chicken ====== | ||
| + | ===== Data ===== | ||
| + | http:// | ||
| ===== Reseller ===== | ===== Reseller ===== | ||
| Line 127: | Line 129: | ||
| ===== Chicken coop 1 ===== | ===== Chicken coop 1 ===== | ||
| {{projects: | {{projects: | ||
| - | {{projects: | + | {{projects: |
| {{projects: | {{projects: | ||
| {{projects: | {{projects: | ||
| Line 134: | Line 136: | ||
| ===== Chicken coop 2 ===== | ===== Chicken coop 2 ===== | ||
| {{projects: | {{projects: | ||
| + | {{projects: | ||
| {{projects: | {{projects: | ||
| {{projects: | {{projects: | ||
| Line 169: | Line 172: | ||
| sudo systemctl restart openvpn | sudo systemctl restart openvpn | ||
| + | </ | ||
| + | |||
| + | ===== systemd ===== | ||
| + | < | ||
| + | sudo nano / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | [Unit] | ||
| + | Description=RFID Reader 1 | ||
| + | After=network-online.target | ||
| + | Wants=network-online.target | ||
| + | |||
| + | [Service] | ||
| + | Type=simple | ||
| + | User=chicken_2 | ||
| + | WorkingDirectory=/ | ||
| + | ExecStart=/ | ||
| + | / | ||
| + | --port / | ||
| + | --power 30 \ | ||
| + | --antennas 1,2,7,8 \ | ||
| + | --interval 0.1 | ||
| + | Restart=always | ||
| + | RestartSec=5 | ||
| + | StandardOutput=append:/ | ||
| + | StandardError=append:/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=default.target | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | sudo systemctl daemon-reexec | ||
| + | sudo systemctl daemon-reload | ||
| + | sudo systemctl enable myscript.service | ||
| + | sudo systemctl start myscript.service | ||
| + | </ | ||
| + | |||
| + | ===== Stop systemctl ===== | ||
| + | < | ||
| + | sudo systemctl stop reader1.service | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | sudo nano / | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | sudo systemctl daemon-reload | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | sudo systemctl start reader1.service | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | sudo systemctl status reader1.service | ||
| </ | </ | ||
| ===== More informations about wing band/tags ===== | ===== More informations about wing band/tags ===== | ||
projects/rfid/start.1748859078.txt.gz · Last modified: 2025/06/02 12:11 by hoi-fung.sam