Skip to content

Add decimal to temperature if it doesn't already have one#39

Open
howardtopher wants to merge 1 commit intocodersaur:masterfrom
howardtopher:master
Open

Add decimal to temperature if it doesn't already have one#39
howardtopher wants to merge 1 commit intocodersaur:masterfrom
howardtopher:master

Conversation

@howardtopher
Copy link

Logger app sends data as strings. Influx is converting number only strings to floats, but dropping digits (temp of 100 is logged as 10). By converting the temp to a float first, it adds a decimal point to it and influx will then log it correctly.

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

Successfully merging this pull request may close these issues.

1 participant