Small and humble alerting tool using Warp10 as its data backend

config.sample.yaml 546B

123456789101112131415161718192021
  1. warp10_exec: http://localhost/api/v0/exec
  2. token: READ_TOKEN
  3. scripts:
  4. - key: "temperature"
  5. script: "
  6. NOW 'now' STORE
  7. [
  8. $token
  9. 'sensores.temperature'
  10. { 'room' 'bedroom' }
  11. $now
  12. -1
  13. ] FETCH
  14. VALUES LIST-> DROP LIST-> DROP
  15. "
  16. # bool | number
  17. type: number
  18. # only required if type == number
  19. threshold: 50
  20. action: http
  21. target: http://localhost:9996/alert