Shunt docs page is live I created a mkdocs page for my NATS based rule router; [shunt]. I use this extensively in my homelab. For instance, Making all my Zigbee2MQTT events available in VictoriaMetrics Notifications automations by making HTTP requests into my Knative handlers Telling me when my plants need watering Various other Some examples use cases: Telegram hooks for Jellysearr so I know that I need to approve kids requests (and when they are done) Synadia Control Plane alert webhooks into Knative which trigger telegram Motion sensors lights for my office An example shunt rule: - name: z2m-metrics trigger: nats: subject: "zigbee2mqtt.*" action: http: url: "http://fn-z2m-metrics.knative-functions.svc.cluster.local/ingest" method: POST headers: X-Z2M-Device: "{@subject.1}" passthrough: true retry: maxAttempts: 3 initialDelay: "2s" maxDelay: "10s" This will listen for every message on the zigbee2mqtt.* subject and make a POST with the * subject token as the header. Internally, my…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.