Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add DHT22 #219

Closed
Swiftnesses opened this issue Dec 1, 2018 · 3 comments
Closed

Cannot add DHT22 #219

Swiftnesses opened this issue Dec 1, 2018 · 3 comments

Comments

@Swiftnesses
Copy link

Device works fine using the Adafruit examples, adding via the Terrarium UI gives an error:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 1740, in wrapper
    rv = callback(*a, **ka)
  File "/home/pi/TerrariumPI/terrariumWebserver.py", line 47, in webserver_headers
    return fn(*args, **kwargs)
  File "/home/pi/TerrariumPI/terrariumWebserver.py", line 85, in wrapper
    return func(*a, **ka)
  File "/home/pi/TerrariumPI/terrariumWebserver.py", line 272, in __update_api_call
    result['ok'] = self.__terrariumEngine.set_config(path,postdata,request.files)
  File "/home/pi/TerrariumPI/terrariumEngine.py", line 1109, in set_config
    update_ok = self.set_sensors_config(data)
  File "/home/pi/TerrariumPI/terrariumEngine.py", line 670, in set_sensors_config
    self.__load_sensors(data)
  File "/home/pi/TerrariumPI/terrariumEngine.py", line 184, in __load_sensors
    self.__unit_type)
  File "/home/pi/TerrariumPI/terrariumSensor.py", line 317, in __init__
    sensorid = self.get_address().upper() + self.get_type()
  File "/home/pi/TerrariumPI/terrariumSensor.py", line 567, in get_address
    return self.sensor_address
AttributeError: 'terrariumSensor' object has no attribute 'sensor_address'
@Swiftnesses Swiftnesses changed the title Cannot add DHT11 Cannot add DHT22 Dec 1, 2018
@theyosh
Copy link
Owner

theyosh commented Dec 2, 2018

New pull will fix this issue

@Swiftnesses
Copy link
Author

Confirmed fixed.

@theyosh
Copy link
Owner

theyosh commented Dec 3, 2018

Cool... could you also look at #210 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants