britkat1980 / giv_tcp

TCP connection (from inverter) and MQTT implementation
71 stars 32 forks source link

Fix time parse #147

Closed JRascagneres closed 7 months ago

JRascagneres commented 7 months ago

This appears to fix my issue where I'd get serial number errors. After figuring this out and writing the code myself it turns out it was also fixed on the modbus library - https://github.com/dewet22/givenergy-modbus/commit/2b6cb3cff68485bc264956e5ad68db00da66f0b5

JRascagneres commented 7 months ago

I built the image locally and found that this DOES indeed fix the issue

2023-11-23 02:03:49 2023-11-23 02:03:49,565 - startup - [CRITICAL] - SUPERVISOR TOKEN does not exist
2023-11-23 02:03:51 2023-11-23 02:03:51,568 - startup - [CRITICAL] - Scanning network for inverters...
2023-11-23 02:03:54 2023-11-23 02:03:54,188 - startup - [CRITICAL] - No inverters found...
2023-11-23 02:03:54 2023-11-23 02:03:54,192 - startup - [CRITICAL] - Running Redis
2023-11-23 02:03:54 2023-11-23 02:03:54,193 - startup - [CRITICAL] - Setting up invertor: 1 of 1
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: using the "epoll" event method
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: nginx/1.20.2
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: OS: Linux 5.15.133.1-microsoft-standard-WSL2
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: start worker processes
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: start worker process 52
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: start worker process 53
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: start worker process 54
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: start worker process 55
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: start worker process 56
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: start worker process 57
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: start worker process 58
2023-11-23 02:03:54 2023/11/23 02:03:54 [notice] 48#48: start worker process 59
2023-11-23 02:03:54 2023-11-23 02:03:54,208 - startup - [CRITICAL] - Running RQ worker to queue and process givernergy-modbus calls
2023-11-23 02:03:54 2023-11-23 02:03:54,208 - startup - [CRITICAL] - Running Invertor read loop every 5s
2023-11-23 02:03:54 2023-11-23 02:03:54,208 - startup - [CRITICAL] - Subscribing MQTT Broker for control
2023-11-23 02:03:54 2023-11-23 02:03:54,209 - startup - [CRITICAL] - Starting Gunicorn on port 6345
2023-11-23 02:03:54 [2023-11-23 02:03:54 +0000] [63] [INFO] Starting gunicorn 21.2.0
2023-11-23 02:03:54 [2023-11-23 02:03:54 +0000] [63] [INFO] Listening at: http://0.0.0.0:6345 (63)
2023-11-23 02:03:54 [2023-11-23 02:03:54 +0000] [63] [INFO] Using worker: sync
2023-11-23 02:03:54 [2023-11-23 02:03:54 +0000] [64] [INFO] Booting worker with pid: 64
2023-11-23 02:03:54 [2023-11-23 02:03:54 +0000] [67] [INFO] Booting worker with pid: 67
2023-11-23 02:03:54 [2023-11-23 02:03:54 +0000] [68] [INFO] Booting worker with pid: 68
2023-11-23 02:03:54 2023-11-23 02:03:54,725 - Inv1 - mqtt_client -  [CRITICAL] - Connecting to MQTT broker for control- 192.168.4.22
2023-11-23 02:04:00 2023-11-23 02:04:00,747 - Inv1 - read        -  [INFO    ] - No day/Night rate info so reverting to day
2023-11-23 02:04:00 2023-11-23 02:04:00,747 - Inv1 - read        -  [CRITICAL] - First time running so saving AC Charge status
2023-11-23 02:04:00 2023-11-23 02:04:00,750 - Inv1 - read        -  [CRITICAL] - Publishing Home Assistant Discovery messages