Added Linux script (php)
Requires php 8.1+ and php curl support.
Ubuntu 26.04: apt install php8.5-cli php8.5-curl
Linux instructions
Re: Linux instructions
This appears to work on Mac as well. I have brew installed on my Mac Studio so installed PHP by using this command in a Terminal session:
After the installation finished I did this to start PHP:
I ran the Linux version of the script by entering the command:
It found my HDHomeRun devices and reported a successful check-in:
screenshot of terminal
Directory ~/eacapture was created and contains 2 files:
Code: Select all
brew install php
Code: Select all
brew services start phpCode: Select all
php eacapture.phpCode: Select all
darrellspice@Mac-Studio SiliconDust % php eacapture.php
2026-11-12 21:40:21 First launch
2026-11-12 21:40:22 Found: HDHomeRun FLEX 4K 10A2EFDD
2026-11-12 21:40:22 Found: HDHomeRun CONNECT 4K 10803AF0
2026-11-12 21:40:22 Chosen: 10A2EFDD
2026-11-12 21:40:22 Check-in succeeded.
2026-11-12 21:40:22 Clock delta: -0.5 sec
2026-11-12 21:40:22 Next capture to run at 2026-11-12 23:10:29Directory ~/eacapture was created and contains 2 files:
- checkin_state.json
- eacapture.lock
Re: Linux instructions
Woot!
Re: Linux instructions
Looks like it did an upload from my Mac:
A new Captures directory showed up in ~/eacapture, though it's empty. I'm not very familiar with PHP though I see finishUpload() does an unlink which would explain the empty directory.
Code: Select all
2026-11-12 23:10:28 Capturing http://192.168.4.33:5004/auto/ch593000000p0p1?format=dbg&duration=15 to ead2e9f045a873f48ac9379632e3fa8d.tmp
2026-11-12 23:10:44 Upload to run at 2026-11-12 23:11:11
2026-11-12 23:11:46 Uploading ead2e9f045a873f48ac9379632e3fa8d.tmp
2026-11-12 23:11:47 Next capture to run at 2026-11-13 05:16:42