Digital Picture Frame¶
I have a NIX Advance 8 Inch USB Digital Photo Frame that does not have wireless communication.
Background¶
The issue is workflow for updating the memory card or USB thumb drive with pictures is a bit manual and clunky. I want to automate the process a little bit more.
Current Process¶
- Create a
Digital Picture Framealbum in Google Photos (manual). - Add desired photos to album (manual).
- Download album as zip file via web interface on Chromebook (manual).
- Transfer zip file to LXC (manual).
- Use the
heic-extract.shscript to extract zip file, convertHEICfiles tojpg, and deleteMP4files (auto). - Format SD card as
FAT32(optional) (manual). - Transfer
pngandjpgfiles to SD card (manual). - Plug in SD card to digital picture frame (manual).
Future Process¶
I'd like to be able to make a custom programmed LILYGO T-Dongle S3 that allows the frame to read from a micro SD card and also allow to write to the SD card wirelessly.
- Create a
Digital Picture Framealbum in Google Photos (manual). - Add desired photos to album (manual).
- Download files from album (auto).
- Convert
HEICfiles tojpg(auto). - Wirelessly upload files to frame USB drive via LILYGO T-Dongle S3 (auto).
Config¶
SD Card Preparation¶
Determine USB device
Look at messages after plugging in USB adapter
[ 1409.448074] usb 3-1: new SuperSpeed USB device number 3 using xhci_hcd
[ 1409.468208] usb 3-1: New USB device found, idVendor=0bda, idProduct=0306, bcdDevice= 1.17
[ 1409.468215] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1409.468216] usb 3-1: Product: USB3.0 Card Reader
[ 1409.468218] usb 3-1: Manufacturer: Realtek
[ 1409.468219] usb 3-1: SerialNumber: 201506301013
[ 1409.470012] usb-storage 3-1:1.0: USB Mass Storage device detected
[ 1411.925210] sd 3:0:0:1: [sdc] 31116288 512-byte logical blocks: (15.9 GB/14.8 GiB)
[ 1411.926227] sd 3:0:0:1: [sdc] Write Protect is off
[ 1411.926231] sd 3:0:0:1: [sdc] Mode Sense: 2f 00 00 00
[ 1411.927024] sd 3:0:0:1: [sdc] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 1411.946558] sdc: sdc1
[ 1411.946720] sd 3:0:0:1: [sdc] Attached SCSI removable disk
Usage¶
HEIC Converter Script¶
This script converts HEIC images to JPG or PNG format. It can also delete original HEIC files upon successful
conversion, delete MP4 files, and extract zip/tar archives.
It requires ImageMagick (magick or convert command) for HEIC conversion, unzip for .zip files, and tar for .tar
and compressed tarballs.
Note
Certain ImageMagick packages uses the convert command and others use the magick command.
Convert individual HEIC file to png and extract zip file
Process all files in directory and delete all HEIC files
Process all files in directory and deleta all mp4 files
Extract archive files, such as zip or tar