Closed stangri closed 3 years ago
@stangri I will see if I can implement this. By default you can set setting either via environment variables or adding them to the config/settings.py or instance/settings.py file.
I will look if I can somehow override Flask's run command to add command line arguments although I guess this is not something most users will use... maybe I am wrong ;)
@anselal -- I do not suppose it will be user-facing feature, but it would make the init scripts much easier to create, at least for OpenWrt.
I will see what can be done
@stangri hi. do you still use my software on your router ?
No, not anymore.
As we've discussed previously, would be great if you could make the
antminer-monitor
command-line friendly. That would greatly improve the quality of the OpenWrt init script and the integration with the standard OpenWrt settings, might also help create better init scripts for desktop Linuxes.You can use getopt (or getopts if available for python) to parse the command-line parameters.
As a refresher, here's copy-paste from our e-mail conversation: