Comments (18)
pi@raspberrypi:~ $ python --version
Python 2.7.16
Looks like I need to change the default version of Python?
from weconnect-cli.
Sorted, I needed:
sudo pip3 install weconnect-cli
from weconnect-cli.
what does python --version
say?
from weconnect-cli.
exactly! You installed for python3 and your default version is python2
from weconnect-cli.
pi@raspberrypi:~ $ python --version
Python 3.7.3
pi@raspberrypi:~ $ weconnect-cli
bash: weconnect-cli: command not found
from weconnect-cli.
Hmmm, do you have maybe even more versions installed?
You could try: python -m pip install weconnect-cli
from weconnect-cli.
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)=1.6->weconnect-cli) (0.3.7)
Requirement already satisfied: colorama in /usr/lib/python3/dist-packages (from ascii-magic
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)=2.27.1 in ./.local/lib/python3.7/site-packages (from weconnect[images]
Requirement already satisfied: requests=0.36.0->weconnect-cli) (2.27.1)=2.27.1->weconnect[images]
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3/dist-packages (from requests=0.36.0->weconnect-cli) (1.24.1)=2.27.1->weconnect[images]
Requirement already satisfied: idna<4,>=2.5; python_version >= "3" in /usr/lib/python3/dist-packages (from requests=0.36.0->weconnect-cli) (2.6)=2.0.0; python_version >= "3" in ./.local/lib/python3.7/site-packages (from requests~=2.27.1->weconnect[images]
Requirement already satisfied: charset-normalizer=0.36.0->weconnect-cli) (2.0.11)=2.27.1->weconnect[images]
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests=0.36.0->weconnect-cli) (2018.8.24) $ weconnect-cli
pi@raspberrypi:
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.
hmmm, this is confusing me. I have to think what else could be going wrong here, sorry!
from weconnect-cli.
You could also try python -m weconnect_cli
for now
from weconnect-cli.
sometimes you just need root rights ;)
from weconnect-cli.
Thanks for your help
from weconnect-cli.
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.
from weconnect-cli.
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.
from weconnect-cli.
Usually your broker will store the value and send it to you on subscribe.
from weconnect-cli.
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.
from weconnect-cli.
Related Issues (20)
- Can't login HOT 44
- Username and password HOT 2
- Does this not work for Cupra Born? HOT 3
- Climatisation not working HOT 15
- Offline car in "my cars" break the access
- Set the temperature HOT 3
- Does the WeConnect API support MBB platform vehicles ? HOT 3
- Aufruf der CLI funktioniert nicht mehr HOT 1
- Start and stop charging not working in 0.25.0 HOT 3
- Possibility to get service information HOT 6
- Form does not contain postAction HOT 2
- Temporarily no response from command line HOT 8
- CLI returns "None" for every request HOT 3
- Window heating not starting (4104 Bad Gateway) HOT 5
- Ability to connect to Audi Services HOT 1
- No credentials form found HOT 4
- isActive flag disappeared HOT 2
- Seems to be not working since 2 or 3 days... HOT 5
- All car capabilities lost today HOT 5
- Error message: No credentials form found HOT 3
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-cli.