attr: ipc_sun_sync.__description__
Project description
ipc-sun-sync
Sync sunrise and sunset on Dahua IP Cameras.
Usage
Create config.yml
with the following content.
---
latitude: 34.0522
longitude: -118.2437
timezone: America/Los_Angeles
username: admin
password: password
ipc:
- ip: 192.168.1.108
- ip: 192.168.1.109
- ip: 192.168.1.110
name: FriendlyNameForLogging
username: OverideDefaultUser
password: OverideDefaultPassword123
channel: 1
The following command will sync the cameras located at 192.168.1.108
, 192.168.1.109
, 192.168.1.110
.
ipc-sun-sync -c config.yml
192.168.1.108
and 192.168.1.109
will use the credentials admin
and password
.
192.168.1.110
will have it's name
, username
, password
, and channel
overridden.
name
is used for logging. channel
is what video channel you want to apply the sun time, default is channel
0.
The sunrise and sunset times will be calculated using the latitude
and longitude
variables, then it will be converted to your timezone using the timezone
variable.
Show Timezones
ipc-sun-sync -T
Show Version
ipc-sun-sync -V
Troubleshooting
If the program says it is successful but sunrise and sunset times do not change, try disabling Smart Codec
if it is enabled.
To Do
- Add sunrise and sunset offsets
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ipc_sun_sync-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2f125d5575daa347a22a16ffa8a1fafcb64bff58a551d44c21f325652049860 |
|
MD5 | 8ef84bc167705bf45b46db978c274973 |
|
BLAKE2b-256 | ea2a71c6072ab44a330eb1fd1ffb9878688d588fe367ffb10ef0cadada3818f0 |