Had an old iPad in a drawer that can’t install anything from the App Store anymore, so it became a photo frame. It loads a fullscreen page from a Home Assistant add-on I wrote and cycles through family photos straight off the SMB share on my NAS. No cloud, no account.

In the morning the hallway motion sensor switches it into weather mode for a couple of hours, so every 8th photo becomes a weather screen with the next 12 hours. The latest version also has a small weather badge in the corner that can stay up all day, or only show up when rain, snow, frost or heat is coming. HA just pushes to it with two rest_commands - the frame itself has no token for HA.

The part I’m happiest with is the bin reminder. The frame tells you the day before which bin goes out, and you don’t type the dates in: you upload the PDF leaflet from your municipality and it reads the dates out of it, locally, no OCR. It works off the coloured cells in the calendar grid (row = ISO week, column = weekday) and checks each one against the printed day number.

It does ingress now too, so it opens from the HA sidebar, and with Mosquitto running it creates MQTT entities for the next collection, photo count and weather mode on its own.

Most of the work honestly went into old Safari. iOS 9 silently ignores half of modern CSS, so everything has px fallbacks and the weather screen is laid out with tables.

Install: Settings > Add-ons > Add-on Store > three dots > Repositories > add https://github.com/emo546/ha-snapframe

If you have an ancient iPad and something looks broken on it, tell me the iOS version.

  • AA5B@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 days ago

    Very cool - I need to try something like this. I wonder what happened to that old iPad.

    I’ve been considering replacing my iPad since the screen is cracked and the battery is unhappy. It’s probably not noticeable from a distance.

    • emo546@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      9 days ago

      A cracked screen and a tired battery matter a lot less once it’s a frame - mine hangs on a wall on a charger and never runs on battery. If the battery is swollen rather than just weak, don’t leave it charging unattended though.

      Nothing gets installed on the tablet either, it’s just Safari in fullscreen pointed at the add-on, so an iPad that can’t take app updates anymore is fine.