Read the statement by Michael Teeuw here.
MMM-SensorGateway installation issue.
-
@jaanzter the internet keeps moving on, and this module hasn’t changed in 2 years .
maybe what worked before doesn’t anymore.
the conflict between python 2 and 3 is not new.maybe the author will look at it if u post an issue to the module GitHub page, and maybe not.
-
@sdetweil Thanks for replying…
I should have wrote a note “how to” when I first time got it working.
(this time I’m going to do it, if/when…)This is what should be expected:
- sudo service local_blegateway status
–> you should expect seeing the packets routed:
Oct 16 19:45:40 raspberrypi local_blegatewaykickstart.sh[962]: {‘temp’: 22, ‘battery’: 0, ‘state’: 1, ‘packet’: 189, ‘MAC’: ‘0A:1C:1C:12:18:04’, ‘type’: ‘movesense’}
Oct 16 19:45:40 raspberrypi local_blegatewaykickstart.sh[962]: {‘acceleration’: 1003.0807544759296, ‘pressure’: 1008.86, ‘temperature’: 20.17, ‘acceleration_y’: -9, ‘acceleration_x’: -9, ‘battery’: 3043, ‘acceleration_z’: 1003, 'data_forThis is what I get:
- sudo service local_blegateway status
local_blegateway.service - local_blegateway, Movesense and RuuviTag BLE advertisement message gateway to websocket interface
Loaded: loaded (/lib/systemd/system/local_blegateway.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2022-01-29 15:16:15 EET; 1s ago
Process: 4693 ExecStart=/usr/share/local_blegateway/local_blegatewaykickstart.sh (code=exited, status=1/FAILURE)
Main PID: 4693 (code=exited, status=1/FAILURE)
CPU: 186ms
-
@jaanzter said in MMM-SensorGateway installation issue.:
/usr/share/local_blegateway/local_blegatewaykickstart.sh
what happens when u try to run that from the command line?
-
@sdetweil
Traceback (most recent call last):
File “bleAdvWebSocket.py”, line 13, in
import websocket
ImportError: No module named websocketEdit:
I followed that path “/usr/share/local_blegateway/local_blegatewaykickstart.sh”
and looked inside of a file.cd /home/pi/MagicMirror/modules/MMM-SensorGateway/gateway/
sudo /usr/bin/env python bleAdvWebSocket.pyEdit2:
then tried that “sudo /usr/bin/env python bleAdvWebSocket.py”
python: can’t open file ‘bleAdvWebSocket.py’: [Errno 2] No such file or directory -
@jaanzter and there is the problem
ImportError: No module named websocket
the install of that part failed or the setup has changed
-
Yup.
This was the exact thread I also looked.
https://forum.magicmirror.builders/topic/11397/mmm-sensorgateway/7Let’s see… crossing fingers
-
I got old version running.
Found an old image.
(I didn’t get that to work because SDCard extension/adapter didn’t accept all the cards)
But I don’t stop trying to get newer version to work.@sdetweil Thank you for your help.