2 Commits
Author SHA1 Message Date
David Ventura b81b120260 Rename project 2024-12-12 12:00:32 +01:00
David Ventura 92e0b39897 Respect --discovery_ip in pair subcommand 2024-12-12 12:00:25 +01:00
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -57,7 +57,7 @@ yargs(hideBin(process.argv))
(yargs) => {
return yargs
.option("log_level", { describe: "Set log level", default: "info" })
.option("discovery_ip", { describe: "Camera discovery IP address", default: "192.168.1.255" })
.option("discovery_ip", { describe: "Camera discovery IP address" })
.option("ssid", { describe: "Wifi network for the camera to connect to" })
.option("password", { describe: "Wifi network password" })
.demandOption(["ssid", "password"])
@@ -68,6 +68,9 @@ yargs(hideBin(process.argv))
if (majorVersion < 16) {
logger.error(`Node version ${majorVersion} is not supported, may malfunction`);
}
if (argv.discovery_ip !== undefined) {
config.discovery_ips = [argv.discovery_ip];
}
pair({ ssid: argv.ssid, password: argv.password });
},
)
+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "cam",
"name": "cam-reverse",
"lockfileVersion": 3,
"requires": true,
"packages": {