X-Git-Url: https://git.rvb.name/weathermon.git/blobdiff_plain/333cb703da2fbe639e6eb9d630e4f4221cc26d36..7edb3771717d15f7c36d8459fa12b3d6f76d7d9a:/weathermon.uci diff --git a/weathermon.uci b/weathermon.uci index 6c2f6e4..7a4162f 100644 --- a/weathermon.uci +++ b/weathermon.uci @@ -1,16 +1,64 @@ config internal 'web' - option url http://server/path/send.php + option url http://url-to-submit-meteo-data option user meteo - option password somestrictpassword - option iface eth0 + option password some-password + option iface wlan0 -config internal 'serial' - option port /dev/ttyUSB0 - option timeout 100 - option baud 9600 +config internal 'input' + option exec "/usr/bin/stdbuf -o0 /usr/bin/lua /usr/bin/weathermon-iio" +# option port /dev/ttyATH0 +# option timeout 100 +# option baud 57600 config internal 'logging' - option enabled on + option enabled off # on/stdout/syslog +# option touch_file /var/run/weathermon/weathermon.last config internal 'mqtt' - option host server + option host mqtt.host.name + option user meteo-user + option password some-password + +config internal 'alarm' +# option exec /usr/local/bin/alarm_received + +config internal 'hardware' + option i2c_bus 0 + +config internal 'process' + option delay 48 + option working_dir "/var/weather/" + option dump_file "/var/weather/weather.state" + +config device "bme280" + option module "bmp280_i2c" + option address "0x76" + option type "i2c:iio" + option name "bme280" + list set_param "in_humidityrelative_oversampling_ratio:4" + list set_param "in_temp_oversampling_ratio:8" + list set_param "in_pressure_oversampling_ratio:8" + list parameter "in_temp_input:T:0.001:-4" # source, name, scale, correction + list parameter "in_pressure_input:P:10" + list parameter "in_humidityrelative_input:H:0.001" + +config device "hmc5843" + option module "hmc5843_i2c" + option address "0x1e" + option type "i2c:iio" + option name "hmc5843" + list set_param "in_magn_meas_conf:normal" + list set_param "in_magn_sampling_frequency:2" + list set_param "in_magn_scale:0.000007692" + list parameter "in_magn_x_raw:MX" + list parameter "in_magn_y_raw:MY" + list parameter "in_magn_z_raw:MZ" + +config device "ads1115" + option module "ads1015" + option address "0x48" + option type "i2c:hwmon" + option name "ads1115" + list parameter "in4_input:CO" + list parameter "in5_input:CH4" + list parameter "in6_input:AIR"