https://github.com/orestispanago/cr1000-pi
Get data from CR1000, upload to FTP
https://github.com/orestispanago/cr1000-pi
campbellscientific cr1000 datalogger ftp raspberry-pi
Last synced: about 2 months ago
JSON representation
Get data from CR1000, upload to FTP
- Host: GitHub
- URL: https://github.com/orestispanago/cr1000-pi
- Owner: orestispanago
- Created: 2022-07-02T17:38:56.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-21T10:56:10.000Z (almost 3 years ago)
- Last Synced: 2025-07-18T05:37:02.026Z (12 months ago)
- Topics: campbellscientific, cr1000, datalogger, ftp, raspberry-pi
- Language: Python
- Homepage:
- Size: 52.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## CR1000-pi
Gets measurements from Campbell Scientific CR1000 or CR800 datalogger
Saves data to daily csv files
Uploads csv files to FTP and SFTP server
Based on [PyCampbellCR1000 library](https://github.com/LionelDarras/PyCampbellCR1000)
## Instructions
Install requirements using
```pip install -r requirements.txt```
Edit the tasks configuration parameters in ```tasks_config.json```.
To remove a task, edit ```main()``` function in ```main.py```.
To avoid overlapping cron job execution, use ```flock``` in crontab:
```
*/5 * * * * /usr/bin/flock -w 0 ~/cr1000_pi.lock python3 ~/CR1000-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 ~/cr1000_pi.lock true || echo "LOCKED"
```