Home Back

API - Service Status

{'message': ['● smart_plug.service - Smart Plug - API Service Loaded: loaded (/etc/systemd/system/smart_plug.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2024-11-28 10:53:41 CET; 4 months 8 days ago Main PID: 632097 (python3) Tasks: 47 (limit: 3885) CPU: 4w 20h 36min 56.125s CGroup: /system.slice/smart_plug.service ├─ 632097 /usr/bin/python3 /home/pi/smart_plug/main_services/api_services.py ├─ 632135 /usr/bin/python3 /home/pi/smart_plug/main_services/api_services.py ├─2689886 /bin/sh -c sudo systemctl status smart_plug.service ├─2689887 sudo systemctl status smart_plug.service └─2689888 systemctl status smart_plug.service Apr 08 02:34:46 raspberrypi python3[632135]: 192.168.1.101 - - [08/Apr/2025 02:34:46] "POST /api/relaystatus/2 HTTP/1.1" 200 - Apr 08 02:34:46 raspberrypi python3[632135]: 43.153.36.110 - - [08/Apr/2025 02:34:46] "GET / HTTP/1.1" 200 - Apr 08 03:18:12 raspberrypi python3[632135]: 3.145.3.247 - - [08/Apr/2025 03:18:12] "GET /robots.txt HTTP/1.1" 404 - Apr 08 03:18:13 raspberrypi python3[632135]: 3.145.3.247 - - [08/Apr/2025 03:18:13] "GET /static/turned_off.png HTTP/1.1" 200 - Apr 08 03:18:13 raspberrypi python3[632135]: 192.168.1.101 - - [08/Apr/2025 03:18:13] "GET /api/reports HTTP/1.1" 200 - Apr 08 03:18:13 raspberrypi python3[632135]: 3.145.3.247 - - [08/Apr/2025 03:18:13] "GET /inforeports HTTP/1.1" 200 - Apr 08 03:41:29 raspberrypi python3[632135]: 192.168.1.101 - - [08/Apr/2025 03:41:29] "GET /api/automodestatus HTTP/1.1" 200 - Apr 08 03:41:29 raspberrypi python3[632135]: 3.21.106.239 - - [08/Apr/2025 03:41:29] "GET /infoautomoderelay HTTP/1.1" 200 - Apr 08 04:00:50 raspberrypi sudo[2689887]: pi : PWD=/ ; USER=root ; COMMAND=/usr/bin/systemctl status smart_plug.service Apr 08 04:00:50 raspberrypi sudo[2689887]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)'], 'status': 'True'}