Menu

A free pet cam from an old iPhone: no app, just WebRTC
📰

A free pet cam from an old iPhone: no app, just WebRTC

#devcommunity#dev#aaa#go2rtc#haos
Reading 0:00
15s threshold

I had an old iPhone in a drawer. It is stuck on iOS 12.5.8 and cannot install current apps. The camera still works.

I wanted to check on my pet while I am away. I tried the App Store first. I found no app that runs on iOS 12 and is free to use. Every one I tried had in-app purchases or severe limits, such as a single camera.

So I wrote a web page instead. Safari opens it, and it publishes the camera over WebRTC to Home Assistant. There is nothing to install on the phone, no subscription and no limits. It also sends a push with a picture when something moves.

Three things get in the way. iOS only gives camera access to HTTPS pages. Home Assistant's own HTTPS breaks plain-HTTP clients. And iOS 12 Safari would not open a websocket to my server at all.

Contents

Overview

Setup

Operate

Troubleshooting

What I would change

Overview

old iPhone (Safari, iOS 12) Home Assistant OS https://haos.home.arpa/local/cam.html | +-----------------------------+ | 1.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.