Cache last value for each topic and only insert into DB on change

Reduces database size
This commit is contained in:
2020-12-21 22:22:27 +01:00
parent adf4e564d9
commit b88fcb2f04
2 changed files with 16 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
{ python3 }:
with python3.pkgs;
buildPythonPackage rec {
name = "mqtt-config";
name = "mqtt-tools";
src = ./.;
propagatedBuildInputs = [ pyyaml paho-mqtt ];
buildInputs = [];