Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8597

Python • Re: Arduino-Pi Weather Station issue

$
0
0
UPDATE - after trying a few different things...the data is now being stored into the table.

Next issue:
The pi updates too quickly. The arduino is currently set for 30 sec delay for testing purposes. That means I get 1 line of good data and 28-29 lines of Json error where nothing is being transmitted.

I tried if data != "": if data!= " ": if data != None: and nothing stops it until the next code arrives and releases it to proceed. I've tried this in the main function as well as the read_from_serial function. Neither worked.

Goal is to extend the time delay out to every 10 minutes like my first gen weather station. I will post all code once these little gremlins are dealt with so that anyone finding this in the future can glean and learn as I have 8-)

Statistics: Posted by Osprey72 — Tue Apr 15, 2025 11:36 pm



Viewing all articles
Browse latest Browse all 8597

Trending Articles