This repository was archived by the owner on Jul 4, 2022. It is now read-only.
Repository navigation
Releases: weidtn/sensorpi
Releases · weidtn/sensorpi
Release list
v0.1.6: Fixed some camera bugs
- Camera now saves images with timestamp if desired. (Did not work previously)
- Camera now does not popup a preview on screen.
- Cleanup of Readme
v0.1.5: Added functionality to create a new config.edn
- Use the
sensorpi -n "/path/to/newconfig.edn"functionality to create a new config file.
v0.1.4: Use sensor handler, fixes
- Uses a handler for the sensors now. Makes the code easier to read.
- Used logging instead of printing for exceptions
- The difference between timestamps better matches the interval now (still not perfect)
v0.1.3: Catching Exception when database timeouts
Will catch the exception when database is not reachable. But will not try later. Measurement is just discarded.
v0.1.2: Fixed logging from imported modules
- Only important data should be logged.
- In the readme a link to an install.sh script was added to install grafana and influx.
v0.1.1: Added Argument parsing
Now the main arguments are parsed from the CLI.
If no arguments are given, the program will ask for measurement and interval and automatically look for the config.edn file in the current working directory.
Example:
sensorpi -h
usage: sensorpi [-h] [--config CONFIG] [--measurement MEASUREMENT] [--interval INTERVAL] [--verbose]
Run measurements from different sensors and send data to an influx db.
optional arguments:
-h, --help show this help message and exit
--config CONFIG, -c CONFIG
config.edn file to use.
--measurement MEASUREMENT, -m MEASUREMENT
Measurement name.
--interval INTERVAL, -i INTERVAL
Interval between measurements in seconds.
--verbose, -v
First beta release
First beta release. The program should run with basic functionality.
But the code is not clean.