Hi @jag
I’m trying to install your binding and add two samsung Windfree AC’s to my OpenHAB system.
I’m trying to get their token files based on your explanation here: https://gitlab.com/jan19/samsung-digital-inverter,
However, I think I’m doing something wrong, because I’m getting an error message when I’m trying to run server.py with python.
Here are the steps I’ve made:
- copy the binding’s jar file into the following location on the raspberry pi: /usr/share/openhab2/addons/org.openhab.binding.samsungdigitalinverter-2.5.1-SNAPSHOT.jar
- in the same folder as the jar file, I created two files: server.py and token.py and pasted the texts you mentioned for each in your explanation.
- (within the same folder) in terminal I run the command:
python3 server.py
- I get this output and error message:
pi@raspberrypi:/usr/share/openhab2/addons $ python3 server.py
Traceback (most recent call last):
File “server.py”, line 1, in
from http.server import HTTPServer, BaseHTTPRequestHandler
File “/usr/lib/python3.7/http/server.py”, line 100, in
import shutil
File “/usr/lib/python3.7/shutil.py”, line 22, in
import bz2
File “/usr/lib/python3.7/bz2.py”, line 17, in
from threading import RLock
File “/usr/lib/python3.7/threading.py”, line 8, in
from traceback import format_exc as _format_exc
File “/usr/lib/python3.7/traceback.py”, line 5, in
import linecache
File “/usr/lib/python3.7/linecache.py”, line 11, in
import tokenize
File “/usr/lib/python3.7/tokenize.py”, line 35, in
from token import *
File “/usr/share/openhab2/addons/token.py”, line 1
mport requests
^
SyntaxError: invalid syntax
pi@raspberrypi:/usr/share/openhab2/addons $
Any chance you can tell me what I’m missing or doing wrong?