Difference between revisions of "Create SD Image Version 0.8.4"
(→-r Retries option) |
|||
Line 1: | Line 1: | ||
+ | ===Bug fixes=== | ||
+ | #Fix problem with config.pl taking a long time to load | ||
+ | #Fix problem with data on charts not aligning properly. | ||
+ | ===Features=== | ||
+ | #Add support for BME680 | ||
+ | #Add support for DS18B20 | ||
=== Install gnuplot=== | === Install gnuplot=== |
Revision as of 15:08, 18 September 2018
Bug fixes
- Fix problem with config.pl taking a long time to load
- Fix problem with data on charts not aligning properly.
Features
- Add support for BME680
- Add support for DS18B20
Install gnuplot
sudo apt-get install gnuplot
add -r Retries option to driver wrappers
The maximum number of retries to read a sensor before giving up can be specified.
The shell script wrappers around the sensor drivers (dht22.sh, hx711.sh, hx711py.sh, etc) now accept a -r retries command line argument.
# # Get the command line options (which device/GPIO pin to read), maximum number of times to try reading the sensor # while getopts "d:r:" option do case "${option}" in d) DEVICE=${OPTARG};; r) MAXRETRIES=${OPTARG};; esac done # # If max number of retires not specified, default to 10 # if [ -z $MAXRETRIES ] then MAXRETRIES=10 fi #echo "DEVICE = $DEVICE" #echo "MAXRETRIES = $MAXRETRIES" # # Loop up to MAXRETRIES times trying to read the sensor # DATA_GOOD=0 COUNTER=0 while [ $COUNTER -lt $MAXRETRIES ] && [ $DATA_GOOD -eq 0 ] do ....