Two scripts for photo-related devices.

Feb 19, 2017 10:31


Download files from Toshiba FlashAir SD card over Wi-Fi: https://github.com/abelits/flashair-download

Print on Canon SELPHY 1200: https://github.com/abelits/canon-selphy-print

FlashAir script is for the configuration with FlashAir card as the access point, it uses Network Manager through nmcli utility to temporarily switch the access point, download files that are not present on the host, then restore the original state of Wi-Fi connection. It requires Network Manager having a configuration for the card, with the connection name the same as SSID name.

SELPHY support assumes that the printer configured in CUPS and accessible over Wi-Fi. The driver chosen for this printer is irrelevant, script uses raw mode and sends JPEG file with dimensions used by the printer.

I did not want to use a printer as an access point because it may interfere with the CUPS spooler -- spooler may be still talking to the printer while everything else is done, or printer may be in an error/out of supplies state, so keeping the connection on while the queue is not empty is not a good idea, either. Printer indicates its connection status on its built-in screen, so setup is sufficiently convenient, at least with my phone acting as a mobile access point.

On FlashAir, on the other hand, access point mode is more convenient because it does not tie the setup to any particular external access point, so photos can be downloaded at the first opportunity.

photo

Previous post Next post
Up