Closed antonlamers closed 2 years ago
Ha good question, have you tried on your side ? What is your url ? It s just a hostname ? I know it work if you use "localhost", but not sure if you use "localhost:80"
From the code the webocket connexion will work, but I m not sure for classic request.
But I think it s better to configure your DHCP router, it s not something good.
Yes I have try it. I saw fill in IP adres. I can’t configure it in the router. Docker give the ip addresses to the container. because docker has the regie, they said use the name of the container, that doesn’t change. Here an explanation of docker. https://youtu.be/a6mjt8tWUws
I m not skilled enought in english to understand ^^. But it's the first time I see this problem, You have all your docker server with moving IP ?
Can you show an exemple of the dns name you need to use ?
https://stackoverflow.com/questions/27937185/assign-static-ip-to-docker-container
The dns name is the same name as the container. I name it deconz. The docker website says the use of the dns name from the container instead the ip adres fromt the container.
Can you show the complete url you use for deconz ? with the port, and tell me is it work using a browser ?
I m not engineer so I don't know and don't use docker, but if you have a working url, I can see how to use it in domoticz.
Hi, it work in domoticz. But when I restart my iot server, the ip adres from deconz container is changing and then I must make a new API key with the new ip adres
Not normal, the API key is not based on IP, I m using the same key for 3/4 hosts here.
oke, but i must make the api with python3 API_KEY.py IP PHOSCON:80 create i thought it is based on IP. i did make a lot of keys, every when the ip was changed
i thought it is based on IP. i did make a lot of keys, every when the ip was changed
Yep, me too, every time I use phoscon, It create a new key, after a number, you will have a message on logs to inform you
X API keys memorised, some of them are probably useless, can use the API_KEY.py tool to clean them
There is a tool in the front end that can clean some of them.
Hi Is it possible to use a dns name instead the ip adres for making the apo key. I use domoticz in a container and somethimes after a reset the container for phoscon container has another ip adres