- Removed obsolete script `script_SANSDEMARRAGE.sh`. - Added new `Camera.py` and `Connexion.py` files for camera handling and socket communication. - Implemented `First_Try.py` for initial camera preview testing. - Created `Humidity.py` for humidity sensor data acquisition. - Developed `Send_data_stocked.py` for managing and sending stored data. - Introduced `Time_Lapse_Connection.py` and `Time_Lapse_NoConnection.py` for connected and offline modes. - Added `get_from_server.py` for retrieving camera status from the server. - Updated `sync_offline_data.py` for synchronizing offline data. - Created `timelapse.service` for managing the timelapse service on Raspberry Pi. - Established package structure with `__init__.py` and `api_client.py` for API interactions. - Enhanced `capture.py` for managing image captures and data storage. - Configured `config.py` for centralized configuration management. - Developed `sensors.py` for handling environmental sensors and camera operations. - Implemented `timelapse_offline.py` and `timelapse_online.py` for capturing images in offline and online modes.
18 lines
502 B
Desktop File
18 lines
502 B
Desktop File
[Unit]
|
|
Description=Service Timelapse Raspberry Pi
|
|
DefaultDependencies=no
|
|
Before=basic.target
|
|
After=local-fs.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStart=/bin/bash /home/timelapse/Documents/Time_Lapse/script.sh
|
|
WorkingDirectory=/home/timelapse/Documents/Time_Lapse
|
|
User=timelapse
|
|
Restart=on-failure
|
|
RestartSec=30
|
|
StandardOutput=append:/home/timelapse/Documents/Time_Lapse/timelapse-service.log
|
|
StandardError=append:/home/timelapse/Documents/Time_Lapse/timelapse-service.log
|
|
|
|
[Install]
|
|
WantedBy=sysinit.target |