I have no programming skills whatsoever, however, google is my friend!
This is what I have tried so far:
(I read that OH uses ETC, instead of opt… so I changed some things around from:
…github.com/perrin7/ninjacape-mqtt-bridge/wiki/Setting-up-OpenHAB-on-rpi-(and-BBB)
Started with wheezy 2015 something…something…hence the rpi-update
33-sudo nano sudo ninjaCapeSerialMQTTBridge.py
serialdev = ‘/dev/ttyAMA0’ # for RPi
and here is where all HELL broke lose:
34-sudo ./ninjaCapeSerialMQTTBridge.py
So I got this (below excerpt from my screen ):
I went to my friend: GOOGLE, and it says it could be something with indentation? so checking for that…first, but Im also trying to find a way to capture the log (I read something about verbose!?.. no idea how to…yet)
Any help… most appreciated!
pi@ninja ~ $ cd /etc/openhab/
pi@ninja /etc/openhab $ sudo ./ninjaCapeSerialMQTTBridge.py
Connecting… /dev/ttyAMA0
Connected
Exception in thread Thread-2:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 552, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 505, in run
self.__target(*self.__args, **self.__kwargs)
File “./ninjaCapeSerialMQTTBridge.py”, line 82, in serial_read_and_publish
json_data = json.loads(line)
File “/usr/lib/python2.7/json/init.py”, line 326, in loads
return _default_decoder.decode(s)
File “/usr/lib/python2.7/json/decoder.py”, line 368, in decode
raise ValueError(errmsg(“Extra data”, s, end, len(s)))
ValueError: Extra data: line 1 column 5 - line 2 column 1 (char 5 - 40)
Message from syslogd@ninja at Feb 25 21:32:21 …
kernel:[ 210.807788] Internal error: Oops: 17 [#1] ARM
Message from syslogd@ninja at Feb 25 21:32:21 …
kernel:[ 210.917181] Process kworker/u2:0 (pid: 6, stack limit = 0xdd8f6188)
Message from syslogd@ninja at Feb 25 21:32:21 …
kernel:[ 210.924690] Stack: (0xdd8f7e08 to 0xdd8f8000)
Message from syslogd@ninja at Feb 25 21:32:21 …
kernel:[ 210.930315] 7e00: dd8f7e2c dd8f7e18 c0331288 c032fea4 e132e000 e132e000
Message from syslogd@ninja at Feb 25 21:32:21 …
kernel:[ 210.941091] 7e20: dd8f7e3c dd8f7e30 c03312e0 c0331268 dd8f7e9c dd8f7e40 c031a3cc c03312d4
Message from syslogd@ninja at Feb 25 21:32:21 …
kernel:[ 210.951918] 7e40: dcb71458 c004ae34 e132e000 00000046 00000000 e132e018 e1330000 e132e000
Message from syslogd@ninja at Feb 25 21:32:21 …
kernel:[ 210.962770] 7e60: 00000000 dc9370d2 00000046 dc9371d2 dd8f7e9c dcb71400 dd822014 db54a120
Message from syslogd@ninja at Feb 25 21:32:21 …
kernel:[ 210.973758] 7e80: dc937000 dd822004 dd822000 c031a840 dd8f7eb4 dd8f7ea0 c031a864 c0319e4c
Message from syslogd@ninja at Feb 25 21:32:21 …
kernel:[ 210.984881] 7ea0: 00000001 dcb71400 dd8f7eec dd8f7eb8 c031df5c c031a84c dc9c8da0 c07d4fd0