Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added properties for PV string 3 and 4 (e.g. for Ginlong Solis-(25-50)K-5G) #24

Open
wants to merge 240 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
240 commits
Select commit Hold shift + click to select a range
4cd7c8b
Added parameters for PV strings 3 and 4.
Gentleman1983 Jul 24, 2021
71d4467
Formatting issue.
Gentleman1983 Jul 24, 2021
f1e414d
added new parameters and container describtion to Dockerfile
Gentleman1983 May 12, 2023
42e7084
First dry run tested
Gentleman1983 May 12, 2023
0ba420e
Delete .idea directory
TobiO79 May 13, 2023
643cafc
Eindeutige Mappings eingefügt
TobiO79 May 14, 2023
d30c27d
Transformed Mapping.txt to Mapping.md
Gentleman1983 May 15, 2023
562b21a
Delete .idea directory
TobiO79 May 15, 2023
8257fe5
added REST endpoints
TobiO79 May 15, 2023
72d2320
added .gitignore file
Gentleman1983 May 15, 2023
1bec4fc
fixed TYPO
Gentleman1983 May 15, 2023
6ac0d91
add debug logging right
Gentleman1983 May 15, 2023
ff284b5
connected the write functions to the main loop
Gentleman1983 May 15, 2023
113ae7f
tidying up source code and prettifying log outputs
Gentleman1983 May 15, 2023
87fec32
removing error
Gentleman1983 May 15, 2023
df0e6d4
Renamed python script
Gentleman1983 May 15, 2023
189bb16
updated readme
Gentleman1983 May 15, 2023
af9f332
Create pylint.yml
Gentleman1983 May 15, 2023
4e65b44
switch python scriüpt to snake case naming
Gentleman1983 May 15, 2023
be9b09b
Merge branch 'migrate_to_solis_cloud' of github.com:Gentleman1983/gin…
Gentleman1983 May 15, 2023
f1c3e7f
solved some too long line issues
Gentleman1983 May 15, 2023
3c28b5e
solved some variable naming issues
Gentleman1983 May 15, 2023
a568a17
solved some identing issues on comments
Gentleman1983 May 15, 2023
24b0143
fixed import
Gentleman1983 May 15, 2023
e86d567
renamed variable errorstring -> error_string
Gentleman1983 May 15, 2023
14aa0e8
removed uneccessary parantheses
Gentleman1983 May 15, 2023
acb6a96
fixed some shadowing issues
Gentleman1983 May 15, 2023
7ea7bb4
restructured imports
Gentleman1983 May 15, 2023
eeb77aa
restructured imports
Gentleman1983 May 15, 2023
9adc989
renamed variable next_run_yes -> NEXT_RUN_YES
Gentleman1983 May 15, 2023
680fd59
fixed some more pylint issues
Gentleman1983 May 15, 2023
89c53a6
added content of requirements.txt to pip install for pylint
Gentleman1983 May 15, 2023
c5f85fe
moved import to top.
Gentleman1983 May 15, 2023
eb0aca3
moved import to top.
Gentleman1983 May 15, 2023
aa0a83e
Switching logging configuration
Gentleman1983 May 15, 2023
efc3af1
Switching logging configuration
Gentleman1983 May 15, 2023
c9b6854
fixing imports
Gentleman1983 May 15, 2023
a6b7fcf
fixing string format
Gentleman1983 May 15, 2023
863fe03
solved some pylint findings
Gentleman1983 May 15, 2023
20eeb99
solved some pylint findings
Gentleman1983 May 15, 2023
8ff0f16
solved some pylint findings
Gentleman1983 May 15, 2023
51fbbb2
fixed image url
Gentleman1983 May 15, 2023
3d63012
Update Mapping.md
TobiO79 May 18, 2023
519c2d2
Update README.md
TobiO79 May 19, 2023
8dea16c
Update Mapping.md
TobiO79 May 19, 2023
d896ad9
formatting of README.md
Gentleman1983 May 19, 2023
9ba801e
formatting of Mapping.md
Gentleman1983 May 19, 2023
9937f10
Connected endpoints for PVOutput
Gentleman1983 May 19, 2023
41160e0
Propared some code stubs for collecting additional monitoring data
Gentleman1983 May 19, 2023
1628967
added functions for data collection for day, month and year
TobiO79 May 21, 2023
d776daf
pepared fields-list to export to influxdb
TobiO79 May 21, 2023
26b9ef8
included mappings
TobiO79 May 21, 2023
9e2d03d
added some debug outputs
Gentleman1983 May 21, 2023
4f96583
Bugfixes
TobiO79 May 21, 2023
5836af0
reduce API Calls by storing inverter_id and inverter_sn after first a…
TobiO79 May 21, 2023
3f9948d
Bugfixes
TobiO79 May 21, 2023
b313397
modified mapping and endpoints
TobiO79 May 23, 2023
6d9677c
fix debug output format
Gentleman1983 May 31, 2023
b0ed2d5
fixed some data format issues
Gentleman1983 May 31, 2023
dd96dc8
Update ginlong_solis_api_connector.py
TobiO79 Jun 2, 2023
7d173ac
Update ginlong_solis_api_connector.py
TobiO79 Jun 2, 2023
7acc361
Update Dockerfile
TobiO79 Jun 2, 2023
e477a2e
Update ginlong_solis_api_connector.py
TobiO79 Jun 2, 2023
48797a7
Update ginlong_solis_api_connector.py
TobiO79 Jun 2, 2023
9494227
remove unused functions
TobiO79 Jun 2, 2023
bd8931d
bugfixed submit to influx
TobiO79 Jun 2, 2023
c37c147
added BatteryPowerPec
TobiO79 Jun 2, 2023
b56c4e2
added BatteryPowerPec
TobiO79 Jun 2, 2023
846b15f
all legacy-Values as float
TobiO79 Jun 2, 2023
5d2cdfa
added UpdateTime
TobiO79 Jun 2, 2023
ec5201e
added UpdateTime
TobiO79 Jun 2, 2023
bdafc0e
added UpdateTime as string
TobiO79 Jun 2, 2023
a5565fe
updateTime uncapitalized
TobiO79 Jun 2, 2023
fbea445
updateTime uncapitalized
TobiO79 Jun 2, 2023
0e01643
Removed unused lan parameter
Gentleman1983 Jun 2, 2023
f9303a2
Switched pv output api url to https
Gentleman1983 Jun 2, 2023
bab4179
Documented and updated values for PV output
Gentleman1983 Jun 2, 2023
b6fa4ae
Ignored pylint for monthly and total data dictions
Gentleman1983 Jun 2, 2023
52fc91f
Ignored pylint for never happening usage of error message before assi…
Gentleman1983 Jun 2, 2023
b9aa15c
Removed detailed error messaging
Gentleman1983 Jun 2, 2023
fc6452f
Fixed lines too long
Gentleman1983 Jun 2, 2023
eeedba0
Fixed pylint syntax
Gentleman1983 Jun 2, 2023
2f652aa
Some code formatting
Gentleman1983 Jun 2, 2023
c530a9d
removed unused environment end points from original ginlong scraper
Gentleman1983 Jun 2, 2023
56c1985
renamed repository on github
Gentleman1983 Jun 2, 2023
833c8de
Merge pull request #1 from Gentleman1983/migrate_to_solis_cloud
TobiO79 Jun 2, 2023
55e28c6
#3: added functions to calculate correct voltage and current for sing…
Gentleman1983 Jun 2, 2023
15c8fdc
#3: added missing environment mapping for 'SOLIS_CLOUD_API_INVERTER_ID'
Gentleman1983 Jun 2, 2023
67bae9f
no returns in if/else statement
Gentleman1983 Jun 2, 2023
eb6b951
too long lines
Gentleman1983 Jun 2, 2023
b1aedeb
Merge pull request #5 from Gentleman1983/3-incorrect-voltage-for-sing…
TobiO79 Jun 2, 2023
48aa150
Added missing factors
TobiO79 Jun 2, 2023
4239a41
pylint - too long lines
TobiO79 Jun 2, 2023
496a505
Merge pull request #7 from Gentleman1983/6-total-values-have-missing-…
Gentleman1983 Jun 2, 2023
fca6919
Update ginlong_solis_api_connector.py
TobiO79 Jun 2, 2023
b80707f
Update Dockerfile
TobiO79 Jun 2, 2023
e6a9fd3
Merge pull request #9 from Gentleman1983/8-device_id-should-be-int
Gentleman1983 Jun 2, 2023
f70f739
Update ginlong_solis_api_connector.py
TobiO79 Jun 2, 2023
9ee2ab5
#8: added conversion to int for all ports and device ids
Gentleman1983 Jun 2, 2023
98c2436
Merge pull request #10 from Gentleman1983/8-device_id-should-be-int
TobiO79 Jun 3, 2023
dabb442
extendet PVO for v7-v12
TobiO79 Jun 3, 2023
547241e
Update README.md
TobiO79 Jun 3, 2023
00b37e5
Update README.md
TobiO79 Jun 3, 2023
63a356a
Merge pull request #11 from Gentleman1983/4-use-extended-fields-in-pvo
Gentleman1983 Jun 3, 2023
9d6b97a
added Units
TobiO79 Jun 3, 2023
3ba156d
#14: added override value for single phase inverters
Gentleman1983 Jun 3, 2023
094ed6d
#14: refactored methods to match pylint specifications
Gentleman1983 Jun 3, 2023
acea2a0
Merge pull request #15 from Gentleman1983/14-add-option-to-override-c…
TobiO79 Jun 3, 2023
a47918f
device_id set to int
TobiO79 Jun 3, 2023
6658345
added dummy function
TobiO79 Jun 4, 2023
7eff25e
- Swapped PVO v3 / v4
TobiO79 Jun 4, 2023
c73b517
- added factor 1000 to homeLoadEnergy
TobiO79 Jun 4, 2023
17bd118
convert Values to float for influxdb-export
TobiO79 Jun 4, 2023
8bcce5a
inserted multiplicator function
TobiO79 Jun 4, 2023
c255925
inserted multiplicator function
TobiO79 Jun 4, 2023
5aa669b
Merge pull request #19 from Gentleman1983/17-pvoutput-values-swapped
Gentleman1983 Jun 4, 2023
efdbd74
Merge pull request #20 from Gentleman1983/18-influxdb-export-factor-p…
Gentleman1983 Jun 4, 2023
d71d757
changed integer to float function
TobiO79 Jun 4, 2023
be5ac96
pylint optimation
TobiO79 Jun 4, 2023
3de519d
Merge pull request #21 from Gentleman1983/16-datatype-problem-in-expo…
Gentleman1983 Jun 4, 2023
3be035e
#22 wrong spelled string
TobiO79 Jun 4, 2023
df2a10c
Merge pull request #23 from Gentleman1983/22-fix-syntax-errors
Gentleman1983 Jun 4, 2023
cd890f5
#2: Added data for all contributors bot.
Gentleman1983 Jun 14, 2023
f9d06e4
#2 add empty line on end of all contributors json
Gentleman1983 Jun 14, 2023
9f2623d
Merge pull request #25 from Gentleman1983/2-add-data-for-contribution…
Gentleman1983 Jun 14, 2023
d1b0432
reduce content of all contributor bot config
Gentleman1983 Jun 14, 2023
d1f36d3
Merge pull request #27 from Gentleman1983/26-test-all-contributors-bot
Gentleman1983 Jun 14, 2023
a4c4fde
docs: update README.md [skip ci]
allcontributors[bot] Jun 14, 2023
852e293
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jun 14, 2023
dd1a7e9
docs: update README.md [skip ci]
allcontributors[bot] Jun 14, 2023
f039308
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jun 14, 2023
1ce5a2b
Merge pull request #28 from Gentleman1983/all-contributors/add-Gentle…
Gentleman1983 Jun 14, 2023
47d299d
docs: update README.md [skip ci]
allcontributors[bot] Jun 14, 2023
040463e
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jun 14, 2023
e22951b
docs: update README.md [skip ci]
allcontributors[bot] Jun 14, 2023
3a9c96a
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jun 14, 2023
ab29a24
Merge pull request #30 from Gentleman1983/all-contributors/add-Gentle…
Gentleman1983 Jun 14, 2023
2204df7
Merge branch 'master' into all-contributors/add-TobiO79
Gentleman1983 Jun 14, 2023
5efe31f
Merge pull request #29 from Gentleman1983/all-contributors/add-TobiO79
Gentleman1983 Jun 14, 2023
0864416
docs: update README.md [skip ci]
allcontributors[bot] Jun 14, 2023
1bb43b7
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jun 14, 2023
af1b302
Merge pull request #32 from Gentleman1983/all-contributors/add-Gentle…
Gentleman1983 Jun 14, 2023
66ce9b5
docs: update README.md [skip ci]
allcontributors[bot] Jun 14, 2023
2d1f9e0
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jun 14, 2023
35d8d8d
Merge pull request #33 from Gentleman1983/all-contributors/add-TobiO79
Gentleman1983 Jun 14, 2023
6de41dc
#24: Added safe calculation of last months energy creation
Gentleman1983 Jun 14, 2023
3cbeacb
docs: update README.md [skip ci]
allcontributors[bot] Jun 14, 2023
10ef91a
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jun 14, 2023
41cbcae
Merge pull request #35 from Gentleman1983/all-contributors/add-peterm…
Gentleman1983 Jun 14, 2023
2566fda
docs: update README.md [skip ci]
allcontributors[bot] Jun 14, 2023
cfbfc08
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jun 14, 2023
6d94a33
Merge pull request #36 from Gentleman1983/all-contributors/add-Flecky13
Gentleman1983 Jun 14, 2023
4fc8090
Merge pull request #34 from Gentleman1983/24-error-indexerror-list-in…
TobiO79 Jun 15, 2023
a77756f
#24: Added better error dialogs to wrong device ids
Gentleman1983 Jun 15, 2023
849048c
#24: Added default inverter dataset id
Gentleman1983 Jun 15, 2023
905bb2b
Merge pull request #37 from Gentleman1983/24-error-indexerror-list-in…
TobiO79 Jun 16, 2023
e025bdf
adding mqtt_port & mqtt_topic to ENV
Flecky13 Jun 16, 2023
569fa01
Update README.md
Flecky13 Jun 17, 2023
da90670
Update README.md
Flecky13 Jun 17, 2023
10c9c1d
Update README.md
Flecky13 Jun 17, 2023
c6befb5
docs: update README.md [skip ci]
allcontributors[bot] Jun 19, 2023
b67e0ef
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jun 19, 2023
26f6896
Merge pull request #41 from Gentleman1983/all-contributors/add-philic…
Gentleman1983 Jun 19, 2023
818df73
docs: update README.md [skip ci]
allcontributors[bot] Jun 19, 2023
31eb853
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Jun 19, 2023
ed38bc8
Merge pull request #42 from Gentleman1983/all-contributors/add-MetPhoto
Gentleman1983 Jun 19, 2023
005167d
#38: Add change log.
Gentleman1983 Jun 19, 2023
1f884f8
Merge pull request #43 from Gentleman1983/38-add-release-notes-change…
TobiO79 Jun 19, 2023
ce3be84
Update ginlong_solis_api_connector.py
TobiO79 Jun 19, 2023
d8a4624
Merge pull request #44 from Gentleman1983/24-error-indexerror-list-in…
Gentleman1983 Jun 19, 2023
7265843
merging
Flecky13 Jun 19, 2023
6eaf7e8
Merge pull request #47 from Flecky13/master
TobiO79 Jun 22, 2023
2a8fc11
Update ginlong_solis_api_connector.py
TobiO79 Jun 22, 2023
080924e
Merge pull request #48 from Gentleman1983/24-error-indexerror-list-in…
Gentleman1983 Jun 22, 2023
bad88ae
#46: Added handling for bad gateway errors
Gentleman1983 Jun 28, 2023
16e537a
#46: Added handling for bad gateway errors
Gentleman1983 Jun 28, 2023
6cf8686
#46: Added handling for bad gateway errors
Gentleman1983 Jun 28, 2023
7bafbca
Merge pull request #49 from Gentleman1983/46-jsondecode-error-bad-gat…
TobiO79 Jun 29, 2023
693f502
Update ginlong_solis_api_connector.py
TobiO79 Jul 1, 2023
41f2413
Merge pull request #50 from Gentleman1983/24-error-indexerror-list-in…
Gentleman1983 Jul 1, 2023
925d5f9
docs: update README.md [skip ci]
allcontributors[bot] Nov 9, 2023
6927615
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Nov 9, 2023
3f9c4b8
docs: update README.md [skip ci]
allcontributors[bot] Nov 9, 2023
76d8206
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Nov 9, 2023
9d7bac0
removed wrong all-contributors data
Gentleman1983 Nov 9, 2023
012d72d
Merge pull request #53 from Gentleman1983/all-contributors/add-Stephe…
Gentleman1983 Nov 9, 2023
f780f7b
Update ginlong_solis_api_connector.py
TobiO79 Nov 23, 2023
48ca6c1
Merge pull request #60 from Gentleman1983/59-changed-field-types
Gentleman1983 Nov 23, 2023
278a8a9
Update CHANGELOG.md
Gentleman1983 Nov 23, 2023
6bb1602
prepare tag 2.4.0
Gentleman1983 Nov 23, 2023
cf1c35f
#55: Switch URL on Readme to my own Docker hub repository
Gentleman1983 Nov 23, 2023
b3a9bc2
#55: Update CHANGELOG.md
Gentleman1983 Nov 23, 2023
8acbc4f
#55: Add check container build action
Gentleman1983 Nov 23, 2023
693ff0a
#55: Add build and publish on release action
Gentleman1983 Nov 23, 2023
62a5f95
#55: Update changelog
Gentleman1983 Nov 23, 2023
7a0e041
#55: Add missing final empty line to yaml file
Gentleman1983 Nov 23, 2023
9a96a95
#57: Added CHANGELOG entry for SBOM creation added to publish Docker …
Gentleman1983 Nov 23, 2023
f31b953
#51: Added CHANGELOG entry for switch oóf the Dockerhub repository
Gentleman1983 Nov 23, 2023
e47c7dd
#51: Added CHANGELOG link to SBOM definition
Gentleman1983 Nov 23, 2023
5c034a1
#55: Add publishing/updating latest flag, too
Gentleman1983 Nov 24, 2023
f351bd0
Merge pull request #61 from Gentleman1983/55-process-for-publishing-d…
TobiO79 Nov 24, 2023
fd1c6f1
#56: Add renovate config
Gentleman1983 Nov 24, 2023
57a2891
#56: Update changelog
Gentleman1983 Nov 24, 2023
2daacf7
Merge pull request #62 from Gentleman1983/56-introduce-renovate
Gentleman1983 Nov 24, 2023
aca059c
Update actions/checkout action to v4
renovate[bot] Nov 24, 2023
1a5f87f
Update actions/setup-python action to v4
renovate[bot] Nov 24, 2023
f984a18
Merge pull request #63 from Gentleman1983/renovate/actions-checkout-4.x
Gentleman1983 Nov 24, 2023
94d92ec
Merge pull request #64 from Gentleman1983/renovate/actions-setup-pyth…
Gentleman1983 Nov 24, 2023
5d59d5b
Update docker/metadata-action action to v5
renovate[bot] Nov 24, 2023
64f2916
Merge pull request #66 from Gentleman1983/renovate/docker-metadata-ac…
Gentleman1983 Nov 24, 2023
6a5cdf7
Update actions/setup-python action to v5
renovate[bot] Dec 6, 2023
0b99646
Merge pull request #67 from Gentleman1983/renovate/actions-setup-pyth…
Gentleman1983 Dec 8, 2023
5d179f1
#68: Hotfixed issues regarding API update of March 4th, 2024.
Gentleman1983 Mar 7, 2024
b122b63
Updated Dockerfile labels
Gentleman1983 Mar 7, 2024
d940965
#68: convert all integers to float
Gentleman1983 Mar 8, 2024
3fbc2e3
#68: added ignore list for float conversion
Gentleman1983 Mar 8, 2024
cfa1451
#68: some cleaning up
Gentleman1983 Mar 8, 2024
68a4aac
#68: some cleaning up
Gentleman1983 Mar 8, 2024
2f8fa48
#68: added ignore list for float conversion
Gentleman1983 Mar 8, 2024
7dbac5d
#68: some cleaning up
Gentleman1983 Mar 8, 2024
9a07c25
#68: removed value ignore list
Gentleman1983 Mar 8, 2024
effcb3f
Update ginlong_solis_api_connector.py
TobiO79 Mar 8, 2024
4f00ea9
#68: transforming now hopefully the correct integer values to float
Gentleman1983 Mar 8, 2024
2d95814
Update ginlong_solis_api_connector.py
TobiO79 Mar 9, 2024
d91a0c0
Merge pull request #69 from Gentleman1983/68-issue-reading-data-from-api
Gentleman1983 Mar 10, 2024
5cf5b56
Merge branch 'master' into 13-documentation-of-special-fields-for-inf…
Gentleman1983 Mar 10, 2024
c889727
#13: Update Changelog
Gentleman1983 Mar 10, 2024
af05a3b
#13: Reused safety function for not existant values.
Gentleman1983 Mar 10, 2024
d4b4d06
#13: Add pylint for python 3.9 and 3.12.
Gentleman1983 Mar 10, 2024
b01d183
#13: Switched pylint to python 3.12.
Gentleman1983 Mar 10, 2024
5ba2fe7
Merge pull request #71 from Gentleman1983/13-documentation-of-special…
Gentleman1983 Mar 10, 2024
e8d671c
#13: some clean up
Gentleman1983 Mar 10, 2024
8268361
#13: added some debug output and safeguards for unit calculation
Gentleman1983 Mar 10, 2024
aa826ea
#13: switched character position
Gentleman1983 Mar 10, 2024
4c87433
prepare CHANGELOG for 3.0.0 release
Gentleman1983 Mar 10, 2024
5038360
docs: update README.md [skip ci]
allcontributors[bot] Apr 2, 2024
53b6466
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Apr 2, 2024
5695df0
Merge pull request #75 from Gentleman1983/all-contributors/add-izakhearn
Gentleman1983 Apr 2, 2024
8a01b0f
chore(deps): update docker/build-push-action action to v6
renovate[bot] Jun 17, 2024
9b427c3
Merge pull request #76 from Gentleman1983/renovate/docker-build-push-…
Gentleman1983 Jun 20, 2024
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
98 changes: 98 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"_comment": "This JSON file controls the behaviour of the all contributors bot. A description of the keys can be found here: https://allcontributors.org/docs/en/bot/configuration",
"projectName": "ginlong_solis_api_connector",
"projectOwner": "Gentleman1983",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"contributorsPerLine": 7,
"contributorsSortAlphabetically": false,
"linkToUsage": true,
"skipCi": true,
"contributors": [
{
"login": "TobiO79",
"name": "Tobias Otto",
"avatar_url": "https://avatars.githubusercontent.com/u/30373938?v=4",
"profile": "https://github.com/TobiO79",
"contributions": [
"test",
"code",
"maintenance",
"review"
]
},
{
"login": "Gentleman1983",
"name": "Christian Otto",
"avatar_url": "https://avatars.githubusercontent.com/u/1020222?v=4",
"profile": "https://github.com/Gentleman1983",
"contributions": [
"test",
"code",
"maintenance",
"review"
]
},
{
"login": "petermdevries",
"name": "Peter de Vries",
"avatar_url": "https://avatars.githubusercontent.com/u/15040708?v=4",
"profile": "https://github.com/petermdevries",
"contributions": [
"bug"
]
},
{
"login": "Flecky13",
"name": "Pedro",
"avatar_url": "https://avatars.githubusercontent.com/u/57505680?v=4",
"profile": "https://github.com/Flecky13",
"contributions": [
"bug"
]
},
{
"login": "philicibine",
"name": "philicibine",
"avatar_url": "https://avatars.githubusercontent.com/u/16887758?v=4",
"profile": "https://github.com/philicibine",
"contributions": [
"bug"
]
},
{
"login": "MetPhoto",
"name": "Mark",
"avatar_url": "https://avatars.githubusercontent.com/u/2766363?v=4",
"profile": "https://github.com/MetPhoto",
"contributions": [
"bug"
]
},
{
"login": "Stephen2615",
"name": "Stephen2615",
"avatar_url": "https://avatars.githubusercontent.com/u/43490186?v=4",
"profile": "https://github.com/Stephen2615",
"contributions": [
"bug"
]
},
{
"login": "izakhearn",
"name": "Izak Hearn",
"avatar_url": "https://avatars.githubusercontent.com/u/25284121?v=4",
"profile": "https://izakwebdesigns.co.za",
"contributions": [
"bug"
]
}
],
"commitType": "docs",
"commitConvention": "angular"
}
11 changes: 11 additions & 0 deletions .github/workflows/buildDockerImage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Build Docker Container Image

