My code is in this pastebin:
https://pastebin.com/2yujb5Cw
You can see from my debugger image that myValue, readings, timestamp, and station_id are all valid. But I just cannot get it to write to the csv. You can see that it clearly tricks me into thinking it's written, but there's nothing in the csv file!
It even creates the .csv so it's obvious that it knows where the file is.
I googled, I'm not opening the file twice in the loop, it's just insistently not writing???????
I'm panicking. I don't understand why this is happening??
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.