feat: publish Alta Local Camera Discovery

This commit is contained in:
2026-09-01 18:02:14 +00:00
commit 33f28a3d73
30 changed files with 4939 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
const assert = require('node:assert/strict');
const { buildCsv } = require('./static/export-utils.js');
const cameras = [
{
alta_key: 'ABH7-C62U-GC3E',
hostname: 'avacam-abh7-c62u-gc3e.local',
web_ui_url: 'https://avacam-abh7-c62u-gc3e.local',
ip_address: '10.0.0.223',
},
{
alta_key: 'AHG2-Z4ND-FVRN',
hostname: 'avacam-ahg2-z4nd-fvrn.local',
web_ui_url: 'https://avacam-ahg2-z4nd-fvrn.local',
ip_address: '10.0.0.192',
},
];
assert.equal(require('./static/export-utils.js').buildKeyPaste, undefined);
assert.equal(
buildCsv(cameras),
'Alta Key,IP Address,Hostname URL\r\n' +
'ABH7-C62U-GC3E,10.0.0.223,https://avacam-abh7-c62u-gc3e.local\r\n' +
'AHG2-Z4ND-FVRN,10.0.0.192,https://avacam-ahg2-z4nd-fvrn.local\r\n'
);
console.log('export-utils tests passed');