carconnectivity-connector-skoda 0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of carconnectivity-connector-skoda might be problematic. Click here for more details.

Files changed (39) hide show
  1. carconnectivity_connector_skoda-0.1/.flake8 +2 -0
  2. carconnectivity_connector_skoda-0.1/.github/ISSUE_TEMPLATE/bug_report.md +33 -0
  3. carconnectivity_connector_skoda-0.1/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  4. carconnectivity_connector_skoda-0.1/.github/dependabot.yml +11 -0
  5. carconnectivity_connector_skoda-0.1/.github/workflows/build.yml +53 -0
  6. carconnectivity_connector_skoda-0.1/.github/workflows/build_and_publish.yml +37 -0
  7. carconnectivity_connector_skoda-0.1/.github/workflows/codeql-analysis.yml +58 -0
  8. carconnectivity_connector_skoda-0.1/.gitignore +131 -0
  9. carconnectivity_connector_skoda-0.1/CHANGELOG.md +14 -0
  10. carconnectivity_connector_skoda-0.1/LICENSE +21 -0
  11. carconnectivity_connector_skoda-0.1/Makefile +18 -0
  12. carconnectivity_connector_skoda-0.1/PKG-INFO +123 -0
  13. carconnectivity_connector_skoda-0.1/README.md +79 -0
  14. carconnectivity_connector_skoda-0.1/doc/Config.md +29 -0
  15. carconnectivity_connector_skoda-0.1/pyproject.toml +46 -0
  16. carconnectivity_connector_skoda-0.1/setup.cfg +4 -0
  17. carconnectivity_connector_skoda-0.1/setup_requirements.txt +3 -0
  18. carconnectivity_connector_skoda-0.1/src/carconnectivity_connector_skoda.egg-info/PKG-INFO +123 -0
  19. carconnectivity_connector_skoda-0.1/src/carconnectivity_connector_skoda.egg-info/SOURCES.txt +37 -0
  20. carconnectivity_connector_skoda-0.1/src/carconnectivity_connector_skoda.egg-info/dependency_links.txt +1 -0
  21. carconnectivity_connector_skoda-0.1/src/carconnectivity_connector_skoda.egg-info/requires.txt +4 -0
  22. carconnectivity_connector_skoda-0.1/src/carconnectivity_connector_skoda.egg-info/top_level.txt +1 -0
  23. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/__init__.py +0 -0
  24. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/_version.py +16 -0
  25. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/auth/__init__.py +0 -0
  26. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/auth/auth_util.py +141 -0
  27. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/auth/helpers/blacklist_retry.py +29 -0
  28. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/auth/my_skoda_session.py +224 -0
  29. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/auth/openid_session.py +449 -0
  30. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/auth/session_manager.py +82 -0
  31. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/auth/skoda_web_session.py +239 -0
  32. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/capability.py +135 -0
  33. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/charging.py +137 -0
  34. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/climatization.py +41 -0
  35. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/command_impl.py +74 -0
  36. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/connector.py +1624 -0
  37. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/error.py +53 -0
  38. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/mqtt_client.py +655 -0
  39. carconnectivity_connector_skoda-0.1/src/carconnectivity_connectors/skoda/vehicle.py +70 -0
