
I will test it ASAP (but give me a few days, there's a lot of other work to do before).
Good jobSpeedCore hat geschrieben: ↑Mi 29. Mai 2024, 19:00Thanks for the project! I cloned it on my Raspi, forwarded the port to it and configured the $IPAD and $PORT in the Astra module and also see the module sending the data to the correct ip and port, but the script output doesn't show any incoming traffic (should it do that?) I have a static public ip address.
Bildschirmfoto 2024-05-29 um 18.56.48.png
Code: Alles auswählen
Python version: 3.11.2
Silence-Server version: 2024.5.21
Silence-Server - Main Start
Silence-Server Main
Configuration loaded: (...)
2024-05-29 21:40:17,446 - [silence-server] - DEBUG - Logged configured
2024-05-29 21:40:17,447 - [silence-server] - INFO - Starting Silence Server
2024-05-29 21:40:17,447 - [SilenceServerService] - INFO - Starting SilenceServerService
2024-05-29 21:40:17,447 - [SilenceServerService] - INFO - Starting DBService
2024-05-29 21:40:17,447 - [DBService] - DEBUG - DBService init
2024-05-29 21:40:17,447 - [DBService] - INFO - DBService Start
2024-05-29 21:40:17,448 - [DBService] - DEBUG - Subscribing to socket
2024-05-29 21:40:17,448 - [CommandService] - DEBUG - CommandService init
2024-05-29 21:40:17,448 - [CommandService] - DEBUG - Subscribing to command_received
2024-05-29 21:40:17,449 - [CommandService] - INFO - CommandService Started
2024-05-29 21:40:17,449 - [silence-server] - INFO - Silence Server Started...!
2024-05-29 21:40:17,449 - [SilenceServerService] - INFO - socket created on port 31337
2024-05-29 21:40:17,449 - [SilenceServerService] - INFO - waiting for clients
2024-05-29 21:41:11,291 - [SilenceServerService] - INFO - client ('195.226.***.***', 41229) connected
2024-05-29 21:41:11,292 - [SilenceServerService] - INFO - client connnected: 0
2024-05-29 21:41:11,877 - [SilenceServerService] - INFO - receive data bytearray(b'$ASTRA;AT402;8608730********;;7.0.68.35;Z;0\r\n')
2024-05-29 21:41:11,878 - [DBService] - DEBUG - Received message from A: bytearray(b'$ASTRA;AT402;8608730********;;7.0.68.35;Z;0\r\n')
2024-05-29 21:41:12,106 - [SilenceServerService] - INFO - retrieved IMEI: 8608730********
2024-05-29 21:41:12,106 - [SilenceServerService] - INFO - bridge mode, try to connect to Silence server
2024-05-29 21:41:12,523 - [SilenceServerService] - INFO - connected to silence
2024-05-29 21:41:13,063 - [SilenceServerService] - INFO - receive data bytearray(b'\x06')
2024-05-29 21:41:13,063 - [DBService] - DEBUG - Received message from S: bytearray(b'\x06')
2024-05-29 21:41:23,078 - [SilenceServerService] - INFO - login correct sending ack
2024-05-29 21:41:31,212 - [SilenceServerService] - INFO - receive data bytearray(b"Z\x00^\x01\(...)
2024-05-29 21:41:31,418 - [SilenceServerService] - INFO - sent to silence
2024-05-29 21:41:36,375 - [SilenceServerService] - INFO - receive data bytearray(b'\x06')
2024-05-29 21:41:36,375 - [DBService] - DEBUG - Received message from S: bytearray(b'\x06')
2024-05-29 21:41:36,580 - [SilenceServerService] - INFO - sent to scooter the data from silence bytearray(b'\x06')
2024-05-29 21:41:38,382 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:41:53,601 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:42:08,819 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:42:24,038 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:42:39,255 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:42:54,474 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:43:09,692 - [SilenceServerService] - INFO - sent ack to scooter
Great! Do you see data on MQTT? If you use Home Assistant I can provide yaml configuration for status and commands.SpeedCore hat geschrieben: ↑Mi 29. Mai 2024, 21:44My bad, got a typo in the port forwarding![]()
Looking good now!Code: Alles auswählen
Python version: 3.11.2 Silence-Server version: 2024.5.21 Silence-Server - Main Start Silence-Server Main Configuration loaded: (...) 2024-05-29 21:40:17,446 - [silence-server] - DEBUG - Logged configured 2024-05-29 21:40:17,447 - [silence-server] - INFO - Starting Silence Server 2024-05-29 21:40:17,447 - [SilenceServerService] - INFO - Starting SilenceServerService 2024-05-29 21:40:17,447 - [SilenceServerService] - INFO - Starting DBService 2024-05-29 21:40:17,447 - [DBService] - DEBUG - DBService init 2024-05-29 21:40:17,447 - [DBService] - INFO - DBService Start 2024-05-29 21:40:17,448 - [DBService] - DEBUG - Subscribing to socket 2024-05-29 21:40:17,448 - [CommandService] - DEBUG - CommandService init 2024-05-29 21:40:17,448 - [CommandService] - DEBUG - Subscribing to command_received 2024-05-29 21:40:17,449 - [CommandService] - INFO - CommandService Started 2024-05-29 21:40:17,449 - [silence-server] - INFO - Silence Server Started...! 2024-05-29 21:40:17,449 - [SilenceServerService] - INFO - socket created on port 31337 2024-05-29 21:40:17,449 - [SilenceServerService] - INFO - waiting for clients 2024-05-29 21:41:11,291 - [SilenceServerService] - INFO - client ('195.226.***.***', 41229) connected 2024-05-29 21:41:11,292 - [SilenceServerService] - INFO - client connnected: 0 2024-05-29 21:41:11,877 - [SilenceServerService] - INFO - receive data bytearray(b'$ASTRA;AT402;8608730********;;7.0.68.35;Z;0\r\n') 2024-05-29 21:41:11,878 - [DBService] - DEBUG - Received message from A: bytearray(b'$ASTRA;AT402;8608730********;;7.0.68.35;Z;0\r\n') 2024-05-29 21:41:12,106 - [SilenceServerService] - INFO - retrieved IMEI: 8608730******** 2024-05-29 21:41:12,106 - [SilenceServerService] - INFO - bridge mode, try to connect to Silence server 2024-05-29 21:41:12,523 - [SilenceServerService] - INFO - connected to silence 2024-05-29 21:41:13,063 - [SilenceServerService] - INFO - receive data bytearray(b'\x06') 2024-05-29 21:41:13,063 - [DBService] - DEBUG - Received message from S: bytearray(b'\x06') 2024-05-29 21:41:23,078 - [SilenceServerService] - INFO - login correct sending ack 2024-05-29 21:41:31,212 - [SilenceServerService] - INFO - receive data bytearray(b"Z\x00^\x01\(...) 2024-05-29 21:41:31,418 - [SilenceServerService] - INFO - sent to silence 2024-05-29 21:41:36,375 - [SilenceServerService] - INFO - receive data bytearray(b'\x06') 2024-05-29 21:41:36,375 - [DBService] - DEBUG - Received message from S: bytearray(b'\x06') 2024-05-29 21:41:36,580 - [SilenceServerService] - INFO - sent to scooter the data from silence bytearray(b'\x06') 2024-05-29 21:41:38,382 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:41:53,601 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:42:08,819 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:42:24,038 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:42:39,255 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:42:54,474 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:43:09,692 - [SilenceServerService] - INFO - sent ack to scooter
Code: Alles auswählen
Python version: 3.12.3
Silence-Server version: 2024.5.21
Silence-Server - Main Start
Silence-Server Main
Configuration loaded: {'IMEI': '35xxxxxx', 'TCPServer': {'serverPORT': 31090, 'bridgeMode': True, 'silenceHOST': 'api.connectivity.silence.eco', 'silencePORT': 38955, 'SaveToDB': True, 'keepAliveInterval': 15, 'BMScellVoltage_pooling_interval': 600}, 'Logging': {'LogToFile': True, 'LogLevel': 50}, 'MQTT': {'Enabled': True, 'MQTTbroker': '192.xxx.xxx.xx', 'MQTTport': 1883, 'MQTTuser': 'xxx', 'MQTTpass': 'xxxx', 'TopicPrefix': 'mySilence'}}
2024-05-29 21:20:34,535 - [silence-server] - DEBUG - Logged configured
2024-05-29 21:20:34,535 - [silence-server] - INFO - Starting Silence Server
2024-05-29 21:20:34,535 - [SilenceServerService] - INFO - Starting SilenceServerService
2024-05-29 21:20:34,535 - [SilenceServerService] - INFO - Starting DBService
2024-05-29 21:20:34,535 - [DBService] - DEBUG - DBService init
2024-05-29 21:20:34,535 - [DBService] - INFO - DBService Start
2024-05-29 21:20:34,536 - [DBService] - DEBUG - Subscribing to socket
2024-05-29 21:20:34,537 - [CommandService] - DEBUG - CommandService init
2024-05-29 21:20:34,537 - [CommandService] - DEBUG - Subscribing to command_received
2024-05-29 21:20:34,538 - [CommandService] - INFO - CommandService Started
2024-05-29 21:20:34,538 - [silence-server] - INFO - Starting MQTT
2024-05-29 21:20:34,538 - [MQTTService] - DEBUG - MQTT Service initialized
2024-05-29 21:20:34,539 - [MQTTService] - INFO - Start MQTT Service
2024-05-29 21:20:34,539 - [SilenceServerService] - INFO - socket created on port 31090
2024-05-29 21:20:34,539 - [SilenceServerService] - INFO - waiting for clients
2024-05-29 21:20:34,542 - [MQTTService] - DEBUG - Pub/Sub on scooter_status
2024-05-29 21:20:34,543 - [MQTTService] - DEBUG - Pub/Sub on command_result
2024-05-29 21:20:34,544 - [silence-server] - INFO - Silence Server Started...!
2024-05-29 21:20:34,546 - [MQTTService] - INFO - Connected to broker with result code 0
2024-05-29 21:20:34,546 - [MQTTService] - DEBUG - MQTT Sub to mySilence/35xxxx/command/+
2024-05-29 21:20:38,415 - [SilenceServerService] - INFO - client ('195.226.133.37', 6262) connected
2024-05-29 21:20:38,415 - [SilenceServerService] - INFO - client connnected: 0
2024-05-29 21:20:39,109 - [SilenceServerService] - INFO - receive data bytearray(b'$ASTRA;SL240V8;35xxxxx;;7.0.70.35;Z;8\r\n')
2024-05-29 21:20:39,109 - [DBService] - DEBUG - Received message from A: bytearray(b'$ASTRA;SL240V8;35xxxxx;;7.0.70.35;Z;8\r\n')
2024-05-29 21:20:39,315 - [SilenceServerService] - INFO - retrieved IMEI: 35xxxxxx
2024-05-29 21:20:39,316 - [SilenceServerService] - INFO - bridge mode, try to connect to Silence server
2024-05-29 21:20:39,333 - [SilenceServerService] - INFO - connected to silence
2024-05-29 21:20:39,348 - [SilenceServerService] - INFO - receive data bytearray(b'\x06')
2024-05-29 21:20:39,348 - [DBService] - DEBUG - Received message from S: bytearray(b'\x06')
2024-05-29 21:20:49,364 - [SilenceServerService] - INFO - login correct sending ack
2024-05-29 21:21:04,388 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:21:19,614 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:21:34,839 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:21:50,066 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:22:05,291 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:22:20,517 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:22:35,742 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:22:50,968 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:23:06,194 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:23:15,353 - [SilenceServerService] - INFO - receive data bytearray(b'Z\x00b\x01\xb8\x00\x01\x00\x00\x00/S\x82C"\x00\x00\x00\x01\x00\x08>ZS\x82C!\x02\xfa\x9c\xf6\x00}\x06\x85\x00\x00\x03\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01{N\x14\x14\x02%\x00\x00\x00\x00\x10o\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\x00$\xdd\x98\x00\x02\x13\xc6\x00"m\xf7\x15\x00\x00\x00(\xf9\x00\x00\x00\x00\x00\tr')
2024-05-29 21:23:15,353 - [DBService] - DEBUG - Received message from A: bytearray(b'Z\x00b\x01\xb8\x00\x01\x00\x00\x00/S\x82C"\x00\x00\x00\x01\x00\x08>ZS\x82C!\x02\xfa\x9c\xf6\x00}\x06\x85\x00\x00\x03\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01{N\x14\x14\x02%\x00\x00\x00\x00\x10o\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\x00$\xdd\x98\x00\x02\x13\xc6\x00"m\xf7\x15\x00\x00\x00(\xf9\x00\x00\x00\x00\x00\tr')
2024-05-29 21:23:15,560 - [SilenceServerService] - INFO - received status from scooter
2024-05-29 21:23:15,560 - [messageParser] - DEBUG - Parse received message protocol Z from scooter: bytearray(b'Z\x00b\x01\xb8\x00\x01\x00\x00\x00/S\x82C"\x00\x00\x00\x01\x00\x08>ZS\x82C!\x02\xfa\x9c\xf6\x00}\x06\x85\x00\x00\x03\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01{N\x14\x14\x02%\x00\x00\x00\x00\x10o\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\x00$\xdd\x98\x00\x02\x13\xc6\x00"m\xf7\x15\x00\x00\x00(\xf9\x00\x00\x00\x00\x00\tr')
2024-05-29 21:23:15,560 - [messageParser] - DEBUG - Message protocol Z parsed: {'status': {'value': None, 'MQTT_topic': 'status'}, 'movementAlarm': {'value': None, 'MQTT_topic': 'movementAlarm'}, 'batteryIn': {'value': None, 'MQTT_topic': 'batteryIn'}, 'astraBatterySOC': {'value': None, 'MQTT_topic': 'astraBatterySOC'}, 'latitude': {'value': None, 'MQTT_topic': 'latitude'}, 'longitude': {'value': None, 'MQTT_topic': 'longitude'}, 'batterySOC': {'value': None, 'MQTT_topic': 'SOCbatteria'}, 'batteryTempMax': {'value': None, 'MQTT_topic': 'BatteryTempMax'}, 'batteryTempMin': {'value': None, 'MQTT_topic': 'BatteryTempMin'}, 'batteryVoltage': {'value': None, 'MQTT_topic': 'VOLTbatteria'}, 'batteryCurrent': {'value': None, 'MQTT_topic': 'batteryCurrent'}, 'motorTemp': {'value': 'None', 'MQTT_topic': 'motorTemp'}, 'inverterTemp': {'value': 'None', 'MQTT_topic': 'inverterTemp'}, 'speed': {'value': 'None', 'MQTT_topic': 'speed'}, 'range': {'value': None, 'MQTT_topic': 'range'}, 'chargedEnergy': {'value': None, 'MQTT_topic': 'chargedEnergy'}, 'RegeneratedEnergy': {'value': None, 'MQTT_topic': 'RegeneratedEnergy'}, 'DischargedEnergy': {'value': None, 'MQTT_topic': 'DischargedEnergy'}, 'ambientTemp': {'value': 'None', 'MQTT_topic': 'ambientTemp'}, 'odo': {'value': None, 'MQTT_topic': 'odo'}, 'VIN': {'value': None, 'MQTT_topic': 'VIN'}, 'Cell1Voltage': {'value': None, 'MQTT_topic': 'Cell1Voltage'}, 'Cell2Voltage': {'value': None, 'MQTT_topic': 'Cell2Voltage'}, 'Cell3Voltage': {'value': None, 'MQTT_topic': 'Cell3Voltage'}, 'Cell4Voltage': {'value': None, 'MQTT_topic': 'Cell4Voltage'}, 'Cell5Voltage': {'value': None, 'MQTT_topic': 'Cell5Voltage'}, 'Cell6Voltage': {'value': None, 'MQTT_topic': 'Cell6Voltage'}, 'Cell7Voltage': {'value': None, 'MQTT_topic': 'Cell7Voltage'}, 'Cell8Voltage': {'value': None, 'MQTT_topic': 'Cell8Voltage'}, 'Cell9Voltage': {'value': None, 'MQTT_topic': 'Cell9Voltage'}, 'Cell10Voltage': {'value': None, 'MQTT_topic': 'Cell10Voltage'}, 'Cell11Voltage': {'value': None, 'MQTT_topic': 'Cell11Voltage'}, 'Cell12Voltage': {'value': None, 'MQTT_topic': 'Cell12Voltage'}, 'Cell13Voltage': {'value': None, 'MQTT_topic': 'Cell13Voltage'}, 'Cell14Voltage': {'value': None, 'MQTT_topic': 'Cell14Voltage'}}
2024-05-29 21:23:15,560 - [MQTTService] - DEBUG - Publishing scooter status: {'status': {'value': None, 'MQTT_topic': 'status'}, 'movementAlarm': {'value': None, 'MQTT_topic': 'movementAlarm'}, 'batteryIn': {'value': None, 'MQTT_topic': 'batteryIn'}, 'astraBatterySOC': {'value': None, 'MQTT_topic': 'astraBatterySOC'}, 'latitude': {'value': None, 'MQTT_topic': 'latitude'}, 'longitude': {'value': None, 'MQTT_topic': 'longitude'}, 'batterySOC': {'value': None, 'MQTT_topic': 'SOCbatteria'}, 'batteryTempMax': {'value': None, 'MQTT_topic': 'BatteryTempMax'}, 'batteryTempMin': {'value': None, 'MQTT_topic': 'BatteryTempMin'}, 'batteryVoltage': {'value': None, 'MQTT_topic': 'VOLTbatteria'}, 'batteryCurrent': {'value': None, 'MQTT_topic': 'batteryCurrent'}, 'motorTemp': {'value': 'None', 'MQTT_topic': 'motorTemp'}, 'inverterTemp': {'value': 'None', 'MQTT_topic': 'inverterTemp'}, 'speed': {'value': 'None', 'MQTT_topic': 'speed'}, 'range': {'value': None, 'MQTT_topic': 'range'}, 'chargedEnergy': {'value': None, 'MQTT_topic': 'chargedEnergy'}, 'RegeneratedEnergy': {'value': None, 'MQTT_topic': 'RegeneratedEnergy'}, 'DischargedEnergy': {'value': None, 'MQTT_topic': 'DischargedEnergy'}, 'ambientTemp': {'value': 'None', 'MQTT_topic': 'ambientTemp'}, 'odo': {'value': None, 'MQTT_topic': 'odo'}, 'VIN': {'value': None, 'MQTT_topic': 'VIN'}, 'Cell1Voltage': {'value': None, 'MQTT_topic': 'Cell1Voltage'}, 'Cell2Voltage': {'value': None, 'MQTT_topic': 'Cell2Voltage'}, 'Cell3Voltage': {'value': None, 'MQTT_topic': 'Cell3Voltage'}, 'Cell4Voltage': {'value': None, 'MQTT_topic': 'Cell4Voltage'}, 'Cell5Voltage': {'value': None, 'MQTT_topic': 'Cell5Voltage'}, 'Cell6Voltage': {'value': None, 'MQTT_topic': 'Cell6Voltage'}, 'Cell7Voltage': {'value': None, 'MQTT_topic': 'Cell7Voltage'}, 'Cell8Voltage': {'value': None, 'MQTT_topic': 'Cell8Voltage'}, 'Cell9Voltage': {'value': None, 'MQTT_topic': 'Cell9Voltage'}, 'Cell10Voltage': {'value': None, 'MQTT_topic': 'Cell10Voltage'}, 'Cell11Voltage': {'value': None, 'MQTT_topic': 'Cell11Voltage'}, 'Cell12Voltage': {'value': None, 'MQTT_topic': 'Cell12Voltage'}, 'Cell13Voltage': {'value': None, 'MQTT_topic': 'Cell13Voltage'}, 'Cell14Voltage': {'value': None, 'MQTT_topic': 'Cell14Voltage'}}
2024-05-29 21:23:15,561 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxx/status/motorTemp] value: None
2024-05-29 21:23:15,561 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxx/status/inverterTemp] value: None
2024-05-29 21:23:15,561 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxx/status/speed] value: None
2024-05-29 21:23:15,562 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxx/status/ambientTemp] value: None
2024-05-29 21:23:15,562 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxxx/status/last-update] value: 1717010595.562439
2024-05-29 21:23:15,562 - [SilenceServerService] - INFO - sent to silence
2024-05-29 21:23:15,578 - [SilenceServerService] - INFO - receive data bytearray(b'\x06')
2024-05-29 21:23:15,578 - [DBService] - DEBUG - Received message from S: bytearray(b'\x06')
2024-05-29 21:23:15,785 - [SilenceServerService] - INFO - sent to scooter the data from silence bytearray(b'\x06')
2024-05-29 21:23:21,195 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:23:36,421 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:23:51,647 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:24:06,873 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:24:22,099 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:24:37,324 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:24:52,551 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:25:07,777 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:25:23,003 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:25:38,230 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:25:53,456 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:25:59,065 - [SilenceServerService] - INFO - receive data bytearray(b'$STMS')
2024-05-29 21:25:59,066 - [DBService] - DEBUG - Received message from S: bytearray(b'$STMS')
2024-05-29 21:25:59,072 - [SilenceServerService] - INFO - sent to scooter the data from silence bytearray(b'$STMS')
2024-05-29 21:26:00,675 - [SilenceServerService] - INFO - receive data bytearray(b'$STMS,0,78,20,20,549,0,4207,0,0,0,0,0,67,0,2416024,136134,2256375,21,08xxxxx,+8xxxxxxx,UCYS01300xxxxxxx\r\n')
2024-05-29 21:26:00,676 - [DBService] - DEBUG - Received message from A: bytearray(b'$STMS,0,78,20,20,549,0,4207,0,0,0,0,0,67,0,2416024,136134,2256375,21,08xxxxxx,+8xxxxxxx,UCYS01300xxxxxx\r\n')
2024-05-29 21:26:00,882 - [SilenceServerService] - INFO - received status from scooter
2024-05-29 21:26:00,882 - [messageParser] - DEBUG - Parse received message protocol astra from scooter: bytearray(b'$STMS,0,78,20,20,549,0,4207,0,0,0,0,0,67,0,2416024,136134,2256375,21,08xxxxxxx,+8xxxxx,UCYS01300xxxxx\r\n')
2024-05-29 21:26:00,882 - [messageParser] - DEBUG - Message protocol astra parsed: {'status': {'value': None, 'MQTT_topic': 'status'}, 'movementAlarm': {'value': None, 'MQTT_topic': 'movementAlarm'}, 'batteryIn': {'value': None, 'MQTT_topic': 'batteryIn'}, 'astraBatterySOC': {'value': None, 'MQTT_topic': 'astraBatterySOC'}, 'latitude': {'value': None, 'MQTT_topic': 'latitude'}, 'longitude': {'value': None, 'MQTT_topic': 'longitude'}, 'batterySOC': {'value': None, 'MQTT_topic': 'SOCbatteria'}, 'batteryTempMax': {'value': None, 'MQTT_topic': 'BatteryTempMax'}, 'batteryTempMin': {'value': None, 'MQTT_topic': 'BatteryTempMin'}, 'batteryVoltage': {'value': None, 'MQTT_topic': 'VOLTbatteria'}, 'batteryCurrent': {'value': None, 'MQTT_topic': 'batteryCurrent'}, 'motorTemp': {'value': 'None', 'MQTT_topic': 'motorTemp'}, 'inverterTemp': {'value': 'None', 'MQTT_topic': 'inverterTemp'}, 'speed': {'value': 'None', 'MQTT_topic': 'speed'}, 'range': {'value': None, 'MQTT_topic': 'range'}, 'chargedEnergy': {'value': None, 'MQTT_topic': 'chargedEnergy'}, 'RegeneratedEnergy': {'value': None, 'MQTT_topic': 'RegeneratedEnergy'}, 'DischargedEnergy': {'value': None, 'MQTT_topic': 'DischargedEnergy'}, 'ambientTemp': {'value': 'None', 'MQTT_topic': 'ambientTemp'}, 'odo': {'value': None, 'MQTT_topic': 'odo'}, 'VIN': {'value': None, 'MQTT_topic': 'VIN'}, 'Cell1Voltage': {'value': None, 'MQTT_topic': 'Cell1Voltage'}, 'Cell2Voltage': {'value': None, 'MQTT_topic': 'Cell2Voltage'}, 'Cell3Voltage': {'value': None, 'MQTT_topic': 'Cell3Voltage'}, 'Cell4Voltage': {'value': None, 'MQTT_topic': 'Cell4Voltage'}, 'Cell5Voltage': {'value': None, 'MQTT_topic': 'Cell5Voltage'}, 'Cell6Voltage': {'value': None, 'MQTT_topic': 'Cell6Voltage'}, 'Cell7Voltage': {'value': None, 'MQTT_topic': 'Cell7Voltage'}, 'Cell8Voltage': {'value': None, 'MQTT_topic': 'Cell8Voltage'}, 'Cell9Voltage': {'value': None, 'MQTT_topic': 'Cell9Voltage'}, 'Cell10Voltage': {'value': None, 'MQTT_topic': 'Cell10Voltage'}, 'Cell11Voltage': {'value': None, 'MQTT_topic': 'Cell11Voltage'}, 'Cell12Voltage': {'value': None, 'MQTT_topic': 'Cell12Voltage'}, 'Cell13Voltage': {'value': None, 'MQTT_topic': 'Cell13Voltage'}, 'Cell14Voltage': {'value': None, 'MQTT_topic': 'Cell14Voltage'}}
2024-05-29 21:26:00,882 - [MQTTService] - DEBUG - Publishing scooter status: {'status': {'value': None, 'MQTT_topic': 'status'}, 'movementAlarm': {'value': None, 'MQTT_topic': 'movementAlarm'}, 'batteryIn': {'value': None, 'MQTT_topic': 'batteryIn'}, 'astraBatterySOC': {'value': None, 'MQTT_topic': 'astraBatterySOC'}, 'latitude': {'value': None, 'MQTT_topic': 'latitude'}, 'longitude': {'value': None, 'MQTT_topic': 'longitude'}, 'batterySOC': {'value': None, 'MQTT_topic': 'SOCbatteria'}, 'batteryTempMax': {'value': None, 'MQTT_topic': 'BatteryTempMax'}, 'batteryTempMin': {'value': None, 'MQTT_topic': 'BatteryTempMin'}, 'batteryVoltage': {'value': None, 'MQTT_topic': 'VOLTbatteria'}, 'batteryCurrent': {'value': None, 'MQTT_topic': 'batteryCurrent'}, 'motorTemp': {'value': 'None', 'MQTT_topic': 'motorTemp'}, 'inverterTemp': {'value': 'None', 'MQTT_topic': 'inverterTemp'}, 'speed': {'value': 'None', 'MQTT_topic': 'speed'}, 'range': {'value': None, 'MQTT_topic': 'range'}, 'chargedEnergy': {'value': None, 'MQTT_topic': 'chargedEnergy'}, 'RegeneratedEnergy': {'value': None, 'MQTT_topic': 'RegeneratedEnergy'}, 'DischargedEnergy': {'value': None, 'MQTT_topic': 'DischargedEnergy'}, 'ambientTemp': {'value': 'None', 'MQTT_topic': 'ambientTemp'}, 'odo': {'value': None, 'MQTT_topic': 'odo'}, 'VIN': {'value': None, 'MQTT_topic': 'VIN'}, 'Cell1Voltage': {'value': None, 'MQTT_topic': 'Cell1Voltage'}, 'Cell2Voltage': {'value': None, 'MQTT_topic': 'Cell2Voltage'}, 'Cell3Voltage': {'value': None, 'MQTT_topic': 'Cell3Voltage'}, 'Cell4Voltage': {'value': None, 'MQTT_topic': 'Cell4Voltage'}, 'Cell5Voltage': {'value': None, 'MQTT_topic': 'Cell5Voltage'}, 'Cell6Voltage': {'value': None, 'MQTT_topic': 'Cell6Voltage'}, 'Cell7Voltage': {'value': None, 'MQTT_topic': 'Cell7Voltage'}, 'Cell8Voltage': {'value': None, 'MQTT_topic': 'Cell8Voltage'}, 'Cell9Voltage': {'value': None, 'MQTT_topic': 'Cell9Voltage'}, 'Cell10Voltage': {'value': None, 'MQTT_topic': 'Cell10Voltage'}, 'Cell11Voltage': {'value': None, 'MQTT_topic': 'Cell11Voltage'}, 'Cell12Voltage': {'value': None, 'MQTT_topic': 'Cell12Voltage'}, 'Cell13Voltage': {'value': None, 'MQTT_topic': 'Cell13Voltage'}, 'Cell14Voltage': {'value': None, 'MQTT_topic': 'Cell14Voltage'}}
2024-05-29 21:26:00,882 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxx/status/motorTemp] value: None
2024-05-29 21:26:00,883 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxx/status/inverterTemp] value: None
2024-05-29 21:26:00,883 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxx/status/speed] value: None
2024-05-29 21:26:00,883 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxxx/status/ambientTemp] value: None
2024-05-29 21:26:00,884 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxxx/status/last-update] value: 1717010760.8841224
2024-05-29 21:26:00,884 - [SilenceServerService] - INFO - sent to silence
2024-05-29 21:26:08,497 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:26:23,722 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:26:38,948 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:26:54,173 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:27:09,399 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:27:24,626 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:27:39,852 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:27:55,078 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:28:10,305 - [SilenceServerService] - INFO - sent ack to scooter
2024-05-29 21:28:15,315 - [SilenceServerService] - INFO - receive data bytearray(b'Z\x00b\x01\xb9\x00\x01\x00\x00\x00/S\x82DN\x00\x00\x00\x01\x00\x08>ZS\x82DM\x02\xfa\x9c\xfe\x00}\x06z\x00\x00\xa9\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01mN\x14\x14\x02%\x00\x00\x00\x00\x10o\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\x00$\xdd\x98\x00\x02\x13\xc6\x00"m\xf7\x15\x00\x00\x00(\xf9\x00\x00\x00\x00\x00;t')
2024-05-29 21:28:15,315 - [DBService] - DEBUG - Received message from A: bytearray(b'Z\x00b\x01\xb9\x00\x01\x00\x00\x00/S\x82DN\x00\x00\x00\x01\x00\x08>ZS\x82DM\x02\xfa\x9c\xfe\x00}\x06z\x00\x00\xa9\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01mN\x14\x14\x02%\x00\x00\x00\x00\x10o\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\x00$\xdd\x98\x00\x02\x13\xc6\x00"m\xf7\x15\x00\x00\x00(\xf9\x00\x00\x00\x00\x00;t')
2024-05-29 21:28:15,521 - [SilenceServerService] - INFO - received status from scooter
2024-05-29 21:28:15,521 - [messageParser] - DEBUG - Parse received message protocol Z from scooter: bytearray(b'Z\x00b\x01\xb9\x00\x01\x00\x00\x00/S\x82DN\x00\x00\x00\x01\x00\x08>ZS\x82DM\x02\xfa\x9c\xfe\x00}\x06z\x00\x00\xa9\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01mN\x14\x14\x02%\x00\x00\x00\x00\x10o\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\x00$\xdd\x98\x00\x02\x13\xc6\x00"m\xf7\x15\x00\x00\x00(\xf9\x00\x00\x00\x00\x00;t')
2024-05-29 21:28:15,522 - [messageParser] - DEBUG - Message protocol Z parsed: {'status': {'value': None, 'MQTT_topic': 'status'}, 'movementAlarm': {'value': None, 'MQTT_topic': 'movementAlarm'}, 'batteryIn': {'value': None, 'MQTT_topic': 'batteryIn'}, 'astraBatterySOC': {'value': None, 'MQTT_topic': 'astraBatterySOC'}, 'latitude': {'value': None, 'MQTT_topic': 'latitude'}, 'longitude': {'value': None, 'MQTT_topic': 'longitude'}, 'batterySOC': {'value': None, 'MQTT_topic': 'SOCbatteria'}, 'batteryTempMax': {'value': None, 'MQTT_topic': 'BatteryTempMax'}, 'batteryTempMin': {'value': None, 'MQTT_topic': 'BatteryTempMin'}, 'batteryVoltage': {'value': None, 'MQTT_topic': 'VOLTbatteria'}, 'batteryCurrent': {'value': None, 'MQTT_topic': 'batteryCurrent'}, 'motorTemp': {'value': 'None', 'MQTT_topic': 'motorTemp'}, 'inverterTemp': {'value': 'None', 'MQTT_topic': 'inverterTemp'}, 'speed': {'value': 'None', 'MQTT_topic': 'speed'}, 'range': {'value': None, 'MQTT_topic': 'range'}, 'chargedEnergy': {'value': None, 'MQTT_topic': 'chargedEnergy'}, 'RegeneratedEnergy': {'value': None, 'MQTT_topic': 'RegeneratedEnergy'}, 'DischargedEnergy': {'value': None, 'MQTT_topic': 'DischargedEnergy'}, 'ambientTemp': {'value': 'None', 'MQTT_topic': 'ambientTemp'}, 'odo': {'value': None, 'MQTT_topic': 'odo'}, 'VIN': {'value': None, 'MQTT_topic': 'VIN'}, 'Cell1Voltage': {'value': None, 'MQTT_topic': 'Cell1Voltage'}, 'Cell2Voltage': {'value': None, 'MQTT_topic': 'Cell2Voltage'}, 'Cell3Voltage': {'value': None, 'MQTT_topic': 'Cell3Voltage'}, 'Cell4Voltage': {'value': None, 'MQTT_topic': 'Cell4Voltage'}, 'Cell5Voltage': {'value': None, 'MQTT_topic': 'Cell5Voltage'}, 'Cell6Voltage': {'value': None, 'MQTT_topic': 'Cell6Voltage'}, 'Cell7Voltage': {'value': None, 'MQTT_topic': 'Cell7Voltage'}, 'Cell8Voltage': {'value': None, 'MQTT_topic': 'Cell8Voltage'}, 'Cell9Voltage': {'value': None, 'MQTT_topic': 'Cell9Voltage'}, 'Cell10Voltage': {'value': None, 'MQTT_topic': 'Cell10Voltage'}, 'Cell11Voltage': {'value': None, 'MQTT_topic': 'Cell11Voltage'}, 'Cell12Voltage': {'value': None, 'MQTT_topic': 'Cell12Voltage'}, 'Cell13Voltage': {'value': None, 'MQTT_topic': 'Cell13Voltage'}, 'Cell14Voltage': {'value': None, 'MQTT_topic': 'Cell14Voltage'}}
2024-05-29 21:28:15,522 - [MQTTService] - DEBUG - Publishing scooter status: {'status': {'value': None, 'MQTT_topic': 'status'}, 'movementAlarm': {'value': None, 'MQTT_topic': 'movementAlarm'}, 'batteryIn': {'value': None, 'MQTT_topic': 'batteryIn'}, 'astraBatterySOC': {'value': None, 'MQTT_topic': 'astraBatterySOC'}, 'latitude': {'value': None, 'MQTT_topic': 'latitude'}, 'longitude': {'value': None, 'MQTT_topic': 'longitude'}, 'batterySOC': {'value': None, 'MQTT_topic': 'SOCbatteria'}, 'batteryTempMax': {'value': None, 'MQTT_topic': 'BatteryTempMax'}, 'batteryTempMin': {'value': None, 'MQTT_topic': 'BatteryTempMin'}, 'batteryVoltage': {'value': None, 'MQTT_topic': 'VOLTbatteria'}, 'batteryCurrent': {'value': None, 'MQTT_topic': 'batteryCurrent'}, 'motorTemp': {'value': 'None', 'MQTT_topic': 'motorTemp'}, 'inverterTemp': {'value': 'None', 'MQTT_topic': 'inverterTemp'}, 'speed': {'value': 'None', 'MQTT_topic': 'speed'}, 'range': {'value': None, 'MQTT_topic': 'range'}, 'chargedEnergy': {'value': None, 'MQTT_topic': 'chargedEnergy'}, 'RegeneratedEnergy': {'value': None, 'MQTT_topic': 'RegeneratedEnergy'}, 'DischargedEnergy': {'value': None, 'MQTT_topic': 'DischargedEnergy'}, 'ambientTemp': {'value': 'None', 'MQTT_topic': 'ambientTemp'}, 'odo': {'value': None, 'MQTT_topic': 'odo'}, 'VIN': {'value': None, 'MQTT_topic': 'VIN'}, 'Cell1Voltage': {'value': None, 'MQTT_topic': 'Cell1Voltage'}, 'Cell2Voltage': {'value': None, 'MQTT_topic': 'Cell2Voltage'}, 'Cell3Voltage': {'value': None, 'MQTT_topic': 'Cell3Voltage'}, 'Cell4Voltage': {'value': None, 'MQTT_topic': 'Cell4Voltage'}, 'Cell5Voltage': {'value': None, 'MQTT_topic': 'Cell5Voltage'}, 'Cell6Voltage': {'value': None, 'MQTT_topic': 'Cell6Voltage'}, 'Cell7Voltage': {'value': None, 'MQTT_topic': 'Cell7Voltage'}, 'Cell8Voltage': {'value': None, 'MQTT_topic': 'Cell8Voltage'}, 'Cell9Voltage': {'value': None, 'MQTT_topic': 'Cell9Voltage'}, 'Cell10Voltage': {'value': None, 'MQTT_topic': 'Cell10Voltage'}, 'Cell11Voltage': {'value': None, 'MQTT_topic': 'Cell11Voltage'}, 'Cell12Voltage': {'value': None, 'MQTT_topic': 'Cell12Voltage'}, 'Cell13Voltage': {'value': None, 'MQTT_topic': 'Cell13Voltage'}, 'Cell14Voltage': {'value': None, 'MQTT_topic': 'Cell14Voltage'}}
2024-05-29 21:28:15,522 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxxx/status/motorTemp] value: None
2024-05-29 21:28:15,523 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxxxstatus/inverterTemp] value: None
2024-05-29 21:28:15,523 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxxx/status/speed] value: None
2024-05-29 21:28:15,523 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxxx/status/ambientTemp] value: None
2024-05-29 21:28:15,524 - [MQTTService] - DEBUG - Publishing on topic [mySilence/35xxxxx/status/last-update] value: 1717010895.5240157
2024-05-29 21:28:15,524 - [SilenceServerService] - INFO - sent to silence
2024-05-29 21:28:15,925 - [SilenceServerService] - INFO - receive data bytearray(b'\x06')
2024-05-29 21:28:15,925 - [DBService] - DEBUG - Received message from S: bytearray(b'\x06')
Code: Alles auswählen
2024-05-29 22:21:03,808 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/status] value: 0.0
2024-05-29 22:21:03,808 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/movementAlarm] value: 0
2024-05-29 22:21:03,808 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/batteryIn] value: 1
2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/astraBatterySOC] value: 97.0
2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/latitude] value: 47.******
2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/longitude] value: 11.******
2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/SOCbatteria] value: 35.0
2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/BatteryTempMax] value: 20.0
2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/BatteryTempMin] value: 19.0
2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/VOLTbatteria] value: 51.1
2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/batteryCurrent] value: 0.0
2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/motorTemp] value: None
2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/inverterTemp] value: None
2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/speed] value: None
2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/range] value: 36.0
2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/chargedEnergy] value: 121.27666666666667
2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/RegeneratedEnergy] value: 6.298333333333333
2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/DischargedEnergy] value: 109.98694444444445
2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/ambientTemp] value: None
2024-05-29 22:21:03,811 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/odo] value: 5944.0
2024-05-29 22:21:03,811 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/last-update] value: 1717014063.8112075
Code: Alles auswählen
[Unit]
Description=Silence Private Server
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=YOURUSER
WorkingDirectory=/home/YOURUSER/silence-private-server
ExecStart=/home/YOURUSER/silence-private-server/python3-silence/bin/python3 /home/YOURUSER/silence-private-server/silence-server.py
[Install]
WantedBy=multi-user.target
Code: Alles auswählen
sudo systemctl status silence-server
● silence-server.service - Silence Private Server
Loaded: loaded (/etc/systemd/system/silence-server.service; enabled; preset: enabled)
Active: active (running) since Wed 2024-05-29 23:22:07 CEST; 9min ago
Main PID: 328302 (python3)
Tasks: 6 (limit: 9262)
CPU: 410ms
CGroup: /system.slice/silence-server.service
└─328302 /home/***/silence-private-server/python3-silence/bin/python3 /home/***/silence-private-server/silence-server.py
May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,227 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/ambientTemp] value: None
May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,227 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/odo] value: 5944.0
May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,227 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/last-update] value: 1717018265.2272038
May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,227 - [SilenceServerService] - INFO - sent to silence
May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,252 - [SilenceServerService] - INFO - receive data bytearray(b'\x06')
May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,252 - [DBService] - DEBUG - Received message from S: bytearray(b'\x06')
May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,457 - [SilenceServerService] - INFO - sent to scooter the data from silence bytearray(b'\x06')
May 29 23:31:06 homebridge python3[328302]: 2024-05-29 23:31:06,058 - [SilenceServerService] - INFO - sent ack to scooter
May 29 23:31:21 homebridge python3[328302]: 2024-05-29 23:31:21,276 - [SilenceServerService] - INFO - sent ack to scooter
May 29 23:31:36 homebridge python3[328302]: 2024-05-29 23:31:36,487 - [SilenceServerService] - INFO - sent ack to scooter
Seems perfect, Honestly, I prefer Docker, on repo there's Dockerfile, you can build and run in docker without any python or service configurationSpeedCore hat geschrieben: ↑Mi 29. Mai 2024, 22:29I quickly set up mosquitto on my Raspi and I also see that it's publishing the scooter's values on the topics:
I also set up a quick systemd service (/etc/systemd/system/silence-server.service ) for better handling:Code: Alles auswählen
2024-05-29 22:21:03,808 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/status] value: 0.0 2024-05-29 22:21:03,808 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/movementAlarm] value: 0 2024-05-29 22:21:03,808 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/batteryIn] value: 1 2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/astraBatterySOC] value: 97.0 2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/latitude] value: 47.****** 2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/longitude] value: 11.****** 2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/SOCbatteria] value: 35.0 2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/BatteryTempMax] value: 20.0 2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/BatteryTempMin] value: 19.0 2024-05-29 22:21:03,809 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/VOLTbatteria] value: 51.1 2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/batteryCurrent] value: 0.0 2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/motorTemp] value: None 2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/inverterTemp] value: None 2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/speed] value: None 2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/range] value: 36.0 2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/chargedEnergy] value: 121.27666666666667 2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/RegeneratedEnergy] value: 6.298333333333333 2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/DischargedEnergy] value: 109.98694444444445 2024-05-29 22:21:03,810 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/ambientTemp] value: None 2024-05-29 22:21:03,811 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/odo] value: 5944.0 2024-05-29 22:21:03,811 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/last-update] value: 1717014063.8112075
Please note that I cloned the repo in my home dir and created a venv for python3, so your directories could vary.Code: Alles auswählen
[Unit] Description=Silence Private Server After=network.target StartLimitIntervalSec=0 [Service] Type=simple Restart=always RestartSec=1 User=YOURUSER WorkingDirectory=/home/YOURUSER/silence-private-server ExecStart=/home/YOURUSER/silence-private-server/python3-silence/bin/python3 /home/YOURUSER/silence-private-server/silence-server.py [Install] WantedBy=multi-user.target
Code: Alles auswählen
sudo systemctl status silence-server ● silence-server.service - Silence Private Server Loaded: loaded (/etc/systemd/system/silence-server.service; enabled; preset: enabled) Active: active (running) since Wed 2024-05-29 23:22:07 CEST; 9min ago Main PID: 328302 (python3) Tasks: 6 (limit: 9262) CPU: 410ms CGroup: /system.slice/silence-server.service └─328302 /home/***/silence-private-server/python3-silence/bin/python3 /home/***/silence-private-server/silence-server.py May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,227 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/ambientTemp] value: None May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,227 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/odo] value: 5944.0 May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,227 - [MQTTService] - DEBUG - Publishing on topic [home/silence-server/8608730********/status/last-update] value: 1717018265.2272038 May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,227 - [SilenceServerService] - INFO - sent to silence May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,252 - [SilenceServerService] - INFO - receive data bytearray(b'\x06') May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,252 - [DBService] - DEBUG - Received message from S: bytearray(b'\x06') May 29 23:31:05 homebridge python3[328302]: 2024-05-29 23:31:05,457 - [SilenceServerService] - INFO - sent to scooter the data from silence bytearray(b'\x06') May 29 23:31:06 homebridge python3[328302]: 2024-05-29 23:31:06,058 - [SilenceServerService] - INFO - sent ack to scooter May 29 23:31:21 homebridge python3[328302]: 2024-05-29 23:31:21,276 - [SilenceServerService] - INFO - sent ack to scooter May 29 23:31:36 homebridge python3[328302]: 2024-05-29 23:31:36,487 - [SilenceServerService] - INFO - sent ack to scooter
Strange... do you have Seat or Silence S01? Have you try to open Silence/Seat App and force update?Gerold hat geschrieben: ↑Mi 29. Mai 2024, 22:00I get the following results on my ubuntu server:
Maybe there is a problem with the parser.Code: Alles auswählen
Python version: 3.12.3 Silence-Server version: 2024.5.21 Silence-Server - Main Start Silence-Server Main Configuration loaded: {'IMEI': '35xxxxxx', 'TCPServer': {'serverPORT': 31090, 'bridgeMode': True, 'silenceHOST': 'api.connectivity.silence.eco', 'silencePORT': 38955, 'SaveToDB': True, 'keepAliveInterval': 15, 'BMScellVoltage_pooling_interval': 600}, 'Logging': {'LogToFile': True, 'LogLevel': 50}, 'MQTT': {'Enabled': True, 'MQTTbroker': '192.xxx.xxx.xx', 'MQTTport': 1883, 'MQTTuser': 'xxx', 'MQTTpass': 'xxxx', 'TopicPrefix': 'mySilence'}} 2024-05-29 21:20:34,535 - [silence-server] - DEBUG - Logged configured 2024-05-29 21:20:34,535 - [silence-server] - INFO - Starting Silence Server 2024-05-29 21:20:34,535 - [SilenceServerService] - INFO - Starting SilenceServerService 2024-05-29 21:20:34,535 - [SilenceServerService] - INFO - Starting DBService 2024-05-29 21:20:34,535 - [DBService] - DEBUG - DBService init 2024-05-29 21:20:34,535 - [DBService] - INFO - DBService Start 2024-05-29 21:20:34,536 - [DBService] - DEBUG - Subscribing to socket 2024-05-29 21:20:34,537 - [CommandService] - DEBUG - CommandService init 2024-05-29 21:20:34,537 - [CommandService] - DEBUG - Subscribing to command_received 2024-05-29 21:20:34,538 - [CommandService] - INFO - CommandService Started 2024-05-29 21:20:34,538 - [silence-server] - INFO - Starting MQTT 2024-05-29 21:20:34,538 - [MQTTService] - DEBUG - MQTT Service initialized 2024-05-29 21:20:34,539 - [MQTTService] - INFO - Start MQTT Service 2024-05-29 21:20:34,539 - [SilenceServerService] - INFO - socket created on port 31090 2024-05-29 21:20:34,539 - [SilenceServerService] - INFO - waiting for clients 2024-05-29 21:20:34,542 - [MQTTService] - DEBUG - Pub/Sub on scooter_status 2024-05-29 21:20:34,543 - [MQTTService] - DEBUG - Pub/Sub on command_result 2024-05-29 21:20:34,544 - [silence-server] - INFO - Silence Server Started...! 2024-05-29 21:20:34,546 - [MQTTService] - INFO - Connected to broker with result code 0 2024-05-29 21:20:34,546 - [MQTTService] - DEBUG - MQTT Sub to mySilence/35xxxx/command/+ 2024-05-29 21:20:38,415 - [SilenceServerService] - INFO - client ('195.226.133.37', 6262) connected 2024-05-29 21:20:38,415 - [SilenceServerService] - INFO - client connnected: 0 2024-05-29 21:20:39,109 - [SilenceServerService] - INFO - receive data bytearray(b'$ASTRA;SL240V8;35xxxxx;;7.0.70.35;Z;8\r\n') 2024-05-29 21:20:39,109 - [DBService] - DEBUG - Received message from A: bytearray(b'$ASTRA;SL240V8;35xxxxx;;7.0.70.35;Z;8\r\n') 2024-05-29 21:20:39,315 - [SilenceServerService] - INFO - retrieved IMEI: 35xxxxxx 2024-05-29 21:20:39,316 - [SilenceServerService] - INFO - bridge mode, try to connect to Silence server 2024-05-29 21:20:39,333 - [SilenceServerService] - INFO - connected to silence 2024-05-29 21:20:39,348 - [SilenceServerService] - INFO - receive data bytearray(b'\x06') 2024-05-29 21:20:39,348 - [DBService] - DEBUG - Received message from S: bytearray(b'\x06') 2024-05-29 21:20:49,364 - [SilenceServerService] - INFO - login correct sending ack 2024-05-29 21:21:04,388 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:21:19,614 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:21:34,839 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:21:50,066 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:22:05,291 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:22:20,517 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:22:35,742 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:22:50,968 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:23:06,194 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:23:15,353 - [SilenceServerService] - INFO - receive data bytearray(b'Z\x00b\x01\xb8\x00\x01\x00\x00\x00/S\x82C"\x00\x00\x00\x01\x00\x08>ZS\x82C!\x02\xfa\x9c\xf6\x00}\x06\x85\x00\x00\x03\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01{N\x14\x14\x02%\x00\x00\x00\x00\x10o\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\x00$\xdd\x98\x00\x02\x13\xc6\x00"m\xf7\x15\x00\x00\x00(\xf9\x00\x00\x00\x00\x00\tr') 2024-05-29 21:23:15,353 - [DBService] - DEBUG - Received message from A: bytearray(b'Z\x00b\x01\xb8\x00\x01\x00\x00\x00/S\x82C"\x00\x00\x00\x01\x00\x08>ZS\x82C!\x02\xfa\x9c\xf6\x00}\x06\x85\x00\x00\x03\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01{N\x14\x14\x02%\x00\x00\x00\x00\x10o\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\x00$\xdd\x98\x00\x02\x13\xc6\x00"m\xf7\x15\x00\x00\x00(\xf9\x00\x00\x00\x00\x00\tr') 2024-05-29 21:23:15,560 - [SilenceServerService] - INFO - received status from scooter 2024-05-29 21:23:15,560 - [messageParser] - DEBUG - Parse received message protocol Z from scooter: bytearray(b'Z\x00b\x01\xb8\x00\x01\x00\x00\x00/S\x82C"\x00\x00\x00\x01\x00\x08>ZS\x82C!\x02\xfa\x9c\xf6\x00}\x06\x85\x00\x00\x03\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01{N\x14\x14\x02%\x00\x00\x00\x00\x10o\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\x00$\xdd\x98\x00\x02\x13\xc6\x00"m\xf7\x15\x00\x00\x00(\xf9\x00\x00\x00\x00\x00\tr') 2024-05-29 21:23:15,560 - [messageParser] - DEBUG - Message protocol Z parsed: {'status': {'value': None, 'MQTT_topic': 'status'}, 'movementAlarm': {'value': None, 'MQTT_topic': 'movementAlarm'}, 'batteryIn': {'value': None, 'MQTT_topic': 'batteryIn'}, 'astraBatterySOC': {'value': None, 'MQTT_topic': 'astraBatterySOC'}, 'latitude': {'value': None, 'MQTT_topic': 'latitude'}, 'longitude': {'value': None, 'MQTT_topic': 'longitude'}, 'batterySOC': {'value': None, 'MQTT_topic': 'SOCbatteria'}, 'batteryTempMax': {'value': None, 'MQTT_topic': 'BatteryTempMax'}, 'batteryTempMin': {'value': None, 'MQTT_topic': 'BatteryTempMin'}, 'batteryVoltage': {'value': None, 'MQTT_topic': 'VOLTbatteria'}, 'batteryCurrent': {'value': None, 'MQTT_topic': 'batteryCurrent'}, 'motorTemp': {'value': 'None', 'MQTT_topic': 'motorTemp'}, 'inverterTemp': {'value': 'None', 'MQTT_topic': 'inverterTemp'}, 'speed': {'value': 'None', 'MQTT_topic': 'speed'}, 'range': {'value': None, 'MQTT_topic': 'range'}, 'chargedEnergy': {'value': None, 'MQTT_topic': 'chargedEnergy'}, 'RegeneratedEnergy': {'value': None, 'MQTT_topic': 'RegeneratedEnergy'}, 'DischargedEnergy': {'value': None, 'MQTT_topic': 'DischargedEnergy'}, 'ambientTemp': {'value': 'None', 'MQTT_topic': 'ambientTemp'}, 'odo': {'value': None, 'MQTT_topic': 'odo'}, 'VIN': {'value': None, 'MQTT_topic': 'VIN'}, 'Cell1Voltage': {'value': None, 'MQTT_topic': 'Cell1Voltage'}, 'Cell2Voltage': {'value': None, 'MQTT_topic': 'Cell2Voltage'}, 'Cell3Voltage': {'value': None, 'MQTT_topic': 'Cell3Voltage'}, 'Cell4Voltage': {'value': None, 'MQTT_topic': 'Cell4Voltage'}, 'Cell5Voltage': {'value': None, 'MQTT_topic': 'Cell5Voltage'}, 'Cell6Voltage': {'value': None, 'MQTT_topic': 'Cell6Voltage'}, 'Cell7Voltage': {'value': None, 'MQTT_topic': 'Cell7Voltage'}, 'Cell8Voltage': {'value': None, 'MQTT_topic': 'Cell8Voltage'}, 'Cell9Voltage': {'value': None, 'MQTT_topic': 'Cell9Voltage'}, 'Cell10Voltage': {'value': None, 'MQTT_topic': 'Cell10Voltage'}, 'Cell11Voltage': {'value': None, 'MQTT_topic': 'Cell11Voltage'}, 'Cell12Voltage': {'value': None, 'MQTT_topic': 'Cell12Voltage'}, 'Cell13Voltage': {'value': None, 'MQTT_topic': 'Cell13Voltage'}, 'Cell14Voltage': {'value': None, 'MQTT_topic': 'Cell14Voltage'}} 2024-05-29 21:23:15,560 - [MQTTService] - DEBUG - Publishing scooter status: {'status': {'value': None, 'MQTT_topic': 'status'}, 'movementAlarm': {'value': None, 'MQTT_topic': 'movementAlarm'}, 'batteryIn': {'value': None, 'MQTT_topic': 'batteryIn'}, 'astraBatterySOC': {'value': None, 'MQTT_topic': 'astraBatterySOC'}, 'latitude': {'value': None, 'MQTT_topic': 'latitude'}, 'longitude': {'value': None, 'MQTT_topic': 'longitude'}, 'batterySOC': {'value': None, 'MQTT_topic': 'SOCbatteria'}, 'batteryTempMax': {'value': None, 'MQTT_topic': 'BatteryTempMax'}, 'batteryTempMin': {'value': None, 'MQTT_topic': 'BatteryTempMin'}, 'batteryVoltage': {'value': None, 'MQTT_topic': 'VOLTbatteria'}, 'batteryCurrent': {'value': None, 'MQTT_topic': 'batteryCurrent'}, 'motorTemp': {'value': 'None', 'MQTT_topic': 'motorTemp'}, 'inverterTemp': {'value': 'None', 'MQTT_topic': 'inverterTemp'}, 'speed': {'value': 'None', 'MQTT_topic': 'speed'}, 'range': {'value': None, 'MQTT_topic': 'range'}, 'chargedEnergy': {'value': None, 'MQTT_topic': 'chargedEnergy'}, 'RegeneratedEnergy': {'value': None, 'MQTT_topic': 'RegeneratedEnergy'}, 'DischargedEnergy': {'value': None, 'MQTT_topic': 'DischargedEnergy'}, 'ambientTemp': {'value': 'None', 'MQTT_topic': 'ambientTemp'}, 'odo': {'value': None, 'MQTT_topic': 'odo'}, 'VIN': {'value': None, 'MQTT_topic': 'VIN'}, 'Cell1Voltage': {'value': None, 'MQTT_topic': 'Cell1Voltage'}, 'Cell2Voltage': {'value': None, 'MQTT_topic': 'Cell2Voltage'}, 'Cell3Voltage': {'value': None, 'MQTT_topic': 'Cell3Voltage'}, 'Cell4Voltage': {'value': None, 'MQTT_topic': 'Cell4Voltage'}, 'Cell5Voltage': {'value': None, 'MQTT_topic': 'Cell5Voltage'}, 'Cell6Voltage': {'value': None, 'MQTT_topic': 'Cell6Voltage'}, 'Cell7Voltage': {'value': None, 'MQTT_topic': 'Cell7Voltage'}, 'Cell8Voltage': {'value': None, 'MQTT_topic': 'Cell8Voltage'}, 'Cell9Voltage': {'value': None, 'MQTT_topic': 'Cell9Voltage'}, 'Cell10Voltage': {'value': None, 'MQTT_topic': 'Cell10Voltage'}, 'Cell11Voltage': {'value': None, 'MQTT_topic': 'Cell11Voltage'}, 'Cell12Voltage': {'value': None, 'MQTT_topic': 'Cell12Voltage'}, 'Cell13Voltage': {'value': None, 'MQTT_topic': 'Cell13Voltage'}, 'Cell14Voltage': {'value': None, 'MQTT_topic': 'Cell14Voltage'}} 2024-05-29 21:23:15,561 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/motorTemp] value: None 2024-05-29 21:23:15,561 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/inverterTemp] value: None 2024-05-29 21:23:15,561 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/speed] value: None 2024-05-29 21:23:15,562 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/ambientTemp] value: None 2024-05-29 21:23:15,562 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/last-update] value: 1717010595.562439 2024-05-29 21:23:15,562 - [SilenceServerService] - INFO - sent to silence 2024-05-29 21:23:15,578 - [SilenceServerService] - INFO - receive data bytearray(b'\x06') 2024-05-29 21:23:15,578 - [DBService] - DEBUG - Received message from S: bytearray(b'\x06') 2024-05-29 21:23:15,785 - [SilenceServerService] - INFO - sent to scooter the data from silence bytearray(b'\x06') 2024-05-29 21:23:21,195 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:23:36,421 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:23:51,647 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:24:06,873 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:24:22,099 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:24:37,324 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:24:52,551 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:25:07,777 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:25:23,003 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:25:38,230 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:25:53,456 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:25:59,065 - [SilenceServerService] - INFO - receive data bytearray(b'$STMS') 2024-05-29 21:25:59,066 - [DBService] - DEBUG - Received message from S: bytearray(b'$STMS') 2024-05-29 21:25:59,072 - [SilenceServerService] - INFO - sent to scooter the data from silence bytearray(b'$STMS') 2024-05-29 21:26:00,675 - [SilenceServerService] - INFO - receive data bytearray(b'$STMS,0,78,20,20,549,0,4207,0,0,0,0,0,67,0,2416024,136134,2256375,21,08xxxxx,+8xxxxxxx,UCYS01300xxxxxxx\r\n') 2024-05-29 21:26:00,676 - [DBService] - DEBUG - Received message from A: bytearray(b'$STMS,0,78,20,20,549,0,4207,0,0,0,0,0,67,0,2416024,136134,2256375,21,08xxxxxx,+8xxxxxxx,UCYS01300xxxxxx\r\n') 2024-05-29 21:26:00,882 - [SilenceServerService] - INFO - received status from scooter 2024-05-29 21:26:00,882 - [messageParser] - DEBUG - Parse received message protocol astra from scooter: bytearray(b'$STMS,0,78,20,20,549,0,4207,0,0,0,0,0,67,0,2416024,136134,2256375,21,08xxxxxxx,+8xxxxx,UCYS01300xxxxx\r\n') 2024-05-29 21:26:00,882 - [messageParser] - DEBUG - Message protocol astra parsed: {'status': {'value': None, 'MQTT_topic': 'status'}, 'movementAlarm': {'value': None, 'MQTT_topic': 'movementAlarm'}, 'batteryIn': {'value': None, 'MQTT_topic': 'batteryIn'}, 'astraBatterySOC': {'value': None, 'MQTT_topic': 'astraBatterySOC'}, 'latitude': {'value': None, 'MQTT_topic': 'latitude'}, 'longitude': {'value': None, 'MQTT_topic': 'longitude'}, 'batterySOC': {'value': None, 'MQTT_topic': 'SOCbatteria'}, 'batteryTempMax': {'value': None, 'MQTT_topic': 'BatteryTempMax'}, 'batteryTempMin': {'value': None, 'MQTT_topic': 'BatteryTempMin'}, 'batteryVoltage': {'value': None, 'MQTT_topic': 'VOLTbatteria'}, 'batteryCurrent': {'value': None, 'MQTT_topic': 'batteryCurrent'}, 'motorTemp': {'value': 'None', 'MQTT_topic': 'motorTemp'}, 'inverterTemp': {'value': 'None', 'MQTT_topic': 'inverterTemp'}, 'speed': {'value': 'None', 'MQTT_topic': 'speed'}, 'range': {'value': None, 'MQTT_topic': 'range'}, 'chargedEnergy': {'value': None, 'MQTT_topic': 'chargedEnergy'}, 'RegeneratedEnergy': {'value': None, 'MQTT_topic': 'RegeneratedEnergy'}, 'DischargedEnergy': {'value': None, 'MQTT_topic': 'DischargedEnergy'}, 'ambientTemp': {'value': 'None', 'MQTT_topic': 'ambientTemp'}, 'odo': {'value': None, 'MQTT_topic': 'odo'}, 'VIN': {'value': None, 'MQTT_topic': 'VIN'}, 'Cell1Voltage': {'value': None, 'MQTT_topic': 'Cell1Voltage'}, 'Cell2Voltage': {'value': None, 'MQTT_topic': 'Cell2Voltage'}, 'Cell3Voltage': {'value': None, 'MQTT_topic': 'Cell3Voltage'}, 'Cell4Voltage': {'value': None, 'MQTT_topic': 'Cell4Voltage'}, 'Cell5Voltage': {'value': None, 'MQTT_topic': 'Cell5Voltage'}, 'Cell6Voltage': {'value': None, 'MQTT_topic': 'Cell6Voltage'}, 'Cell7Voltage': {'value': None, 'MQTT_topic': 'Cell7Voltage'}, 'Cell8Voltage': {'value': None, 'MQTT_topic': 'Cell8Voltage'}, 'Cell9Voltage': {'value': None, 'MQTT_topic': 'Cell9Voltage'}, 'Cell10Voltage': {'value': None, 'MQTT_topic': 'Cell10Voltage'}, 'Cell11Voltage': {'value': None, 'MQTT_topic': 'Cell11Voltage'}, 'Cell12Voltage': {'value': None, 'MQTT_topic': 'Cell12Voltage'}, 'Cell13Voltage': {'value': None, 'MQTT_topic': 'Cell13Voltage'}, 'Cell14Voltage': {'value': None, 'MQTT_topic': 'Cell14Voltage'}} 2024-05-29 21:26:00,882 - [MQTTService] - DEBUG - Publishing scooter status: {'status': {'value': None, 'MQTT_topic': 'status'}, 'movementAlarm': {'value': None, 'MQTT_topic': 'movementAlarm'}, 'batteryIn': {'value': None, 'MQTT_topic': 'batteryIn'}, 'astraBatterySOC': {'value': None, 'MQTT_topic': 'astraBatterySOC'}, 'latitude': {'value': None, 'MQTT_topic': 'latitude'}, 'longitude': {'value': None, 'MQTT_topic': 'longitude'}, 'batterySOC': {'value': None, 'MQTT_topic': 'SOCbatteria'}, 'batteryTempMax': {'value': None, 'MQTT_topic': 'BatteryTempMax'}, 'batteryTempMin': {'value': None, 'MQTT_topic': 'BatteryTempMin'}, 'batteryVoltage': {'value': None, 'MQTT_topic': 'VOLTbatteria'}, 'batteryCurrent': {'value': None, 'MQTT_topic': 'batteryCurrent'}, 'motorTemp': {'value': 'None', 'MQTT_topic': 'motorTemp'}, 'inverterTemp': {'value': 'None', 'MQTT_topic': 'inverterTemp'}, 'speed': {'value': 'None', 'MQTT_topic': 'speed'}, 'range': {'value': None, 'MQTT_topic': 'range'}, 'chargedEnergy': {'value': None, 'MQTT_topic': 'chargedEnergy'}, 'RegeneratedEnergy': {'value': None, 'MQTT_topic': 'RegeneratedEnergy'}, 'DischargedEnergy': {'value': None, 'MQTT_topic': 'DischargedEnergy'}, 'ambientTemp': {'value': 'None', 'MQTT_topic': 'ambientTemp'}, 'odo': {'value': None, 'MQTT_topic': 'odo'}, 'VIN': {'value': None, 'MQTT_topic': 'VIN'}, 'Cell1Voltage': {'value': None, 'MQTT_topic': 'Cell1Voltage'}, 'Cell2Voltage': {'value': None, 'MQTT_topic': 'Cell2Voltage'}, 'Cell3Voltage': {'value': None, 'MQTT_topic': 'Cell3Voltage'}, 'Cell4Voltage': {'value': None, 'MQTT_topic': 'Cell4Voltage'}, 'Cell5Voltage': {'value': None, 'MQTT_topic': 'Cell5Voltage'}, 'Cell6Voltage': {'value': None, 'MQTT_topic': 'Cell6Voltage'}, 'Cell7Voltage': {'value': None, 'MQTT_topic': 'Cell7Voltage'}, 'Cell8Voltage': {'value': None, 'MQTT_topic': 'Cell8Voltage'}, 'Cell9Voltage': {'value': None, 'MQTT_topic': 'Cell9Voltage'}, 'Cell10Voltage': {'value': None, 'MQTT_topic': 'Cell10Voltage'}, 'Cell11Voltage': {'value': None, 'MQTT_topic': 'Cell11Voltage'}, 'Cell12Voltage': {'value': None, 'MQTT_topic': 'Cell12Voltage'}, 'Cell13Voltage': {'value': None, 'MQTT_topic': 'Cell13Voltage'}, 'Cell14Voltage': {'value': None, 'MQTT_topic': 'Cell14Voltage'}} 2024-05-29 21:26:00,882 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/motorTemp] value: None 2024-05-29 21:26:00,883 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/inverterTemp] value: None 2024-05-29 21:26:00,883 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/speed] value: None 2024-05-29 21:26:00,883 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/ambientTemp] value: None 2024-05-29 21:26:00,884 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/last-update] value: 1717010760.8841224 2024-05-29 21:26:00,884 - [SilenceServerService] - INFO - sent to silence 2024-05-29 21:26:08,497 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:26:23,722 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:26:38,948 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:26:54,173 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:27:09,399 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:27:24,626 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:27:39,852 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:27:55,078 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:28:10,305 - [SilenceServerService] - INFO - sent ack to scooter 2024-05-29 21:28:15,315 - [SilenceServerService] - INFO - receive data bytearray(b'Z\x00b\x01\xb9\x00\x01\x00\x00\x00/S\x82DN\x00\x00\x00\x01\x00\x08>ZS\x82DM\x02\xfa\x9c\xfe\x00}\x06z\x00\x00\xa9\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01mN\x14\x14\x02%\x00\x00\x00\x00\x10o\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\x00$\xdd\x98\x00\x02\x13\xc6\x00"m\xf7\x15\x00\x00\x00(\xf9\x00\x00\x00\x00\x00;t') 2024-05-29 21:28:15,315 - [DBService] - DEBUG - Received message from A: bytearray(b'Z\x00b\x01\xb9\x00\x01\x00\x00\x00/S\x82DN\x00\x00\x00\x01\x00\x08>ZS\x82DM\x02\xfa\x9c\xfe\x00}\x06z\x00\x00\xa9\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01mN\x14\x14\x02%\x00\x00\x00\x00\x10o\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\x00$\xdd\x98\x00\x02\x13\xc6\x00"m\xf7\x15\x00\x00\x00(\xf9\x00\x00\x00\x00\x00;t') 2024-05-29 21:28:15,521 - [SilenceServerService] - INFO - received status from scooter 2024-05-29 21:28:15,521 - [messageParser] - DEBUG - Parse received message protocol Z from scooter: bytearray(b'Z\x00b\x01\xb9\x00\x01\x00\x00\x00/S\x82DN\x00\x00\x00\x01\x00\x08>ZS\x82DM\x02\xfa\x9c\xfe\x00}\x06z\x00\x00\xa9\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01mN\x14\x14\x02%\x00\x00\x00\x00\x10o\x00\x00\x00\x00\x00\x00\x00C\x00\x00\x00\x00\x00$\xdd\x98\x00\x02\x13\xc6\x00"m\xf7\x15\x00\x00\x00(\xf9\x00\x00\x00\x00\x00;t') 2024-05-29 21:28:15,522 - [messageParser] - DEBUG - Message protocol Z parsed: {'status': {'value': None, 'MQTT_topic': 'status'}, 'movementAlarm': {'value': None, 'MQTT_topic': 'movementAlarm'}, 'batteryIn': {'value': None, 'MQTT_topic': 'batteryIn'}, 'astraBatterySOC': {'value': None, 'MQTT_topic': 'astraBatterySOC'}, 'latitude': {'value': None, 'MQTT_topic': 'latitude'}, 'longitude': {'value': None, 'MQTT_topic': 'longitude'}, 'batterySOC': {'value': None, 'MQTT_topic': 'SOCbatteria'}, 'batteryTempMax': {'value': None, 'MQTT_topic': 'BatteryTempMax'}, 'batteryTempMin': {'value': None, 'MQTT_topic': 'BatteryTempMin'}, 'batteryVoltage': {'value': None, 'MQTT_topic': 'VOLTbatteria'}, 'batteryCurrent': {'value': None, 'MQTT_topic': 'batteryCurrent'}, 'motorTemp': {'value': 'None', 'MQTT_topic': 'motorTemp'}, 'inverterTemp': {'value': 'None', 'MQTT_topic': 'inverterTemp'}, 'speed': {'value': 'None', 'MQTT_topic': 'speed'}, 'range': {'value': None, 'MQTT_topic': 'range'}, 'chargedEnergy': {'value': None, 'MQTT_topic': 'chargedEnergy'}, 'RegeneratedEnergy': {'value': None, 'MQTT_topic': 'RegeneratedEnergy'}, 'DischargedEnergy': {'value': None, 'MQTT_topic': 'DischargedEnergy'}, 'ambientTemp': {'value': 'None', 'MQTT_topic': 'ambientTemp'}, 'odo': {'value': None, 'MQTT_topic': 'odo'}, 'VIN': {'value': None, 'MQTT_topic': 'VIN'}, 'Cell1Voltage': {'value': None, 'MQTT_topic': 'Cell1Voltage'}, 'Cell2Voltage': {'value': None, 'MQTT_topic': 'Cell2Voltage'}, 'Cell3Voltage': {'value': None, 'MQTT_topic': 'Cell3Voltage'}, 'Cell4Voltage': {'value': None, 'MQTT_topic': 'Cell4Voltage'}, 'Cell5Voltage': {'value': None, 'MQTT_topic': 'Cell5Voltage'}, 'Cell6Voltage': {'value': None, 'MQTT_topic': 'Cell6Voltage'}, 'Cell7Voltage': {'value': None, 'MQTT_topic': 'Cell7Voltage'}, 'Cell8Voltage': {'value': None, 'MQTT_topic': 'Cell8Voltage'}, 'Cell9Voltage': {'value': None, 'MQTT_topic': 'Cell9Voltage'}, 'Cell10Voltage': {'value': None, 'MQTT_topic': 'Cell10Voltage'}, 'Cell11Voltage': {'value': None, 'MQTT_topic': 'Cell11Voltage'}, 'Cell12Voltage': {'value': None, 'MQTT_topic': 'Cell12Voltage'}, 'Cell13Voltage': {'value': None, 'MQTT_topic': 'Cell13Voltage'}, 'Cell14Voltage': {'value': None, 'MQTT_topic': 'Cell14Voltage'}} 2024-05-29 21:28:15,522 - [MQTTService] - DEBUG - Publishing scooter status: {'status': {'value': None, 'MQTT_topic': 'status'}, 'movementAlarm': {'value': None, 'MQTT_topic': 'movementAlarm'}, 'batteryIn': {'value': None, 'MQTT_topic': 'batteryIn'}, 'astraBatterySOC': {'value': None, 'MQTT_topic': 'astraBatterySOC'}, 'latitude': {'value': None, 'MQTT_topic': 'latitude'}, 'longitude': {'value': None, 'MQTT_topic': 'longitude'}, 'batterySOC': {'value': None, 'MQTT_topic': 'SOCbatteria'}, 'batteryTempMax': {'value': None, 'MQTT_topic': 'BatteryTempMax'}, 'batteryTempMin': {'value': None, 'MQTT_topic': 'BatteryTempMin'}, 'batteryVoltage': {'value': None, 'MQTT_topic': 'VOLTbatteria'}, 'batteryCurrent': {'value': None, 'MQTT_topic': 'batteryCurrent'}, 'motorTemp': {'value': 'None', 'MQTT_topic': 'motorTemp'}, 'inverterTemp': {'value': 'None', 'MQTT_topic': 'inverterTemp'}, 'speed': {'value': 'None', 'MQTT_topic': 'speed'}, 'range': {'value': None, 'MQTT_topic': 'range'}, 'chargedEnergy': {'value': None, 'MQTT_topic': 'chargedEnergy'}, 'RegeneratedEnergy': {'value': None, 'MQTT_topic': 'RegeneratedEnergy'}, 'DischargedEnergy': {'value': None, 'MQTT_topic': 'DischargedEnergy'}, 'ambientTemp': {'value': 'None', 'MQTT_topic': 'ambientTemp'}, 'odo': {'value': None, 'MQTT_topic': 'odo'}, 'VIN': {'value': None, 'MQTT_topic': 'VIN'}, 'Cell1Voltage': {'value': None, 'MQTT_topic': 'Cell1Voltage'}, 'Cell2Voltage': {'value': None, 'MQTT_topic': 'Cell2Voltage'}, 'Cell3Voltage': {'value': None, 'MQTT_topic': 'Cell3Voltage'}, 'Cell4Voltage': {'value': None, 'MQTT_topic': 'Cell4Voltage'}, 'Cell5Voltage': {'value': None, 'MQTT_topic': 'Cell5Voltage'}, 'Cell6Voltage': {'value': None, 'MQTT_topic': 'Cell6Voltage'}, 'Cell7Voltage': {'value': None, 'MQTT_topic': 'Cell7Voltage'}, 'Cell8Voltage': {'value': None, 'MQTT_topic': 'Cell8Voltage'}, 'Cell9Voltage': {'value': None, 'MQTT_topic': 'Cell9Voltage'}, 'Cell10Voltage': {'value': None, 'MQTT_topic': 'Cell10Voltage'}, 'Cell11Voltage': {'value': None, 'MQTT_topic': 'Cell11Voltage'}, 'Cell12Voltage': {'value': None, 'MQTT_topic': 'Cell12Voltage'}, 'Cell13Voltage': {'value': None, 'MQTT_topic': 'Cell13Voltage'}, 'Cell14Voltage': {'value': None, 'MQTT_topic': 'Cell14Voltage'}} 2024-05-29 21:28:15,522 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/motorTemp] value: None 2024-05-29 21:28:15,523 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/inverterTemp] value: None 2024-05-29 21:28:15,523 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/speed] value: None 2024-05-29 21:28:15,523 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/ambientTemp] value: None 2024-05-29 21:28:15,524 - [MQTTService] - DEBUG - Publishing on topic [mySilence/358887095147581/status/last-update] value: 1717010895.5240157 2024-05-29 21:28:15,524 - [SilenceServerService] - INFO - sent to silence 2024-05-29 21:28:15,925 - [SilenceServerService] - INFO - receive data bytearray(b'\x06') 2024-05-29 21:28:15,925 - [DBService] - DEBUG - Received message from S: bytearray(b'\x06')
Mitglieder in diesem Forum: Yandex [Bot] und 8 Gäste