Stefan Allius
2b8dacb0de
Dev 0.11 ( #175 )
...
* use random IP adresses for unit tests
* Docker: The description ist missing (#171 )
Fixes #167
* S allius/issue167 (#172 )
* cleanup
* Sonar qube 6 (#174 )
* test class ModbusConn
2024-08-26 23:49:23 +02:00
Stefan Allius
58b42f7d7c
SonarCloud setup ( #168 )
...
* Code Cleanup (#158 )
* print coverage report
* create sonar-project property file
* install all py dependencies in one step
* code cleanup
* reduce cognitive complexity
* do not build on *.yml changes
* optimise versionstring handling (#159 )
- Reading the version string from the image updates
it even if the image is re-pulled without re-deployment
* fix linter warning
* exclude *.pyi filese
* ignore some rules for tests
* cleanup (#160 )
* Sonar qube 3 (#163 )
fix SonarQube warnings in modbus.py
* Sonar qube 3 (#164 )
* fix SonarQube warnings
* Sonar qube 3 (#165 )
* cleanup
* Add support for TSUN Titan inverter
Fixes #161
* fix SonarQube warnings
* fix error
* rename field "config"
* SonarQube reads flake8 output
* don't stop on flake8 errors
* flake8 scan only app/src for SonarQube
* update flake8 run
* ignore flake8 C901
* cleanup
* fix linter warnings
* ignore changed *.yml files
* read sensor list solarman data packets
* catch 'No route to' error and log only in debug mode
* fix unit tests
* add sensor_list configuration
* adapt unit tests
* fix SonarQube warnings
* Sonar qube 3 (#166 )
* add unittests for mqtt.py
* add mock
* move test requirements into a file
* fix unit tests
* fix formating
* initial version
* fix SonarQube warning
2024-08-23 21:24:01 +02:00
Stefan Allius
a42ba8a8c6
Dev 0.9 ( #115 )
...
* make timestamp handling stateless
* adapt tests for stateless timestamp handling
* initial version
* add more type annotations
* add more type annotations
* fix Generator annotation for ha_proxy_confs
* fix names of issue branches
* add more type annotations
* don't use depricated varn anymore
* don't mark all test as async
* fix imports
* fix solarman unit tests
- fake Mqtt class
* print image build time during proxy start
* update changelog
* fix pytest collect warning
* cleanup msg_get_time handler
* addapt unit test
* label debug images with debug
* dump droped packages
* fix warnings
* add systemtest with invalid start byte
* update changelog
* update changelog
* add exposed ports and healthcheck
* add wget for healthcheck
* add aiohttp
* use config validation for healthcheck
* add http server for healthcheck
* calculate msg prossesing time
* add healthy check methods
* fix typo
* log ConfigErr with DEBUG level
* Update async_stream.py
- check if processing time is < 5 sec
* add a close handler to release internal resources
* call modbus close hanlder on a close call
* add exception handling for forward handler
* update changelog
* isolate Modbus fix
* cleanup
* update changelog
* add heaithy handler
* log unrelease references
* add healtcheck
* complete exposed port list
* add wget for healtcheck
* add aiohttp
* use Enum class for State
* calc processing time for healthcheck
* add HTTP server for healthcheck
* cleanup
* Update CHANGELOG.md
* updat changelog
* add docstrings to state enum
* set new state State.received
* add healthy method
* log healthcheck infos with DEBUG level
* update changelog
* S allius/issue100 (#101 )
* detect dead connections
- disconnect connection on Msg receive timeout
- improve connection trace (add connection id)
* update changelog
* fix merge conflict
* fix unittests
* S allius/issue108 (#109 )
* add more data types
* adapt unittests
* improve test coverage
* fix linter warning
* update changelog
* S allius/issue102 (#110 )
* hotfix: don't send two MODBUS commands together
* fix unit tests
* remove read loop
* optional sleep between msg read and sending rsp
* wait after read 0.5s before sending a response
* add pending state
* fix state definitions
* determine the connection timeout by the conn state
* avoid sending MODBUS cmds in the inverter's reporting phase
* update changelog
* S allius/issue111 (#112 )
Synchronize regular MODBUS commands with the status of the inverter to prevent the inverter from crashing due to unexpected packets.
* inital checkin
* remove crontab entry for regular MODBUS cmds
* add timer for regular MODBUS polling
* fix Stop method call for already stopped timer
* optimize MB_START_TIMEOUT value
* cleanup
* update changelog
* fix buildx warnings
* fix timer cleanup
* fix Config.class_init()
- return error string or None
- release Schema structure after building thr config
* add quit flag to docker push
* fix timout calculation
* rename python to debugpy
* add asyncio log
* cleanup shutdown
- stop webserver on shutdown
- enable asyncio debug mode for debug versions
* update changelog
* update changelog
* fix exception in MODBUS timeout callback
* update changelog
2024-07-01 23:41:56 +02:00
Stefan Allius
220fe3d4c9
adapt container informations
2024-04-17 22:05:24 +02:00
Stefan Allius
e2873ffce7
Hardening ( #30 )
...
* set build-argument for environment
* hardening remove dangerous commands
* add hardening scripts for base and final image
2023-11-22 21:57:42 +01:00
Stefan Allius
690c66a13a
hardening docker image
...
remove the python packages setuptools, wheel and pip from
final image to reduce the attack surface
2023-11-13 20:47:14 +01:00
Stefan Allius
5d36397f2f
remover apk from the final image
2023-11-09 20:17:19 +01:00
Stefan Allius
97f426269f
switch to python 3.12
2023-10-09 22:21:00 +02:00
Stefan Allius
b06d832504
set log level to DEBUG for dev versions
2023-10-07 20:58:18 +02:00
Stefan Allius
ddba3f6285
optimize and update some comments
2023-10-07 16:39:39 +02:00
Stefan Allius
8264cc6d00
reduce continer size ans security attack surface
2023-10-07 16:20:40 +02:00
Stefan Allius
1871f6c8d2
change owner id during startup
2023-10-05 21:25:02 +02:00
Stefan Allius
64f573a369
supports version string
2023-10-01 21:26:22 +02:00
Stefan Allius
c773d5a084
add build script and set docker labels with dyn. data
2023-09-30 22:34:52 +02:00
Stefan Allius
d97d4ece43
cleanup
2023-09-29 16:38:52 +02:00
Stefan Allius
c0a2a705ec
Running Proxy with host UID and GUID
...
Fixes #2
2023-09-28 21:46:02 +02:00
Stefan Allius
9273c843d4
add opencontainer labels
2023-09-27 21:43:47 +02:00
Stefan Allius
5bc3ba8727
change default UIT to 1000
2023-09-27 19:11:35 +02:00
Stefan Allius
52d8eba52a
Initial commit
2023-09-24 21:54:37 +02:00