A Banana Pro Weather Logger
weather-logger.conf; keep track of variables.
I prefer to keep variables that may be used in more than one place or script in a configuration file. There isn't much in my weather-logger.conf file right now but I will be adding more when I get around to setting up the data server and web page.
############################################################ # /etc/weather-logger.conf RM20190425 # This file contains variables required by weather-logger.sh # and other scripts used to collect process and present # weather data. ############################################################ # # To adjust air pressure at weather logger site to air # pressure at sea level (MSL hPa) the elevation of the # site is required. The elevation is then divided by # 9.2 (hpa per metre) The quotient is then added to the # local air pressure obtain MSL hpa, e.g. 95/9.2=10.326 PRSSR_ADJST=10.326 # # Amount of rain water per rain guage bucket tip: # The rain guage catchment area is 6503.88sqmm. If 1mm of # rain falls on rain gauge, the volume of rain would be # 6503.88 * 1mm, or 6503.88cmm. 45cc of water from a syringe # tips the rain gauge bucket. 45cc=4500cmm each bucket tip. # Therefore 4500 / 6503.88 = % as mm of rain per bucket tip, # or 4500 / 6503.88 = 0.6918946844, say 0.7 (70%) RPT=.7 # mm. rain per (bucket) tip # # Path to temporary tip count file TIP_COUNT=/tmp/tip-count # # Path to temporary file containing the most recent # line of of weather data output from get_w_data TEMP_DATA=/tmp/temp-w-data.csv # # Path to weather-data.csv DATA_CSV=/var/lib/weather-data/weather-data.csv