Skip to content

simonprickett/cheerlights-grafana-alerter

Repository files navigation

TODO TITLE

Introduction

TODO

Hardware Required

TODO

Grafana Alert Setup

TODO

jsonata expression:

$map(feeds^(>entry_id), function($v) {
  return {
    "howLongAgo": $millis() - $toMillis($v.created_at),
    "color": $v.field1,
    "entryId": $formatNumber($v.entry_id, '#')
  }
})

with filter:

howLongAgo <= 90000

Unicorn Setup

TODO

Install Dependencies

The code uses Peter Hinch's MicroPython MQTT client.

mpremote mip install github:peterhinch/micropython-mqtt

Configure Secrets

TODO

Copying the Code to the Unicorn

TODO

Running the Code

TODO

Test it Out!

TODO

About

Alerter mechanism that uses Grafana alerts and MQTT to display the latest Cheerlights colors on Pimoroni Unicorn devices

Topics

Resources

License

Stars

Watchers

Forks