Comments (3)
Hi Till,
For the moment, you may park my request about the mqtt integration ;-)
I'll reach out to mitch to see if I can assist. It would be stupid to to create 2 plugins.
from weconnect-python.
Hey!
Regarding the first question: Your request would be that the path should not contain the VIN but something like: /0/ ... /1/ and so on?
Regarding the second question: It is a tree but something like this could work:
import argparse
from weconnect import weconnect
def main():
""" Simple example showing how to retrieve all vehciles from the account """
parser = argparse.ArgumentParser(
prog='allVehciles',
description='Example retrieving all vehciles in the account')
parser.add_argument('-u', '--username', help='Username of Volkswagen id', required=True)
parser.add_argument('-p', '--password', help='Password of Volkswagen id', required=True)
args = parser.parse_args()
print('# Initialize WeConnect')
weConnect = weconnect.WeConnect(username=args.username, password=args.password, updateAfterLogin=False, loginOnInit=False)
print('# Login')
weConnect.login()
print('# update')
weConnect.update()
print('# print results')
allAttributes = {}
for child in weConnect.getLeafChildren():
allAttributes[child.getGlobalAddress()] = str(child)
print(allAttributes)
if __name__ == '__main__':
main()
Just one more information that might change your plans. There is the user @mitch-dc who works on a home-assistance interface using WeConnect-python: https://github.com/mitch-dc/volkswagen_we_connect_id so maybe it is worth spending effort contributing to this project instead of starting a new one. If you still wan't to do your own project, it is of course also good, but I though it is maybe an information you are missing.
from weconnect-python.
If you don’t mind I close this for now to keep the overview. If it becomes relevant again, please re-open it.
from weconnect-python.
Related Issues (20)
- Trip data are not updated HOT 1
- Not sure if it's a bug, but I can't find a way to set the value of targetSOC_pct. Setting the value in vehicle.domains["charging"]["chargingSettings"].targetSOC_pct does not seem to have any effect, and I can't find anything in vehicle.controls. Is there any way to set it? Otherwise, a great library which has been extremely useful - thank you! HOT 3
- Cupra Gen3 (Hybrid) support
- I cannot install with "pip3 install weconnect[Images]" HOT 2
- Repeating log entries reporting 'failed downloading picture' for ID. Buzz HOT 9
- I have a Skoda iV and would love to help HOT 1
- Unknown attributes temperatureHvBatteryMin_K, temperatureHvBatteryMax_K HOT 4
- Retrieving credentials page was not successfull, status code: 400 HOT 1
- An unsupported status: 1018 was provided, please report this as a bug
- Unknown attributes HOT 4
- unsupported status and unknown attributes
- VW ID4 unsupported status 1018 6 times
- Unknown attribute maxChargeCurrentAC_A
- Unknown attribute recurringOn and Unknown attribute targetTimeLocal
- An unsupported status: 3006 was provided, please report this as a bug
- Library broken HOT 3
- Frequency of update() calls HOT 2
- Unsupported attribute value was provided HOT 1
- Unsupported targetSOCreachable: reachable was provided, known values are [invalid, calculating, unknown] please report this as a bug. HOT 2
- Unknown attribute temperatureOutsideStatus
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 weconnect-python.