Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi cam support #14

Open
wants to merge 51 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
cc73f54
First attempt at multi-camera setup.
neerdoc Nov 22, 2024
4105f2f
Added backchannel.
neerdoc Nov 22, 2024
0005c03
Added more ports, up to 5 cameras.
neerdoc Nov 22, 2024
14ee4a0
Fixed port mapping.
neerdoc Nov 22, 2024
efd85c2
Changed repo name
neerdoc Nov 22, 2024
1064a7b
Added serial numbers to camera options.
neerdoc Nov 22, 2024
4c53b38
Re-added lot's of handling.
neerdoc Nov 22, 2024
b138481
Added config serial numbers to code.
neerdoc Nov 22, 2024
11d8324
Updated version.
neerdoc Nov 22, 2024
d364388
Corrected options.
neerdoc Nov 23, 2024
0b00af5
Fixed command line argument parsing.
neerdoc Nov 23, 2024
0b2c72e
Corrected arguments
neerdoc Nov 23, 2024
4698677
Added missing run_event
neerdoc Nov 23, 2024
427b17e
Cleaned up init of cameras.
neerdoc Nov 23, 2024
04737bd
Started streams
neerdoc Nov 23, 2024
150ff0e
Don't start cameras that are not defined.
neerdoc Nov 23, 2024
c1dd7d1
Blacked
neerdoc Nov 24, 2024
9f9f19b
Added missing select import.
neerdoc Nov 24, 2024
cabe813
Moved messages a bit to clear up.
neerdoc Nov 24, 2024
4b2c2f5
Added queing of audio/video data messages.
neerdoc Nov 24, 2024
fb3dbd7
Added async to start_stream.
neerdoc Nov 24, 2024
32453e8
Added debug printout. start_stream seems to be blocking.
neerdoc Nov 24, 2024
a401e47
Added more debugging.
neerdoc Nov 24, 2024
7702ae4
Added more debugging.
neerdoc Nov 24, 2024
9f06811
Added missing socket timeout.
neerdoc Nov 24, 2024
df7a7bd
Added debugging to find serialnumber for events.
neerdoc Nov 24, 2024
d856033
Corrected serialNumber extraction.
neerdoc Nov 24, 2024
2fd0fb6
More debugging.
neerdoc Nov 24, 2024
ae58968
More debug.
neerdoc Nov 24, 2024
bad7c5e
Added more debugging.
neerdoc Nov 24, 2024
8575120
Changed print to logMessage to ensure it's sent in order to the log.
neerdoc Nov 24, 2024
f82679a
Corrected logMessage calls.
neerdoc Nov 24, 2024
d93b196
Cleaned up debugging.
neerdoc Nov 24, 2024
82bf8aa
Debug messages.
neerdoc Nov 24, 2024
7488c60
More debugging.
neerdoc Nov 24, 2024
4462ec0
More debugging.
neerdoc Nov 24, 2024
88598e8
Works! Cleaned up a lot and added capability to stream up to 15 cameras.
neerdoc Nov 25, 2024
2a44f22
Blacked.
neerdoc Nov 25, 2024
4775e70
Added missing schema for debug.
neerdoc Nov 25, 2024
a098de7
Corrected debug argument.
neerdoc Nov 25, 2024
0390606
Debugging talkback error.
neerdoc Nov 25, 2024
41d4195
Trying to fix talkback error.
neerdoc Nov 25, 2024
ddcc8d6
Turned of talkback fix as it breaks all streaming.
neerdoc Nov 25, 2024
1fc1319
Add-on fails to start if debug_log is set to false. Debugging.
neerdoc Nov 25, 2024
1b1047a
Try changing name if DEBUG is special.
neerdoc Nov 25, 2024
fb1761f
Tried adding unbuffered output.
neerdoc Nov 25, 2024
43e26ae
Cleaned up.
neerdoc Nov 25, 2024
896c24e
Try changing interpreter to home assistant docs.
neerdoc Nov 25, 2024
6b9d3bd
Added sys flush at same places as single camera version.
neerdoc Nov 25, 2024
ffaa14f
Restored repo path for PR.
neerdoc Nov 26, 2024
6a806a2
New version and restored url.
neerdoc Nov 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 112 additions & 2 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ url: http://192.168.178.252:8123/local_eufyp2pstream
arch: [amd64, aarch64, i386, armv7]

