Commit Graph

9 Commits

Author SHA1 Message Date
Darell Tan
9404fa6161 Add version info to help output 2024-11-22 19:16:13 +08:00
Darell Tan
4d51380873 Don't start HAP server without any devices
This ensures that when iOS reconnects, it doesn't find an empty server
and thinks all the devices have been removed, and removes them all
locally.
2024-11-22 04:01:07 +08:00
Darell Tan
1fbc4d520a Use a more secure PIN config by default
The server used to use the hap default PIN, but using a fixed PIN is not
secure. A random PIN is now generated on first run and displayed to the
console (or journal), similar to how homebridge does it. It can also be
specified explicitly by the user in the config file.
2023-08-12 01:35:07 +08:00
Darell Tan
8640f0a9c2 Modify default db path 2023-08-04 01:10:35 +08:00
Darell Tan
420313906f Omit log timestamps when running under systemd
The journal will already have timestamps for each logged message.
2023-08-04 00:58:23 +08:00
Darell Tan
ba9a42b64e Added quiet mode for reduced verbosity
This is useful to reduce clutter if you're running the service and it's
writing logs to the main syslog.
2023-08-04 00:56:30 +08:00
Darell Tan
59b049faea Add config options for ListenAddr & Interfaces
These options are helpful when the bridge is running on a multi-homed
device like a wireless router.
2023-08-03 23:28:52 +08:00
Darell Tan
3cfc3f68b0 Added debug mode for more verbose logging
Also had to rename the existing DEBUG consts to DEVMODE, so as to not
confuse the two. DEVMODE is meant for developers and cannot be enabled
on-the-fly, whereas debug mode is for users to check that the bridge is
working, MQTT messages are received etc.

Update logging is throttled to avoid spurious messages for uncoalesced
MQTT updates and motion sensors. On my network with 10 devices, an
update is logged every 1-2 minutes on average.
2023-08-03 21:32:14 +08:00
Darell Tan
84398fc53a "Initial" working version, after cleanup. 2023-04-26 23:20:07 +08:00