AllskyTeam / allsky-modules

User modules for allsky
MIT License
17 stars 17 forks source link

Right Data Type in MQTT Data Publish #129

Closed starhopper-de closed 1 month ago

starhopper-de commented 2 months ago

I use the MQTT Data Publish Module to export environment data to a remote server. It has a influxDB to store and Grafana to visualize this data.

Is your feature request related to a problem? Please describe.

I had to place a NODE-RED instance in front of this because numeric date come as string. Example: "AS_DEWCONTROLAMBIENT": "23.7"

Describe the solution you'd like

Is it possible to provide numeric as numeric, string as string and boolean as boolean.

Thomas

Alex-developer commented 1 month ago

Yes, its a great idea

I'll add an option to convert any numeric/boolean values and leave others as strings

Alex-developer commented 1 month ago

@starhopper-de I will merge a change that will set the correct data types