eykamp / birdhouse

Tools for the birdhouse project
http://sensorbot.org
GNU General Public License v3.0
6 stars 6 forks source link

Missing module 'config' #3

Open ChrisWeiss opened 4 years ago

ChrisWeiss commented 4 years ago

Despite the error checking, the config import is failing for me.

~/workspace/birdhouse/management master
❯ python3 provision.py
Traceback (most recent call last):
  File "provision.py", line 89, in <module>
    from config import dashboard_template_device
ModuleNotFoundError: No module named 'config'

~/workspace/birdhouse/management master
❯ python3 --version
Python 3.7.6
presto8 commented 4 years ago

I have the same issue... I think it's solved by commenting out line 89 and then setting line 125 to None.

eykamp commented 4 years ago

The config file contains parameters for accessing the Sensorbot database, and may not be needed for loading the firmware. I am in midst of a rewrite of the firmware loader to address this specific situation.

You may be able to bypass it by creating a file called config.py, with the following contents:

thingsboard_username = "xxx"      
thingsboard_password = "xxx"                    

mothership_url = "http://www.sensorbot.org:8080"

Try this, and feel free to contact me directly by email if you want help getting the firmware onto your device, which can be done by other means.

eykamp commented 4 years ago

I should add that if your solution looks like it worked, it probably worked.