Code Monkey home page Code Monkey logo

Comments (3)

woutercoppens avatar woutercoppens commented on June 12, 2024 2

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.

tillsteinbach avatar tillsteinbach commented on June 12, 2024 1

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.

tillsteinbach avatar tillsteinbach commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.