Closed doudz closed 3 years ago
maybe try changing SECLEVEL CipherString = DEFAULT@SECLEVEL=2
or 1
I tried without success. What can I check to compare my configuration with yours ?
Any update on this issue ? For information, on the same computer bosch-xmpp works perfectly https://github.com/robertklep/bosch-xmpp So I'm not sure the problem is a global misconfiguration, looks like a "python" problem
sorry, missed your previous question. You're only one reporting this problem so far. I doubt you can cross compare configuration, I use Alpine Linux or Arch Linux. About bosch-xmpp I can't compare how is it working with bosch-xmpp as it uses deprecated xmpp lib for which docs doesn't exist anymore.
I'd suggest to use wireshark to try to sniff data send by bosch-xmpp get /gateway/uuid
vs bosch_cli get /gateway/uuid
, maybe there you'd see that eg. bosch-xmpp is failing to none ssl communication (as far as I know bosch-xmpp doesn't verify certificate).
I will try wireshark but for information I have the same problem on 5 machines, on 2 Ubuntu 21.04, a Ubuntu 20.10, on a virtual Ubuntu 18.04 and on a Rpi 3 running Raspbian Buster.... so I really think many people have the problem
maybe make some example with Docker so I can check if I see what might be wrong
what do you mean ?
make some example with Docker
create Dockerfile so I can see how you are installing things and I can reproduce it
I made a docker image doudz/bosch_thermostat
can you share Dockerfile
for it?
or give me link to docker file you pushed to docker hub (I can't find link with text for this)?
I want to see what you're installing.
I'm not familiar with docker so maybe I did wrong thing.
I create a public repo doudz/bosch_thermostat
based on ubuntu:hirsute
image
after that I have done :
apt update
apt full-upgrade
apt install python3 python3-pip
python3 -m pip install bosch-thermostat-client
python3 -m bosch_thermostat_client.bosch_cli query --device EASYCONTROL --host ********* --token ********** --protocol XMPP --password *********** -p /
this would be your Dockerfile:
FROM ubuntu:hirsute
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 install --upgrade pip && pip3 install bosch-thermostat-client==0.12.1.dev11
ENTRYPOINT ["python3", "-m", "bosch_thermostat_client.bosch_cli"]
CMD ["--help"]
Instructions for you:
cd bosch_test
docker build -t test .
docker run -it test
-> you should see help message of bosch_clidocker run -it test query --host=HOST --token=TOKEN --password=PASSWORD --protocol XMPP --device EASYCONTROL -p "/gateway/uuid"
If it still fails for you there are several options:
using your dockerfile it works.
investigating I found that on my docker I installed bosch_thermostat_client
meaning release 0.12.0 which generate the error.
No more error on docker using release 0.12.1dev11
I made many test and I found that the problem has been fixed in 0.12.1dev10
you fixed it here https://github.com/bosch-thermostat/bosch-thermostat-client-python/commit/93bdd215da20071c75629007922b2fd6df84129d
host change from charlie.ticx.boschtt.net
to oscar.ticx.boschtt.net
So it's just a version problem, updating my machines now it works everywhere.
Will you release a stable version soon ?
I plan to release it "soon", maybe this week as there are at least 2 issues I'm aware of which needs to be fixed. I have a lot of work right now and I can't promise anything unfortunately
Thanks all, closing since not an issue
Problem is back again I suspect a system update because I haven't change my /etc/ssl/openssl.cnf and it's not working anymore since days Previously to make it work I set the following