Closed treitmayr closed 2 weeks ago
Unfortunately I just realized, that the IP address in the created printer config is set to an empty string. I will have to check whether it is just not part of the replies from AnkerMake's server, or there is a different issue.
Added a commit which preserves the printer IP addresses from a valid previous ankerctl configuration if the server replied with empty IP addresses (which it always does for me). So now, you can do ankerctl.py config login
without loosing these IP addresses.
The third commit adds a web interface for logging in to AnkerMake's server and fetch the configuration from there. As captchas seem to be requested quite frequently, those are also supported. This should make it unnecessary to import the slicer login.json file.
Note that it is my first time working with Flask and Bootstrap, and I have tried my best (in the available amount of time) to conform to the existing code style and concepts. For the captcha functionality I had to implement Javascript HTTP requests instead of reloading the page, so this is a newly introduced concept in the ankerctl code. According to my tests it works pretty well for both initial configuration and re-configuring.
Implemented new command 'config login' to fetch the complete configuration from the server instead of relying on the configuration file created by the AnkerMake Slicer.
Features:
Open:
Help output:
Usage example: