Comments (4)
I'll check this. Best to throw an exception and try to reconnect that interface n-times.
from hometop_ht3.
@joed74
Please update your system with that modified files:
- ~/HT3/sw/lib/ht_proxy_if.py
- ~/HT3/sw/lib/ht_release.py
After this update stop and restart that processes with:
- sudo systemctl stop ht_collgate.service
- sudo systemctl stop ht_proxy.service
- sudo systemctl start ht_proxy.service
- sudo systemctl start ht_collgate.service
Above mentioned problem is fixed with this modification.
Please check it out at your system.
Keep in mind that:
After disconnection and reconnecting the USB port the ht_proxy.py will restart and reopen that serial USBport connection and RESTART also that TCPServer.
So you have to reconnect all previously connected proxy-clients.
from hometop_ht3.
Above mentioned problem is fixed with this modification.
ht_proxy now connects wonderfully again, but the basic problem that no more graphs are drawn and no more data is transmitted via mqtt is still there as before ;(
So you have to reconnect all previously connected proxy-clients.
What is the difference between:
before: USB disconnect, reconnect ht_proxy_if.py stops working, ht_collgate.py stops working -> no graphs update, no mqtt upate (frozen)
now: USB disconnect, reconnect ht_proxy_if.py still working, ht_collgate.py stops working -> no graphs update, no mqtt update (frozen)
Isn't it possible to hold the client connections up and running an only reconnect to the USB data source?
Additional observation: The status in the MQTT remains online, although no data has been sent for half an hour...
from hometop_ht3.
Additional observation: The status in the MQTT remains online, although no data has been sent for half an hour...
The MQTT-status 'online' is assigned to the MQTT-client availabilty itself and not to any data-transfer. The 'ht_collgate.py' and it's included mqtt-client are still running, so that MQTT-status must be 'online'.
Isn't it possible to hold the client connections up and running an only reconnect to the USB data source?
Yes, this should be possible and a solution. But keep in mind also that socket- and thread-handling is my aim to be improved.
This takes a bit time, so in the meantime don't disconnect that USB-port and use it as a stable connected serial interface.
from hometop_ht3.
Related Issues (20)
- CR100 Setpoint messages HOT 4
- Portnumber (8086) already used with InfluxDB HOT 1
- MQTT output doesn't match to HomeAssistant interface HOT 1
- New DeviceID's on the heatersystem-bus with IPM-modules
- mqtt does not support lwt? HOT 2
- New serial port-naming for RPi3/4
- Sometimes there are drop outs in the readings HOT 13
- Some information is not displayed from solar heating system HOT 2
- T_soll gets populated twice HOT 7
- Alerts to external instances HOT 15
- Pressure of water is not available HOT 11
- Unable to set desired temperature using mqtt (home assistant) HOT 3
- Installation script - make sqlite, etc. selectable
- MQTT topics are appended with every publish HOT 1
- 2 Logfiles are not located in log folder HOT 2
- SW-enhancement for different Solaroptions HOT 25
- Wrong error-msg after failed 'paho-mqtt' installation HOT 1
- raspberry pi 5 support HOT 8
- Old 'sysv' startup scripts update required for 'systemd'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hometop_ht3.