@@ -0,0 +1,2 @@
1
+ [flake8]
2
+ max-line-length=160
@@ -0,0 +1,33 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: bug
6
+ assignees: tillsteinbach
7
+
8
+ ---
9
+
10
+ **Describe the bug**
11
+ A clear and concise description of what the bug is.
12
+
13
+ **To Reproduce**
14
+ Steps to reproduce the behavior:
15
+ 1. Go to '...'
16
+ 2. Click on '....'
17
+ 3. Scroll down to '....'
18
+ 4. See error
19
+
20
+ **Expected behavior**
21
+ A clear and concise description of what you expected to happen.
22
+
23
+ **Screenshots**
24
+ If applicable, add screenshots to help explain your problem.
25
+
26
+ **Logs**
27
+ IF applicable logs that show the problem. Please take care to remove any confidential data from the logs (e.g. your vehicles VIN number, usernames or passwords)
28
+
29
+ - OS: [e.g. Windows, Linux, MacOS, ...]
30
+ - Version used [e.g. 0.6.2]
31
+
32
+ **Additional context**
33
+ Add any other context about the problem here.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: enhancement
6
+ assignees: tillsteinbach
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe.**
11
+ A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12
+
13
+ **Describe the solution you'd like**
14
+ A clear and concise description of what you want to happen.
15
+
16
+ **Describe alternatives you've considered**
17
+ A clear and concise description of any alternative solutions or features you've considered.
18
+
19
+ **Additional context**
20
+ Add any other context or screenshots about the feature request here.
@@ -0,0 +1,11 @@
1
+ version: 2
2
+ updates:
3
+ # Maintain dependencies for GitHub Actions
4
+ - package-ecosystem: "github-actions"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "daily"
8
+ - package-ecosystem: "pip"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "daily"
@@ -0,0 +1,53 @@
1
+ name: Build Python Package
2
+
3
+ # Controls when the action will run.
4
+ on:
5
+ # Triggers the workflow on push or pull request events but only for the master branch
6
+ push:
7
+ branches: [ main ]
8
+ tags:
9
+ - "v*"
10
+ paths:
11
+ - .github/workflows/build.yml
12
+ - '**.py'
13
+ - 'pyproject.toml'
14
+ pull_request:
15
+ paths:
16
+ - .github/workflows/build.yml
17
+ - '**.py'
18
+ - 'pyproject.toml'
19
+
20
+ jobs:
21
+ build-python:
22
+ runs-on: ubuntu-latest
23
+ strategy:
24
+ matrix:
25
+ python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
26
+
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - name: Set up Python ${{ matrix.python-version }}
30
+ uses: actions/setup-python@v5
31
+ with:
32
+ python-version: ${{ matrix.python-version }}
33
+ - name: Install dependencies
34
+ run: |
35
+ python -m pip install --upgrade pip
36
+ if [ -f setup_requirements.txt ]; then pip install -r setup_requirements.txt; fi
37
+ python -m pip install build
38
+ - name: Build
39
+ run: |
40
+ python -m build
41
+ - name: Install built package
42
+ run: |
43
+ pip install dist/*.whl
44
+ - name: Lint
45
+ run: |
46
+ make lint
47
+ # - name: Test
48
+ # run: |
49
+ # make test
50
+
51
+
52
+
53
+
@@ -0,0 +1,37 @@
1
+ name: Build and Upload Python Package
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ pypi-publish:
10
+ runs-on: ubuntu-latest
11
+ environment:
12
+ name: pypi
13
+ url: https://pypi.org/p/carconnectivity-connector-skoda
14
+ permissions:
15
+ id-token: write
16
+
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ with:
20
+ fetch-depth: 0
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: "3.x"
25
+ - name: Install dependencies
26
+ run: |
27
+ python -m pip install --upgrade pip
28
+ python -m pip install build twine
29
+ - name: Build
30
+ run: |
31
+ python -m build
32
+ - name: Publish package distributions to PyPI
33
+ uses: pypa/gh-action-pypi-publish@release/v1
34
+
35
+
36
+
37
+
@@ -0,0 +1,58 @@
1
+ name: "CodeQL"
2
+
3
+ on:
4
+ pull_request:
5
+ paths:
6
+ - '**.py'
7
+ schedule:
8
+ - cron: '33 5 * * 0'
9
+
10
+ jobs:
11
+ analyze:
12
+ name: Analyze
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ actions: read
16
+ contents: read
17
+ security-events: write
18
+
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ language: [ 'python' ]
23
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
24
+ # Learn more:
25
+ # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
26
+
27
+ steps:
28
+ - name: Checkout repository
29
+ uses: actions/checkout@v4
30
+
31
+ # Initializes the CodeQL tools for scanning.
32
+ - name: Initialize CodeQL
33
+ uses: github/codeql-action/init@v3
34
+ with:
35
+ languages: ${{ matrix.language }}
36
+ # If you wish to specify custom queries, you can do so here or in a config file.
37
+ # By default, queries listed here will override any specified in a config file.
38
+ # Prefix the list here with "+" to use these queries and those in the config file.
39
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
40
+
41
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
42
+ # If this step fails, then you should remove it and run the build manually (see below)
43
+ - name: Autobuild
44
+ uses: github/codeql-action/autobuild@v3
45
+
46
+ # ℹ️ Command-line programs to run using the OS shell.
47
+ # 📚 https://git.io/JvXDl
48
+
49
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
50
+ # and modify them (or add more) to build your code if your project
51
+ # uses a compiled language
52
+
53
+ #- run: |
54
+ # make bootstrap
55
+ # make release
56
+
57
+ - name: Perform CodeQL Analysis
58
+ uses: github/codeql-action/analyze@v3
@@ -0,0 +1,131 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ pip-wheel-metadata/
24
+ share/python-wheels/
25
+ *.egg-info/
26
+ .installed.cfg
27
+ *.egg
28
+ MANIFEST
29
+
30
+ # PyInstaller
31
+ # Usually these files are written by a python script from a template
32
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
33
+ *.manifest
34
+ *.spec
35
+
36
+ # Installer logs
37
+ pip-log.txt
38
+ pip-delete-this-directory.txt
39
+
40
+ # Unit test / coverage reports
41
+ htmlcov/
42
+ .tox/
43
+ .nox/
44
+ .coverage
45
+ .coverage.*
46
+ .cache
47
+ nosetests.xml
48
+ coverage.xml
49
+ *.cover
50
+ *.py,cover
51
+ .hypothesis/
52
+ .pytest_cache/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ target/
76
+
77
+ # Jupyter Notebook
78
+ .ipynb_checkpoints
79
+
80
+ # IPython
81
+ profile_default/
82
+ ipython_config.py
83
+
84
+ # pyenv
85
+ .python-version
86
+
87
+ # pipenv
88
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
90
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
91
+ # install all needed dependencies.
92
+ #Pipfile.lock
93
+
94
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
95
+ __pypackages__/
96
+
97
+ # Celery stuff
98
+ celerybeat-schedule
99
+ celerybeat.pid
100
+
101
+ # SageMath parsed files
102
+ *.sage.py
103
+
104
+ # Environments
105
+ .env
106
+ .venv
107
+ env/
108
+ venv/
109
+ ENV/
110
+ env.bak/
111
+ venv.bak/
112
+
113
+ # Spyder project settings
114
+ .spyderproject
115
+ .spyproject
116
+
117
+ # Rope project settings
118
+ .ropeproject
119
+
120
+ # mkdocs documentation
121
+ /site
122
+
123
+ # mypy
124
+ .mypy_cache/
125
+ .dmypy.json
126
+ dmypy.json
127
+
128
+ # Pyre type checker
129
+ .pyre/
130
+ .DS_Store
131
+ src/carconnectivity_connectors/skoda/_version.py
@@ -0,0 +1,14 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ ## [Unreleased]
6
+ - No unreleased changes so far
7
+
8
+ ## [0.1] - 2025-01-25
9
+ Initial release, let's go and give this to the public to try out...
10
+ The API is not yet implemented completely but most functions already work
11
+
12
+ [unreleased]: https://github.com/tillsteinbach/CarConnectivity-connector-skoda/compare/v0.1...HEAD
13
+
14
+ [0.1]: https://github.com/tillsteinbach/CarConnectivity-connector-skoda/releases/tag/v0.1
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Till Steinbach
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,18 @@
1
+ BLUE='\033[0;34m'
2
+ NC='\033[0m' # No Color
3
+
4
+ test:
5
+ @pytest
6
+
7
+ lint:
8
+ @echo "\n${BLUE}Running Pylint against source and test files...${NC}\n"
9
+ @pylint ./src
10
+ @echo "\n${BLUE}Running Flake8 against source and test files...${NC}\n"
11
+ @flake8
12
+ @echo "\n${BLUE}Running Bandit against source files...${NC}\n"
13
+ @bandit -c pyproject.toml -r .
14
+
15
+ clean:
16
+ rm -rf .pytest_cache .coverage .pytest_cache coverage.xml coverage_html_report
17
+
18
+ .PHONY: clean test
@@ -0,0 +1,123 @@
1
+ Metadata-Version: 2.2
2
+ Name: carconnectivity-connector-skoda
3
+ Version: 0.1
4
+ Summary: CarConnectivity connector for Skoda services
5
+ Author: Till Steinbach
6
+ License: MIT License
7
+
8
+ Copyright (c) 2021 Till Steinbach
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Classifier: Development Status :: 3 - Alpha
29
+ Classifier: License :: OSI Approved :: MIT License
30
+ Classifier: Intended Audience :: Developers
31
+ Classifier: Programming Language :: Python :: 3.9
32
+ Classifier: Programming Language :: Python :: 3.10
33
+ Classifier: Programming Language :: Python :: 3.11
34
+ Classifier: Programming Language :: Python :: 3.12
35
+ Classifier: Programming Language :: Python :: 3.13
36
+ Classifier: Topic :: Software Development :: Libraries
37
+ Requires-Python: >=3.8
38
+ Description-Content-Type: text/markdown
39
+ License-File: LICENSE
40
+ Requires-Dist: carconnectivity~=0.1.0
41
+ Requires-Dist: oauthlib~=3.2.2
42
+ Requires-Dist: requests~=2.32.3
43
+ Requires-Dist: jwt~=1.3.1
44
+
45
+
46
+
47
+ # CarConnectivity Connector for Volkswagen Vehicles
48
+ [![GitHub sourcecode](https://img.shields.io/badge/Source-GitHub-green)](https://github.com/tillsteinbach/CarConnectivity-connector-skoda/)
49
+ [![GitHub release (latest by date)](https://img.shields.io/github/v/release/tillsteinbach/CarConnectivity-connector-skoda)](https://github.com/tillsteinbach/CarConnectivity-connector-skoda/releases/latest)
50
+ [![GitHub](https://img.shields.io/github/license/tillsteinbach/CarConnectivity-connector-skoda)](https://github.com/tillsteinbach/CarConnectivity-connector-skoda/blob/master/LICENSE)
51
+ [![GitHub issues](https://img.shields.io/github/issues/tillsteinbach/CarConnectivity-connector-skoda)](https://github.com/tillsteinbach/CarConnectivity-connector-skoda/issues)
52
+ [![PyPI - Downloads](https://img.shields.io/pypi/dm/carconnectivity-connector-skoda?label=PyPI%20Downloads)](https://pypi.org/project/carconnectivity-connector-skoda/)
53
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/carconnectivity-connector-skoda)](https://pypi.org/project/carconnectivity-connector-skoda/)
54
+ [![Donate at PayPal](https://img.shields.io/badge/Donate-PayPal-2997d8)](https://www.paypal.com/donate?hosted_button_id=2BVFF5GJ9SXAJ)
55
+ [![Sponsor at Github](https://img.shields.io/badge/Sponsor-GitHub-28a745)](https://github.com/sponsors/tillsteinbach)
56
+
57
+ ## CarConnectivity will become the successor of [WeConnect-python](https://github.com/tillsteinbach/WeConnect-python) in 2025 with similar functionality but support for other brands beyond Volkswagen!
58
+
59
+ [CarConnectivity](https://github.com/tillsteinbach/CarConnectivity) is a python API to connect to various car services. This connector enables the integration of skoda vehicles through the WeConnect API. Look at [CarConnectivity](https://github.com/tillsteinbach/CarConnectivity) for other supported brands.
60
+
61
+ ## Configuration
62
+ In your carconnectivity.json configuration add a section for the skoda connector like this:
63
+ ```
64
+ {
65
+ "carConnectivity": {
66
+ "connectors": [
67
+ {
68
+ "type": "skoda",
69
+ "config": {
70
+ "username": "test@test.de",
71
+ "password": "testpassword123"
72
+ }
73
+ }
74
+ ]
75
+ }
76
+ }
77
+ ```
78
+ ### Credentials
79
+ If you do not want to provide your username or password inside the configuration you have to create a ".netrc" file at the appropriate location (usually this is your home folder):
80
+ ```
81
+ # For WeConnect
82
+ machine skoda
83
+ login test@test.de
84
+ password testpassword123
85
+ ```
86
+ In this case the configuration needs to look like this:
87
+ ```
88
+ {
89
+ "carConnectivity": {
90
+ "connectors": [
91
+ {
92
+ "type": "skoda",
93
+ "config": {
94
+ }
95
+ }
96
+ ]
97
+ }
98
+ }
99
+ ```
100
+
101
+ You can also provide the location of the netrc file in the configuration.
102
+ ```
103
+ {
104
+ "carConnectivity": {
105
+ "connectors": [
106
+ {
107
+ "type": "skoda",
108
+ "config": {
109
+ "netrc": "/some/path/on/your/filesystem"
110
+ }
111
+ }
112
+ ]
113
+ }
114
+ }
115
+ ```
116
+ The optional S-PIN needed for some commands can be provided in the account section of the netrc:
117
+ ```
118
+ # For WeConnect
119
+ machine skoda
120
+ login test@test.de
121
+ password testpassword123
122
+ account 1234
123
+ ```
@@ -0,0 +1,79 @@
1
+
2
+
3
+ # CarConnectivity Connector for Volkswagen Vehicles
4
+ [![GitHub sourcecode](https://img.shields.io/badge/Source-GitHub-green)](https://github.com/tillsteinbach/CarConnectivity-connector-skoda/)
5
+ [![GitHub release (latest by date)](https://img.shields.io/github/v/release/tillsteinbach/CarConnectivity-connector-skoda)](https://github.com/tillsteinbach/CarConnectivity-connector-skoda/releases/latest)
6
+ [![GitHub](https://img.shields.io/github/license/tillsteinbach/CarConnectivity-connector-skoda)](https://github.com/tillsteinbach/CarConnectivity-connector-skoda/blob/master/LICENSE)
7
+ [![GitHub issues](https://img.shields.io/github/issues/tillsteinbach/CarConnectivity-connector-skoda)](https://github.com/tillsteinbach/CarConnectivity-connector-skoda/issues)
8
+ [![PyPI - Downloads](https://img.shields.io/pypi/dm/carconnectivity-connector-skoda?label=PyPI%20Downloads)](https://pypi.org/project/carconnectivity-connector-skoda/)
9
+ [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/carconnectivity-connector-skoda)](https://pypi.org/project/carconnectivity-connector-skoda/)
10
+ [![Donate at PayPal](https://img.shields.io/badge/Donate-PayPal-2997d8)](https://www.paypal.com/donate?hosted_button_id=2BVFF5GJ9SXAJ)
11
+ [![Sponsor at Github](https://img.shields.io/badge/Sponsor-GitHub-28a745)](https://github.com/sponsors/tillsteinbach)
12
+
13
+ ## CarConnectivity will become the successor of [WeConnect-python](https://github.com/tillsteinbach/WeConnect-python) in 2025 with similar functionality but support for other brands beyond Volkswagen!
14
+
15
+ [CarConnectivity](https://github.com/tillsteinbach/CarConnectivity) is a python API to connect to various car services. This connector enables the integration of skoda vehicles through the WeConnect API. Look at [CarConnectivity](https://github.com/tillsteinbach/CarConnectivity) for other supported brands.
16
+
17
+ ## Configuration
18
+ In your carconnectivity.json configuration add a section for the skoda connector like this:
19
+ ```
20
+ {
21
+ "carConnectivity": {
22
+ "connectors": [
23
+ {
24
+ "type": "skoda",
25
+ "config": {
26
+ "username": "test@test.de",
27
+ "password": "testpassword123"
28
+ }
29
+ }
30
+ ]
31
+ }
32
+ }
33
+ ```
34
+ ### Credentials
35
+ If you do not want to provide your username or password inside the configuration you have to create a ".netrc" file at the appropriate location (usually this is your home folder):
36
+ ```
37
+ # For WeConnect
38
+ machine skoda
39
+ login test@test.de
40
+ password testpassword123
41
+ ```
42
+ In this case the configuration needs to look like this:
43
+ ```
44
+ {
45
+ "carConnectivity": {
46
+ "connectors": [
47
+ {
48
+ "type": "skoda",
49
+ "config": {
50
+ }
51
+ }
52
+ ]
53
+ }
54
+ }
55
+ ```
56
+
57
+ You can also provide the location of the netrc file in the configuration.
58
+ ```
59
+ {
60
+ "carConnectivity": {
61
+ "connectors": [
62
+ {
63
+ "type": "skoda",
64
+ "config": {
65
+ "netrc": "/some/path/on/your/filesystem"
66
+ }
67
+ }
68
+ ]
69
+ }
70
+ }
71
+ ```
72
+ The optional S-PIN needed for some commands can be provided in the account section of the netrc:
73
+ ```
74
+ # For WeConnect
75
+ machine skoda
76
+ login test@test.de
77
+ password testpassword123
78
+ account 1234
79
+ ```
@@ -0,0 +1,29 @@
1
+
2
+
3
+ # CarConnectivity Connector for MySkoda Config Options
4
+ The configuration for CarConnectivity is a .json file.
5
+ ## MySkoda Connector Options
6
+ These are the valid options for the MySkoda Connector
7
+ ```json
8
+ {
9
+ "carConnectivity": {
10
+ "connectors": [
11
+ {
12
+ "type": "skoda", // Definition for the MySkoda Connector
13
+ "disabled": false, // You can disable connectors without removing them from the config completely
14
+ "config": {
15
+ "log_level": "error", // set the connectos log level
16
+ "interval": 300, // Interval in which the server is checked in seconds
17
+ "username": "test@test.de", // Username of your Volkswagen Account
18
+ "password": "testpassword123", // Username of your Volkswagen Account
19
+ "spin": 1234, //S-Pin used for some special commands like locking/unlocking
20
+ "netrc": "~/.netr", // netrc file if to be used for passwords
21
+ "api_log_level": "debug", // Show debug information regarding the API
22
+ "max_age": 300 //Cache requests to the server vor MAX_AGE seconds
23
+ }
24
+ }
25
+ ],
26
+ "plugins": []
27
+ }
28
+ }
29
+ ```
@@ -0,0 +1,46 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools>=61.0",
4
+ "setuptools_scm>=8"
5
+ ]
6
+ build-backend = "setuptools.build_meta"
7
+
8
+ [project]
9
+ name = "carconnectivity-connector-skoda"
10
+ description = "CarConnectivity connector for Skoda services"
11
+ dynamic = ["version"]
12
+ requires-python = ">=3.8"
13
+ authors = [
14
+ { name = "Till Steinbach" }
15
+ ]
16
+ dependencies = [
17
+ "carconnectivity~=0.1.0",
18
+ "oauthlib~=3.2.2",
19
+ "requests~=2.32.3",
20
+ "jwt~=1.3.1"
21
+ ]
22
+ readme = "README.md"
23
+ license = { file = "LICENSE" }
24
+ classifiers = [
25
+ "Development Status :: 3 - Alpha",
26
+ "License :: OSI Approved :: MIT License",
27
+ "Intended Audience :: Developers",
28
+ "Programming Language :: Python :: 3.9",
29
+ "Programming Language :: Python :: 3.10",
30
+ "Programming Language :: Python :: 3.11",
31
+ "Programming Language :: Python :: 3.12",
32
+ "Programming Language :: Python :: 3.13",
33
+ "Topic :: Software Development :: Libraries"
34
+ ]
35
+
36
+ [project.urls]
37
+
38
+ [tool.setuptools_scm]
39
+ write_to = "src/carconnectivity_connectors/skoda/_version.py"
40
+
41
+ [tool.pylint.format]
42
+ max-line-length = 160
43
+ ignore-patterns= "_version.py"
44
+
45
+ [tool.bandit]
46
+ targets = "carconnectivity_cli"