Problem writting to DB #21
-
Hi.
What do I need to change to make this work?? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
Hi @PsySc0rpi0n , you'll need to provide your full code. Can you zip the directory and drop it in here and I will take a look? Thanks. ~Justin |
Beta Was this translation helpful? Give feedback.
-
I can paste the code and describe the contents of the folder. Zipping is harder for me. The code is here: I have an ESP01 publishing messages from the sensors to a broker (Mosquitto) in a Rpi 4 where I'm also running TinyFlux. So, the subscriber sees something like this:
|
Beta Was this translation helpful? Give feedback.
-
It looks like a key error on this line: You have called the variable
Check your zeroes and letter-Os. Also to explain the code, you need to know that this process is multi-threaded. The mosquitto callback Hope this helps, let me know if you need anything else. |
Beta Was this translation helpful? Give feedback.
-
I got it. I understood what was wrong. I was trying to read the wrong keys. I was trying to read But I still have something else to fix.
The last field, says |
Beta Was this translation helpful? Give feedback.
-
This might be a bug. So yes, if you were trying to write a field value of I create a bug report for this issue and will resolve it today: |
Beta Was this translation helpful? Give feedback.
-
Issue has been resolved in v0.2.2 of TinyFlux (latest version). To update using pip: "pip install tinyflux --upgrade" |
Beta Was this translation helpful? Give feedback.
Issue has been resolved in v0.2.2 of TinyFlux (latest version).
To update using pip:
"pip install tinyflux --upgrade"