Internal Server Error
Closed this issue · 0 comments
hnoguchi commented
I modified server.py → " mon = co2.CO2monitor(bypass_decrypt=True) ", then it works.
I have followed the setup instructions, but when I could not access the CO2monitor dashboard as below.
Any help would be much appreciated.
pi@raspberrypi:~ $ co2meter_server -H 0.0.0.0 -P 1201
- Serving Flask app 'co2meter.server' (lazy loading)
- Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead. - Debug mode: off
WARNING:werkzeug: * Running on all addresses.
WARNING: This is a development server. Do not use it in a production deployment.
INFO:werkzeug: * Running on http://192.168.0.108:1201/ (Press CTRL+C to quit)
ERROR:co2meter.server:Exception on / [GET]
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.7/site-packages/co2meter/server.py", line 61, in home
vals = list(mon._last_data)
AttributeError: 'CO2monitor' object has no attribute '_last_data'