Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Value Support #53

Open
GreyPenguin opened this issue Nov 8, 2022 · 0 comments
Open

JSON Value Support #53

GreyPenguin opened this issue Nov 8, 2022 · 0 comments

Comments

@GreyPenguin
Copy link

Instead of writing the value for each sensor type, is it possible to produce one single json output? The MQTT traffic will be less by the factor of sensors and parsing will also easier
MB-Monty ➜ ~ mosquitto_sub -h 10.4.32.103 -v -t smartmeter/mains/#
smartmeter/mains/info Hello from 00C7551E, running SMLReader version 2.1.5.
smartmeter/mains/sensor {
"sensors": {
"sensor": [
{
"id": "1",
"1-0:1.8.0": "3546245.9",
"1-0:2.8.0": "13.2",
"1-0:1.8.1": "0.0",
"1-0:2.8.1": "13.2",
"1-0:1.8.2": "3546245.9",
"1-0:2.8.2": "0.0",
"1-0:16.7.0": "451.2"
},
{
"id": "2",
"1-0:1.8.0": "3546245.9",
"1-0:2.8.0": "13.2",
"1-0:1.8.1": "0.0",
"1-0:2.8.1": "13.2",
"1-0:1.8.2": "3546245.9",
"1-0:2.8.2": "0.0",
"1-0:16.7.0": "451.2"
}
]
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant