colinodell / mqtt-control-panel

A simple alarm control panel for Home Assistant's manual_mqtt alarm. Designed to run on a Raspberry Pi using an Adafruit 3.5" PiTFT.
MIT License
86 stars 25 forks source link

Running "python /srv/main.py" issue #5

Closed averyct closed 6 years ago

averyct commented 6 years ago

Once I run 'python /srv/main.py', I get this error:

Traceback (most recent call last): File "/srv/main.py", line 21, in <module> PINS = os.environ.get('PINS').split(',') AttributeError: 'NoneType' object has no attribute 'split'

What should I do to get this to work? I'm decently knowledgeable with Raspberry Pi, but not good enough to code or edit code :/ Thanks!

colinodell commented 6 years ago

Make sure you have copied the .env file and that it contains PINS= plus some value.