What is Nostr?
Wolf480pl /
npub1704…t88d
2025-02-16 18:33:31
in reply to nevent1q…smhs

Wolf480pl on Nostr: The solution seems to be to resample it, with samples aligned to full minutes, before ...

The solution seems to be to resample it, with samples aligned to full minutes, before taking the rate.

This is what I've come up with:

rate((last_over_time(mqtt{topic=~"shellies/.*/relay/.*/energy"}[1m]))[1m:1m])

It's awful, but it seems to work.
3/3
Author Public Key
npub170403ynslsp4tn32j8tfhjn3cdq2pgut0jpnhrlcxl524gxf36pqput88d