Closed FredrikMeyer closed 4 years ago
The IP address used to be a mandatory argument in older versions of the program. Now it is an optional argument that can be specified with --ipaddr
. If you have installed py-air-control
from PyPI then you should specify the IP as mandatory argument. If you use the latest code from Github then it is an option. Sorry for the confusion.
Thanks for the answer!
I installed it this way instead: pip3 install git+https://github.com/rgerganov/py-air-control.git
, and now I don't get the same error message.
However, I do get a connection refused when running airctrl --ipaddr "10.0.1.8"
, and if I don't provide the IP, it says that no purifier were found.
I can check the status of the purifier on the Air Matters app, which runs on the same network as my computer. So I'm not sure what to do next.
Check if port 80 is open on your device. If it is not, then you most probably have a device which is working over CoAP instead of HTTP. The CoAP protocol is still a work in progress, see issue #35 and issue #21. Contributions are welcome!
I see! Thanks for the quick replies, I'll check into it when I have time.
I'm trying to use the package, but it seems something is maybe wrong with the command line parsing.
Perhaps I misunderstand something, but it seems to be that these two error messages contradict each other.
Am I doing something wrong? Thanks!