more IP Camera nonsense

well i had a minute (which turned into hours (of course it did))

making another cool updates to the camera system.

now it supports live streaming via Proxy which i can control via the house administration.
And my apple watch of course.

the streaming turned out to be quite simple, i struggled with lighttpd doing proper proxy and rewriting, which i solved by just going back to the trusted LiteSpeed httpd.

1 Virtual App and 3 Rewrites later, everything works as expected.
the -live url will automatically redirect to static if no stream is avaiable, this way there will be no broken links.

telling lsws about the presence of the stream i solved with a file to be checked on, if the file is there, the stream is active, if not, then not.

the rest is very basic mod_rewrite code

RewriteRule ^/cctv/office\.jpg(\?.*)? /int/lib/cams/cam.office.php$1 [L]
RewriteCond %{DOCUMENT_ROOT}/c/officecam-islive -f
RewriteRule ^/cctv/office-live\.jpg(\?.*)? http://Proxy:IPCam-Office/videostream.cgi?user=xxx&pwd=xxx [P, L]
RewriteRule ^/cctv/office-live\.jpg(\?.*)? /int/lib/cams/cam.office.php$1 [L]

the system also makes now burned in captions, stating the level i have dynamically set (meaning when the picture will be live)

just some basic stuff.

and at last, after 25 minutes of “idle” the pictures will be replaced with default images, based on the time of day.

i wanted to redo the night-offline-image again as one screen is still powered on, but the current picture is also the last picture of my beloved late cat Tiger holding the fort while i was away.
In her honor, i will leave this picture on for the foreseeable future, it still makes my eyes wet thinking of that great animal. miss her so much.

To top