People who have a problem with the AM2315 on the GWP software (I'm talking about the lock), please give this a try and give us results.
I had a "lock" on an AM2315 today that **might** be related and I want to get confirmation. It was a partially fried AM2315 I had sitting around so it is not conclusive. I'm getting a new one and putting it on the test system.
Thanks for helping debug this nasty little problem.
Post by triggerfish on Nov 19, 2018 4:32:44 GMT -8
With the new version I started with the AM2315 not recognised. After a few restarts, it got noted... I see the crc gives some hex value now. I have to take that in account when I want to use that for the temperature sanity check. What would be a good crc? Also the software displays several version numbers. In the source comment it says 3.04, but it logs 3.02 to the log file...
The error I get is repetitive:
ERROR:apscheduler.executors.default:Job "sampleAndDisplay (trigger: interval[0:00:10], next run at: 2018-11-19 13:29:41 CET)" raised an exception Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job retval = job.func(*job.args, **job.kwargs) File "/home/pi/SDL_Pi_GroveWeatherPi/GroveWeatherPi.py", line 1375, in sampleAndDisplay outsideTemperature, outsideHumidity, crc_check = am2315.read_humidity_temperature_crc() File "./SDL_Pi_AM2315/AM2315.py", line 91, in read_humidity_temperature_crc self._read_data() File "./SDL_Pi_AM2315/AM2315.py", line 63, in _read_data self.humidity = ((tmp << 8) | tmp) / 10.0 TypeError: 'NoneType' object has no attribute '__getitem__'