I have a Raspberry Pi 3 running Jessie with fresh installation of Evok. I am also using Python 3.4. I received the error, "TypeError: 'NoneType' object is not subscriptable." The workaround Tomas referred to on Nov 25, 2016, worked, but I first had to install jsonrpclib-pelix, a version of jsonrpclib updated for Python 3. The standard jsonrpclib does not work with Python 3.
chuckhinds
@chuckhinds
Best posts made by chuckhinds
Latest posts made by chuckhinds
-
RE: Error using "jsonrpclib"
-
UniPi Control Panel does not look for lost value
The control panel does not look at "lost" value in message. If the temperature sensor signal is not being received on the 1-wire bus (ex. gets disconnected), the value of "lost:" is set to true and value of "value:" is set to the last known temperature. So if you unplug the sensor or it gets damaged the temperature on the control panel doesn't change. Adding the check for msg.lost on line 3 below will correct:
else if (dev_type == 'temp') { name = "Temperature Sensor " + msg.typ + " - " + circuit; if ((msg.value == null) | (msg.lost)) { value = "Not connected"; } else { value = (msg.value * (9.0 / 5.0) + 32).toFixed(1); // value = msg.value.toFixed(1); unit = "°F"; }
-
RE: Humidity sensor for unipi that can work with evok or owfs ?
Still looking for a 1-wire outdoor humidity/temperature sensor. I tried to order the UNICA sensor, but the web site says they are all out of stock and I don't see an option for the coated board. Any suggestions? -Thanks
-
RE: A/D 1-wire board
Does anybody know of a 1-wire A/D board to hook to UniPi? Using both AIs now. -Thanks
-
A/D 1-wire board
Does anybody know of a 1-wire A/D board to hook to UniPi? Using both AIs now. -Thanks
-
RE: Digital input not detected
Thought my hardware was broke too. Happy to have helped!
-
RE: Digital input not detected
You got it. I had a PiFace connected to this PI previously and didn't disable the SPI bus when I removed it. As you know, it's clock is on GPIO 11 (I07). I disabled the SPI, but it still didn't work. I found a forum on line that says you have to disable it twice before the GPIO pins it uses are freed up. Did it twice and now it works! Thanks for the help.
-
RE: Digital input not detected
Doesn't EVOK set the GPIO pull-up resistors for the digital inputs? I am testing the UniPi analog input with a pressure sensor using the "UniPi control panel" and it works perfectly. However the control panel says Input 7 is on, but nothing is connected to any of the digital inputs and the led on input 7 is not lit. I have tried rebooting, power cycling, and disconnecting the analog input, but it still says Input 7 is on. Any ideas?
-
RE: Installing evok manually
Dear Rudy and Thomas,
I has a similar problem with tornado, toro, and jsonrpclib getting loaded into Python 3.5. I got around this problem by changing the following line in install-evok.sh file:
"pip install tornado toro jsonrpclib"
to
"/usr/bin/pip-2.7 install tornado toro jsonrpclib"It forced the install to Python 2.7 libraries
I updated build-essentials and python-dev for 2.7 (and all other versions) first:
"sudo apt-get install build-essential python-dev" -
RE: 24V AC Input
I thought of bridge rectifier, but I would need 8 of them. I found a gang of eight 24vac relays about the size of the ones on the UniPi, but I didn't think that was elegant and power efficient.