Giter VIP home page Giter VIP logo

Comments (18)

roppenheimer avatar roppenheimer commented on September 26, 2024 1

pi@raspberrypi:~ $ python --version
Python 2.7.16

Looks like I need to change the default version of Python?

from weconnect-cli.

roppenheimer avatar roppenheimer commented on September 26, 2024 1

Sorted, I needed:

sudo pip3 install weconnect-cli

from weconnect-cli.

tillsteinbach avatar tillsteinbach commented on September 26, 2024

what does python --version say?

from weconnect-cli.

tillsteinbach avatar tillsteinbach commented on September 26, 2024

exactly! You installed for python3 and your default version is python2

from weconnect-cli.

roppenheimer avatar roppenheimer commented on September 26, 2024

pi@raspberrypi:~ $ python --version
Python 3.7.3
pi@raspberrypi:~ $ weconnect-cli
bash: weconnect-cli: command not found

from weconnect-cli.

tillsteinbach avatar tillsteinbach commented on September 26, 2024

Hmmm, do you have maybe even more versions installed?

You could try: python -m pip install weconnect-cli

from weconnect-cli.

roppenheimer avatar roppenheimer commented on September 26, 2024

pi@raspberrypi:~ $ python -m pip install weconnect-cli
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: weconnect-cli in ./.local/lib/python3.7/site-packages (0.24.0)
Requirement already satisfied: ascii-magic~=1.6 in ./.local/lib/python3.7/site-packages (from weconnect-cli) (1.6)
Requirement already satisfied: weconnect[images]=0.36.0 in ./.local/lib/python3.7/site-packages (from weconnect-cli) (0.36.0)
Requirement already satisfied: colorama in /usr/lib/python3/dist-packages (from ascii-magic
=1.6->weconnect-cli) (0.3.7)
Requirement already satisfied: Pillow in ./.local/lib/python3.7/site-packages (from ascii-magic~=1.6->weconnect-cli) (9.0.1)
Requirement already satisfied: oauthlib~=3.1.1 in ./.local/lib/python3.7/site-packages (from weconnect[images]=0.36.0->weconnect-cli) (3.1.1)
Requirement already satisfied: requests
=2.27.1 in ./.local/lib/python3.7/site-packages (from weconnect[images]=0.36.0->weconnect-cli) (2.27.1)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests
=2.27.1->weconnect[images]=0.36.0->weconnect-cli) (1.24.1)
Requirement already satisfied: idna<4,>=2.5; python_version >= "3" in /usr/lib/python3/dist-packages (from requests
=2.27.1->weconnect[images]=0.36.0->weconnect-cli) (2.6)
Requirement already satisfied: charset-normalizer
=2.0.0; python_version >= "3" in ./.local/lib/python3.7/site-packages (from requests~=2.27.1->weconnect[images]=0.36.0->weconnect-cli) (2.0.11)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests
=2.27.1->weconnect[images]=0.36.0->weconnect-cli) (2018.8.24)
pi@raspberrypi:
$ weconnect-cli
bash: weconnect-cli: command not found
pi@raspberrypi:~ $ python --version
Python 3.7.3

This is a default RPi installation so there are several versions of Python

from weconnect-cli.

tillsteinbach avatar tillsteinbach commented on September 26, 2024

hmmm, this is confusing me. I have to think what else could be going wrong here, sorry!

from weconnect-cli.

tillsteinbach avatar tillsteinbach commented on September 26, 2024

You could also try python -m weconnect_cli for now

from weconnect-cli.

tillsteinbach avatar tillsteinbach commented on September 26, 2024

sometimes you just need root rights ;)

from weconnect-cli.

roppenheimer avatar roppenheimer commented on September 26, 2024

Thanks for your help

from weconnect-cli.

tillsteinbach avatar tillsteinbach commented on September 26, 2024

Yes, the permissions must be more restricted:
chmod og-rw .netrc
you don't want anyone else than yourself to be able to read the passwords

from weconnect-cli.

roppenheimer avatar roppenheimer commented on September 26, 2024

from weconnect-cli.

tillsteinbach avatar tillsteinbach commented on September 26, 2024

If you just want to read data from the car you just have to subscribe to that topic. You get the data published every time it changes. If you want to know which topics are available you can subscribe to weconnect/0/mqtt/topics or add the --list-topics parameter when starting.
You only have to publish something to a topic when you want to change a setting or control e.g. the climatization.

from weconnect-cli.

roppenheimer avatar roppenheimer commented on September 26, 2024

from weconnect-cli.

tillsteinbach avatar tillsteinbach commented on September 26, 2024

Usually your broker will store the value and send it to you on subscribe.

from weconnect-cli.

tillsteinbach avatar tillsteinbach commented on September 26, 2024

What you can also do is add Parameter --republish-on-update but that causes all values to be sent after each update. So in my opinion it is the less preferred way.

from weconnect-cli.

roppenheimer avatar roppenheimer commented on September 26, 2024

from weconnect-cli.

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.