# https://developers.home-assistant.io/docs/add-ons/configuration
version: 0.2.1-beta
version: 0.3.0-beta
slug: eufyp2pstream
init: false
startup: application
Expand All @@ -14,6 +14,116 @@ map: [config, media]
host_network: false
options:
eufy_security_ws_port: 3000
debug_log: false
schema:
eufy_security_ws_port: port
ports: { "63336/tcp": 63336, "63337/tcp": 63337, "63338/tcp": 63338 }
debug_log: bool
camera_1_serial_number: "str?"
camera_2_serial_number: "str?"
camera_3_serial_number: "str?"
camera_4_serial_number: "str?"
camera_5_serial_number: "str?"
camera_6_serial_number: "str?"
camera_7_serial_number: "str?"
camera_8_serial_number: "str?"
camera_9_serial_number: "str?"
camera_10_serial_number: "str?"
camera_11_serial_number: "str?"
camera_12_serial_number: "str?"
camera_13_serial_number: "str?"
camera_14_serial_number: "str?"
camera_15_serial_number: "str?"
ports: {
"63336/tcp": 63336,
"63337/tcp": 63337,
"63338/tcp": 63338,
"63339/tcp": 63339,
"63340/tcp": 63340,
"63341/tcp": 63341,
"63342/tcp": 63342,
"63343/tcp": 63343,
"63344/tcp": 63344,
"63345/tcp": 63345,
"63346/tcp": 63346,
"63347/tcp": 63347,
"63348/tcp": 63348,
"63349/tcp": 63349,
"63350/tcp": 63350,
"63351/tcp": 63351,
"63352/tcp": 63352,
"63353/tcp": 63353,
"63354/tcp": 63354,
"63355/tcp": 63355,
"63356/tcp": 63356,
"63357/tcp": 63357,
"63358/tcp": 63358,
"63359/tcp": 63359,
"63360/tcp": 63360,
"63361/tcp": 63361,
"63362/tcp": 63362,
"63363/tcp": 63363,
"63364/tcp": 63364,
"63365/tcp": 63365,
"63366/tcp": 63366,
"63367/tcp": 63367,
"63368/tcp": 63368,
"63369/tcp": 63369,
"63370/tcp": 63370,
"63371/tcp": 63371,
"63372/tcp": 63372,
"63373/tcp": 63373,
"63374/tcp": 63374,
"63375/tcp": 63375,
"63376/tcp": 63376,
"63377/tcp": 63377,
"63378/tcp": 63378,
"63379/tcp": 63379,
"63380/tcp": 63380,
}
ports_description: {
"63336/tcp": "Camera-1 Video Stream",
"63337/tcp": "Camera-1 Audio Stream",
"63338/tcp": "Camera-1 Backchannel",
"63339/tcp": "Camera-2 Video Stream",
"63340/tcp": "Camera-2 Audio Stream",
"63341/tcp": "Camera-2 Backchannel",
"63342/tcp": "Camera-3 Video Stream",
"63343/tcp": "Camera-3 Audio Stream",
"63344/tcp": "Camera-3 Backchannel",
"63345/tcp": "Camera-4 Video Stream",
"63346/tcp": "Camera-4 Audio Stream",
"63347/tcp": "Camera-4 Backchannel",
"63348/tcp": "Camera-5 Video Stream",
"63349/tcp": "Camera-5 Audio Stream",
"63350/tcp": "Camera-5 Backchannel",
"63351/tcp": "Camera-6 Video Stream",
"63352/tcp": "Camera-6 Audio Stream",
"63353/tcp": "Camera-6 Backchannel",
"63354/tcp": "Camera-7 Video Stream",
"63355/tcp": "Camera-7 Audio Stream",
"63356/tcp": "Camera-7 Backchannel",
"63357/tcp": "Camera-8 Video Stream",
"63358/tcp": "Camera-8 Audio Stream",
"63359/tcp": "Camera-8 Backchannel",
"63360/tcp": "Camera-9 Video Stream",
"63361/tcp": "Camera-9 Audio Stream",
"63362/tcp": "Camera-9 Backchannel",
"63363/tcp": "Camera-10 Video Stream",
"63364/tcp": "Camera-10 Audio Stream",
"63365/tcp": "Camera-10 Backchannel",
"63366/tcp": "Camera-11 Video Stream",
"63367/tcp": "Camera-11 Audio Stream",
"63368/tcp": "Camera-11 Backchannel",
"63369/tcp": "Camera-12 Video Stream",
"63370/tcp": "Camera-12 Audio Stream",
"63371/tcp": "Camera-12 Backchannel",
"63372/tcp": "Camera-13 Video Stream",
"63373/tcp": "Camera-13 Audio Stream",
"63374/tcp": "Camera-13 Backchannel",
"63375/tcp": "Camera-14 Video Stream",
"63376/tcp": "Camera-14 Audio Stream",
"63377/tcp": "Camera-14 Backchannel",
"63378/tcp": "Camera-15 Video Stream",
"63379/tcp": "Camera-15 Audio Stream",
"63380/tcp": "Camera-15 Backchannel",
}
Loading