|
Post by SDL on Nov 14, 2018 9:34:21 GMT -8
Folks, We just released a new Pure Python driver for the AM2315 to try to knock down the problems that have shown up with the tentacle_pi driver with the new Stretch operating system. New Pure Python Drivers for the AM2315 for the Raspberry Pi www.switchdoc.com/2018/11/python-am2315-library-released/A new version of GroveWeatherPi has also been released including these drivers. Please let us know if we finally killed this problem! github.com/switchdoclabs/SDL_Pi_GroveWeatherPiGroveWeatherPi Libraries and Example for Raspberry Pi Solar Powered Weather Station
Supports SwitchDoc Labs WeatherRack WeatherBoard (WeatherPiArduino V2 and above)
Version 3.04
www.switchdoc.com/
November 14, 2018 - Version 3.04 Added CRC checking to the AM2315 Python Driver.
November 14, 2018 - Version 3.03 Added New AM2315 Python Driver. removed tentacle_piBest regards, BP
|
|
|
Post by SDL on Nov 15, 2018 18:11:59 GMT -8
Folks,
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.
BP
|
|
|
Post by triggerfish on Nov 18, 2018 23:14:19 GMT -8
What would be the best method to upgrade from 3.03 to 3.04?
|
|
|
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[2] << 8) | tmp[3]) / 10.0 TypeError: 'NoneType' object has no attribute '__getitem__'
|
|
|
Post by triggerfish on Nov 19, 2018 4:57:40 GMT -8
OK, backt to the previous version! Temp is displayed as 77.9 celcius... That is probaly fahrenheit, but wrongly passed through the system.
|
|
|
Post by doxidad on Nov 19, 2018 7:15:01 GMT -8
Just putting this here since I see the errors also. I added a comment in the AM2315 forum with the "non-type" errors a day or so ago.
|
|
|
Post by SDL on Nov 21, 2018 8:55:47 GMT -8
OK, we are on it! I'll get to it on Friday (when all the family leaves! American Thanksgiving you know).
I think I know what the problem is. If I weren't sitting in the airport, I could probably fix it.
BP
|
|