Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
4118314
Create python-3.13.yml
HotNoob Feb 15, 2025
ae69e4e
Update README.md
HotNoob Feb 15, 2025
2486f3e
fix pymodbus compatability
HotNoob Mar 17, 2025
33fe4f2
variable register read timing -- testing
HotNoob Mar 17, 2025
1cac5b7
Update modbus_base.py
HotNoob Mar 17, 2025
68e114a
bug fix new variable timing
HotNoob Mar 17, 2025
92a90fb
; to ,
HotNoob Mar 17, 2025
bac4cf0
Merge branch 'v1.1.9' of https://github.com/HotNoob/PythonProtocolGat…
HotNoob Mar 17, 2025
1703721
; to ,
HotNoob Mar 17, 2025
bc45b8c
; to ,
HotNoob Mar 17, 2025
246783a
quick variable timing
HotNoob Mar 17, 2025
f85a358
finish fixing new variable timing
HotNoob Mar 17, 2025
410dbb7
baby steps
utdrmac Mar 18, 2025
b1f7414
remove some requirements
utdrmac Mar 18, 2025
e873587
added ruff
utdrmac Mar 18, 2025
cf8c924
; to ,
HotNoob Mar 18, 2025
048491e
default read intervals for sigineer
HotNoob Mar 18, 2025
4bebaa9
read interval
HotNoob Mar 18, 2025
9fa688a
Update sigineer_v0.11.holding_registry_map.csv
HotNoob Mar 18, 2025
8f4cef7
allow write alias of writable
HotNoob Mar 18, 2025
d05f9e1
Update creating_and_editing_protocols.md
HotNoob Mar 18, 2025
88e1e6c
Update protocols.md
HotNoob Mar 18, 2025
aff7e46
Update protocols.md
HotNoob Mar 18, 2025
1e997e7
Update protocols.md
HotNoob Mar 18, 2025
be86abc
fixes/reverts
utdrmac Mar 18, 2025
3f09800
fixes/reverts2
utdrmac Mar 18, 2025
720bcde
fix merge upstream/v1.1.9
utdrmac Mar 18, 2025
629af3e
Merge pull request #79 from utdrmac/ruff_linting
HotNoob Mar 18, 2025
ab775c4
add more rules
utdrmac Mar 19, 2025
e4dd4fe
forgot to run against 'I' rules which formats imports sections
utdrmac Mar 19, 2025
b017bbd
Rules for single/double quote (Q)
utdrmac Mar 19, 2025
f5282cc
Merge pull request #80 from utdrmac/ruff_linting
HotNoob Mar 19, 2025
0763f52
add write unsafe option
HotNoob Mar 23, 2025
e925364
fix some validation bugs
HotNoob Mar 23, 2025
873dbc4
sorry my hack failed. let's just do an extra if instead.
HotNoob Mar 23, 2025
532d34d
add other data types for validation when writing to modbus
HotNoob Mar 24, 2025
9e788b6
clean
HotNoob Mar 26, 2025
6f6093a
transport writemode
HotNoob Mar 26, 2025
d1138c3
Merge branch 'v1.1.9' of github.com:HotNoob/PythonProtocolGateway int…
HotNoob Mar 26, 2025
68e3fd4
add modbus_tcp server sim script for testing
HotNoob Mar 26, 2025
9fcfc8a
test protocol for testing / simulating
HotNoob Mar 26, 2025
2c2b73e
rename
HotNoob Mar 26, 2025
2c0a3a5
fix sub ushort writes - bitwise
HotNoob Mar 26, 2025
012dc72
apply unit_mod when writing
HotNoob Mar 26, 2025
b955cb3
fix write unit_mod
HotNoob Mar 26, 2025
f8a4d88
test modbus decimal write
HotNoob Mar 26, 2025
00a2e05
ruff clean
HotNoob Mar 26, 2025
a0ccf3c
normalize variable timing read intervals
HotNoob Mar 27, 2025
fdc8d08
change init to exclude read timestamp changes
HotNoob Mar 27, 2025
201a05b
basic write support for 16bit and 8bit flags - UNTESTED
HotNoob Mar 31, 2025
c420606
testing bitflag writing
HotNoob Mar 31, 2025
5af8eae
Update test.holding_registry_map.csv
HotNoob Mar 31, 2025
8ba0cfa
debug and fix write bitflags, also fix offset bitflag reading
HotNoob Mar 31, 2025
4cd0d40
improve error handling for write bit and test write single bit
HotNoob Mar 31, 2025
5b8d4eb
more testing
HotNoob Mar 31, 2025
fa4f172
missing values entry
HotNoob Mar 31, 2025
5f705de
Merge branch 'v1.1.9' of https://github.com/HotNoob/PythonProtocolGat…
HotNoob Mar 31, 2025
b2b5d15
fix
HotNoob Apr 13, 2025
6359d67
fix dockerfile
ederjc May 24, 2025
f4bd865
Merge pull request #84 from ederjc/bugfix/docker
HotNoob May 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/python-3.13.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python 3.13

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.13"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

# don't care about coding standards
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ RUN pip install --prefix=/install -r /requirements.txt

FROM base
COPY --from=builder /install /usr/local
COPY protocol_settings.py /app/
COPY protocol_gateway.py /app/
COPY inverter.py /app/
COPY config.cfg /app/
COPY defs/ /app/defs/
COPY classes /app/classes/
COPY protocols /app/protocols/
WORKDIR /app
CMD ["python3", "protocol_gateway.py"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
![Python 3.10](https://github.com/HotNoob/PythonProtocolGateway/actions/workflows/python-3.10.yml/badge.svg)
![Python 3.11](https://github.com/HotNoob/PythonProtocolGateway/actions/workflows/python-3.11.yml/badge.svg)
![Python 3.12](https://github.com/HotNoob/PythonProtocolGateway/actions/workflows/python-3.12.yml/badge.svg)
![Python 3.13](https://github.com/HotNoob/PythonProtocolGateway/actions/workflows/python-3.13.yml/badge.svg)

[![CodeQL](https://github.com/HotNoob/PythonProtocolGateway/actions/workflows/github-code-scanning/codeql/badge.svg)](https://github.com/HotNoob/PythonProtocolGateway/actions/workflows/github-code-scanning/codeql)

Expand Down Expand Up @@ -159,5 +160,5 @@ donations would be appreciated.
```(btc) bc1qh394vazcguedkw2rlklnuhapdq7qgpnnz9c3t0```

### Use Docker - untested
- ```docker build -t protocol_gateway ```
- ```docker build . -t protocol_gateway ```
- ```docker run --device=/dev/ttyUSB0 protocol_gateway```
Loading