Read the statement by Michael Teeuw here.
MMM-SensorGateway
-
@dmd Hi!, Python 2.7.16 is the exact python version I’ve used.
the exec module warning is expected, is there something in the snippet you sent that indicates that something went wrong in the module installation?
btw, how did the service installation itself go? (there is an expected output in the instructions) and can you try running the gateway python script directly? e.g. :
sudo python bleAdvWebSocket.py
and post the results here.
-
@mattileh I gt exactly the same error as @dmd. When I run bleAdvWebSocket.py manually I get the following:
pi@mirror-pi:~/MagicMirror/modules/MMM-SensorGateway/gateway $ python bleAdvWebSocket.py Traceback (most recent call last): File "bleAdvWebSocket.py", line 13, in module import websocket ImportError: No module named websocket
-
There is a lot of install work for this module. Did u guys run the install script per the readme?
-
@stickymongoose Hi! the websocket module is installed in the gateway module installation - can you double check you’ve ran README.md:41
* run `npm install` in module's directory to install websocket and exec modules.
also the local run of advSocket needs root access so please run it with the snippet above (e.g. with
sudo
in front, or from root user) -
Is there a fix to the before mentioned errors?
-
@Jo-Rien I’m not quite sure yet what are the problems, as sdetweil mentioned the module has quite extensive setup part elaborated in the readme.md. and also that one issue I’d like to see answered if the sudo fixed it.
I could probably try to do a “clean install” during July’s time and update the instructions if found something.
-
@mattileh
I followed your reame.md and everything is going according the readme until i start up the ble service and check the status. It is giving me a error on the local_blegatewaykickstart.sh status is 1/Failure.
When running ruuvitag -f it will show all ruuvitags just fine, digging in the code a little and the error it seems there is a problem with websocket and codeparser i get this as missing modules, maybe this helps to solve the problem? -
@Jo-Rien thanks!, yep its most likely about the missing modules - I did a “clean install” with the latest master (see merged PR#1 for details) and it seemed to install all related dependencies now with the install - script, could you try again now?
In case its still not working, would you like to debug this together for example in Discord?
-
I’m going to try if it works now, will let you know.
-
Did a clean install and it works like a charm now, thank you very much for all the effort taken…