Closed dlenski closed 2 years ago
Did you test the tool with a model other than the listed ones in the readme? If this is the case, we could add your model to the list.
Yep, I tested with Brother HL-5370DW and it works fine for the "main" firmware file, although didn't find the update that allegedly exists for the "brnet" firmware. However, I'm fairly certain that's a mistake by Brother, not an issue with this tool.
Capitalization/punctuation
Missed an f in this f-string
Need to be able to handle empty 'SPEC' values, and ignore empty 'FIRMID', 'FIRMVER' values
My printer's SNMP details have an empty value for 'SPEC' (which needs to be parsed correctly for the firmware downloader), but also a pair of empty values for 'FIRMID'/'FIRMVER' (at the end of the list), which need to be ignored by the firmware downloader:
This change addresses both.
Report host OS when downloading firmware, and allow user to override with --os
I'm not 100% sure if it ever makes a difference, but it seems like the host OS should be reported accurately when downloading firmware. However, since its purpose is unclear it may be useful to give the user an option to override.
Currently, the OS options are 'WINDOWS', 'MAC', or 'LINUX', since those seem to be the three OS categories which Brother's website reports support for.
Make zeroconf dependency optional
Apply
black