on: [push]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ginlong-solis-api-connector:$(date +%s)
41 changes: 41 additions & 0 deletions .github/workflows/publishToDockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and publish a Docker image

on: [ release ]

env:
IMAGE_NAME: gentleman1983/ginlong-solis-api-connector

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}

- name: Build and push
uses: docker/build-push-action@v6
with:
sbom: true
push: true
provenance: mode=max
tags: |
gentleman1983/ginlong-solis-api-connector:${{ github.event.release.name }}
gentleman1983/ginlong-solis-api-connector:latest
24 changes: 24 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Pylint

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install -r requirements.txt
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
162 changes: 162 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/

46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Version change log
This document provides an overview to the changes on the different releases...

## NEXT
* t.b.d.

## 3.0.0
> [!WARNING]
> In this update we refactored all actual and upcoming number fields to provide data in float values. There may be the
> need to update your existing InfluxDB instance to handle the new data types.
* Updated the Dockerhub repository on `README.md`, to not point to the [old dkruyt API scraper images](https://hub.docker.com/repository/docker/dkruyt/ginlong-scraper) ([#51](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/51))
* Added publishing to Dockerhub repository [gentleman1983/ginlong-solis-api-connector](https://hub.docker.com/repository/docker/gentleman1983/ginlong-solis-api-connector) on release ([#55](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/55))
* Publishing task to Dockerhub should publish [SBOM](https://www.cisa.gov/sbom), too ([#57](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/57))
* Add Mend renovate bot to repository ([#56](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/56))
* Fixed parsing issues regarding api update from March 4th, 2024. ([#68](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/68))
* Pinned the data units regarding the dynamic units on Ginlong API. ([#13](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/13))

## 2.4.0
* Added `CHANGELOG.md` document to have central document for changes. ([#38](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/38))
* Fixed issue regarding bad gateways. ([#46](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/46))
* Added option to configure number and timeout between retries.
* Added the fields `pA`, `pB` and `PC` to change list to update according to API changes on end of November 2023.

## 2.3.1
* Fixed issue on error handling on the `SOLIS_CLOUD_API_INVERTER_ID` parameter. ([#24](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/24))
* Fixed possible index out of bounds exception. ([#24](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/24))
* Added support for all contributors bot. ([#2](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/2), [#26](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/26), [#31](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/31))

## 2.3.0
* Added option to override detection for single phase inverters. ([#14](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/14))
* Fixed calculation on some data fields to fix issues on monitoring. ([#16](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/16), [#22](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/22))
* Fixed mixing up of some PVoutput values (`v3` & `v4`). ([#17](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/17))
* Fixed issue on influx db where some values where interpreted as integers instead of floats when value is `0`. This lead to problems in data import, e.g. during the nighttime. ([#18](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/18))

## 2.2.0
* Added configurability for optional PVoutput fields `pv7` to `pv12` for subscribers of PVoutput. ([#4](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/4))
* Fixed missing usage of inverter ID ENV value. ([#8](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/8))
* Fixed some conversion issues on integer ENV values like inverter ID, ports, etc. ([#6](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/6))
* Fixed some PyLint issues or marked them as false positives or as better readable containing them on source code.

## 2.1.0
* Added functionality to handle single phase inverters ([#3](https://github.com/Gentleman1983/ginlong_solis_api_connector/issues/3))
* Added option to support multiple inverters

## 2.0.0
* Added functionality to connect to Solis Cloud API.
Loading