1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- [main]
- # Basically, when this is set to false you'll have no output except for errors, which is desired when running cronned ;]
- # This is optional and defaults to false
- debug = false
- # Do almost everything as usual (connect to SQL, read temperature) but don't actually insert into the database
- # This is optional and defaults to false
- #dryrun = false
- # You can also use variable interpolation to make dryrun automatically go into effect when debug == true
- # This doesn't work if --debug is specified from the command line, you'd need to do both --debug and --dryrun ;]
- dryrun = %(debug)s
- # Specify the sensor's sysfs directory name (should be the <SENSOR> in: /sys/bus/w1/devices/<SENSOR>/w1_slave)
- # If you have multiple sensors simply specify multiple "sensor = xxx" lines ;]
- sensor = 28-02155265b0ff
- # For every sample, try to read the sensor this many times until it produces some expected output (should usually take only 1 attempt but still ;])
- # This is optional and defaults to 5
- sample_maxattempts = 5
- [mysql]
- # Should be obvious lmao
- # This is optional and defaults to 3306
- port = 3306
- # All of deez nuts are required yo
- host = 127.0.0.1
- user = ayylmao
- pass = gottem
- db = turds
- table = temperature
- column = temp
- # MySQL must be explicitly configured for SSL/TLS and is usually implemented in the form of STARTTLS (explicit TLS, running on the same port as plaintext)
- # This is optional and defaults to false
- tls = false
- [weathermon]
- # Refer to em README for moar deetz on getting the required keys etc lol
- # If this shit is not enabled (which is the default) then the other variables are not necessary obv m8
- #enable = false
- # Interval is in minutes and is *not* relative to the skrip's startup time, rather it simply checks if the current hour to minutes + current minutes is evenly divisible by the interval
- # Therefore it can't be more than 60 and it should be evenly divisible by the time used in your crontab as well ;]
- # Free weather APIs generally don't update faster than once every 10 minutes, but you should checkem at least once per hour anyways
- #interval = 10
- #weather_url = https://api.openweathermap.org/data/2.5/weather
- #weather_key = 11a11a111a1a11a111111111aa1a1aaa
- #city_id = 123456789
- # TLS certificate bundle file used by the requests module for em weather API
- # This shit is optional and defaults to the below value
- #tls_ca_file = /etc/ssl/certs/ca-certificates.crt
- # Copy both app ID and REST API key from your OneSignal dashboard > app's settings > Keys & IDs
- #onesignal_restkey = aaaaaaa1aaaaaaa1aa11aaaaaaaaaaaaaaaaaaaaaaaaaaaa
- #onesignal_appid = a11a11a1-aa11-1aa1-a11a-1a11a11a1aaa
- # Also copy the notification category's channel ID from your OneSignal dashboard > app's settings > Messaging
- #onesignal_channel = a11a11a1-aa11-1aa1-a11a-1a11a11a1aaa
- # And finally, the segment of subscribers to send to (optional, defaults to everyone if not specified)
- #onesignal_segment = temp_sensor
|