sighmon/enviroplus_exporter

Handle PMS5003 reading checksum error

Closed this issue · 0 comments

  • Handle PMS5003 reading checksum error
03.03.21 08:33:48 (+1030)  main  Traceback (most recent call last):
03.03.21 08:33:48 (+1030)  main    File "enviroplus_exporter.py", line 508, in <module>
03.03.21 08:33:48 (+1030)  main      get_particulates()
03.03.21 08:33:48 (+1030)  main    File "enviroplus_exporter.py", line 189, in get_particulates
03.03.21 08:33:48 (+1030)  main      pms_data = pms5003.read()
03.03.21 08:33:48 (+1030)  main    File "/usr/local/lib/python3.7/site-packages/pms5003/__init__.py", line 155, in read
03.03.21 08:33:48 (+1030)  main      raise ChecksumMismatchError("PMS5003 Checksum Mismatch {} != {}".format(checksum, data.checksum))
03.03.21 08:33:48 (+1030)  main  pms5003.ChecksumMismatchError: PMS5003 Checksum Mismatch 619 != 22016