https://github.com/orestispanago/combilog-pi
Get data from Combilog datalogger
https://github.com/orestispanago/combilog-pi
beaglebone combilog cron datalogger friedrichs ftp raspberry sftp
Last synced: 2 months ago
JSON representation
Get data from Combilog datalogger
- Host: GitHub
- URL: https://github.com/orestispanago/combilog-pi
- Owner: orestispanago
- Created: 2022-09-14T14:08:25.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-30T11:05:30.000Z (about 2 years ago)
- Last Synced: 2025-01-30T15:49:59.206Z (4 months ago)
- Topics: beaglebone, combilog, cron, datalogger, friedrichs, ftp, raspberry, sftp
- Language: Python
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Combilog-pi
Read data from Friedrichs Combilog 1022 datalogger and upload to FTP + SFTP.
Using [combilog](https://github.com/theendlessriver13/combilog) library.
* Records since last readout are retrieved from the datalogger.
* Records are grouped by date and saved as daily ```.csv``` files.
* The ```.csv``` files are uploaded to FTP and SFTP servers.
## Instructions
Edit the FTP and SFTP parameters in ```main.py```
Add your ```known_hosts``` file for the SFTP server connection.
To avoid overlapping cron job execution, use ```flock``` in crontab:
```
*/5 * * * * /usr/bin/flock -w 0 ~/combilog_pi.lock python3 ~/Combilog-pi/main.py
```To check if your cron job is running:
```
grep CRON /var/log/syslog
```To make sure that ```flock``` works:
```
flock -n -x ~/flock_file.lock true || echo "LOCKED"
```