forked from indiefan/home_assistant_nanit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.env.sample
67 lines (48 loc) · 2.3 KB
/
.env.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# General configuration --------------------------------------------------------
# Writeable directory where all the files will be stored (default: ./data)
# NANIT_DATA_DIR=/app/data
# Default value: info
# Allowed values: trace | debug | info | warn | error | fatal | panic
# NANIT_LOG_LEVEL=debug
# Session file (optional)
# Stores state between runs, useful for rapid development so that we don't get
# flagged by auth. servers for too many requests during application re-runs.
#
# Warning: The file contains sensitive information (auth tokens, etc.).
# It is recommended to only use it during development.
# NANIT_SESSION_FILE=data/session.json
# Nanit credentials ------------------------------------------------------------
# Nanit user credentials (as entered during Nanit cam registration)
NANIT_PASSWORD=xxxxxxxxxx
# RTMP server ------------------------------------------------------------------
# Enable integrated RTMP server (default: true)
# NANIT_RTMP_ENABLED=true
# Address under which is this app reachable from the cam
# Note: You cannot use your 127.0.0.1 here, it has to be reachable from the cam.
# Also pay attention to the port if you are port forwarding it in Docker.
# NANIT_RTMP_ADDR=192.168.3.234:1935
# MQTT -------------------------------------------------------------------------
# Enable MQTT integration for reading sensors data (default: false)
# NANIT_MQTT_ENABLED=true
# MQTT broker host (required if enabled)
# Examples:
# - Plain TCP: tcp://iot.eclipse.org:1883
# - Websocket: ws://my.mqtt.local or wss://my.secure.mqtt.local
# NANIT_MQTT_BROKER_URL=
# Credentials for MQTT broker (optional)
# NANIT_MQTT_USERNAME=
# NANIT_MQTT_PASSWORD=
# Client ID (default: nanit)
# NANIT_MQTT_CLIENT_ID=mynanit
# Topic prefix (default: nanit)
# NANIT_MQTT_PREFIX=mynanit
# Event Polling ----------------------------------------------------------------
# While Nanit doesn't provide a stream of events to subscribe to, you can poll
# the /babies/{baby_uid}/messages endpoint to retrieve the latest event messages
# Enable events polling
# NANIT_EVENTS_POLLING=true
# Interval in seconds at which to poll for new event messages (default: 30)
# NANIT_EVENTS_POLLING_INTERVAL=20
# Time in seconds after which to disregard event messages (default: 300)
# NANIT_EVENTS_MESSAGE_TIMEOUT=300