Continuing the discussion from Python Scripts for Additional Instruments:
Continuing the discussion from Python Scripts for Additional Instruments:
I’ve attempted to run the “rain.py 10” and one of the wind sensor files but I continue to get a “helper_functions is undefined” NameError. Is there a missing function or is there some othere error in the code? I’ll double-check the installation procedure to make sure I’ve followed all the instructions for installation on my Raspberry Pi 4 model B.
did you download the pi image and flash that to the sd card on the pi?
Yes. I opened the rain.py file, saw the help_functions code and realized that the variables file was not imported. I looked through the files and saw that the bme file (at the top of the git listing) had different code and immediately recognized I had either missed some part of the instructions or I needed to run some additional code. When I re-read the instruction it was quickly apparent that I had not modified the variables file, so the station altitude etc. wasn’t included. My files needed to have chmod run to access the permissions which is what I’m just about to do.
If there’s some other problem it’s probably due to the other aspects of python3 that are part of the “nameError” note.
Thanks again. I should never run error checking late at night!