muhconf.ini.example 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. [main]
  2. # Basically, when this is set to false you'll have no output except for errors, which is desired when running cronned ;]
  3. # This is optional and defaults to false
  4. debug = false
  5. # Do almost everything as usual (connect to SQL, read temperature) but don't actually insert into the database
  6. # This is optional and defaults to false
  7. #dryrun = false
  8. # You can also use variable interpolation to make dryrun automatically go into effect when debug == true
  9. # This doesn't work if --debug is specified from the command line, you'd need to do both --debug and --dryrun ;]
  10. dryrun = %(debug)s
  11. # Specify the sensor's sysfs directory name (should be the <SENSOR> in: /sys/bus/w1/devices/<SENSOR>/w1_slave)
  12. # If you have multiple sensors simply specify multiple "sensor = xxx" lines ;]
  13. sensor = 28-02155265b0ff
  14. # 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 ;])
  15. # This is optional and defaults to 5
  16. sample_maxattempts = 5
  17. [mysql]
  18. # Should be obvious lmao
  19. # This is optional and defaults to 3306
  20. port = 3306
  21. # All of deez nuts are required yo
  22. host = 127.0.0.1
  23. user = ayylmao
  24. pass = gottem
  25. db = turds
  26. table = temperature
  27. column = temp
  28. # 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)
  29. # This is optional and defaults to false
  30. tls = false
  31. [weathermon]
  32. # Refer to em README for moar deetz on getting the required keys etc lol
  33. # If this shit is not enabled (which is the default) then the other variables are not necessary obv m8
  34. #enable = false
  35. # 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
  36. # Therefore it can't be more than 60 and it should be evenly divisible by the time used in your crontab as well ;]
  37. # Free weather APIs generally don't update faster than once every 10 minutes, but you should checkem at least once per hour anyways
  38. #interval = 10
  39. #weather_url = https://api.openweathermap.org/data/2.5/weather
  40. #weather_key = 11a11a111a1a11a111111111aa1a1aaa
  41. #city_id = 123456789
  42. # TLS certificate bundle file used by the requests module for em weather API
  43. # This shit is optional and defaults to the below value
  44. #tls_ca_file = /etc/ssl/certs/ca-certificates.crt
  45. # Copy both app ID and REST API key from your OneSignal dashboard > app's settings > Keys & IDs
  46. #onesignal_restkey = aaaaaaa1aaaaaaa1aa11aaaaaaaaaaaaaaaaaaaaaaaaaaaa
  47. #onesignal_appid = a11a11a1-aa11-1aa1-a11a-1a11a11a1aaa
  48. # Also copy the notification category's channel ID from your OneSignal dashboard > app's settings > Messaging
  49. #onesignal_channel = a11a11a1-aa11-1aa1-a11a-1a11a11a1aaa
  50. # And finally, the segment of subscribers to send to (optional, defaults to everyone if not specified)
  51. #onesignal_segment = temp_sensor