File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,10 +18,12 @@ options:
1818 mqtt_push : false
1919 mqtt_frequency : 5
2020 mqtt_debug : false
21+ ephemeral_mode : false
2122schema :
2223 mqtt_push : bool
2324 mqtt_frequency : int(1,120)
2425 mqtt_debug : bool
26+ ephemeral_mode : bool
2527 mqtt_host : str?
2628 mqtt_port : port?
2729 mqtt_user : str?
Original file line number Diff line number Diff line change 77
88# Start MQTT publishing in the background
99CONFIG_PATH=/data/options.json
10+ if [ -n " $ORB_EPHEMERAL_MODE " ]; then
11+ echo " Using ORB_EPHEMERAL_MODE from environment variables"
12+ else
13+ EPHEMERAL_MODE=$( jq -r ' .ephemeral_mode // false' " $CONFIG_PATH " )
14+ if [ " $EPHEMERAL_MODE " = " true" ]; then
15+ ORB_EPHEMERAL_MODE=" 1"
16+ export ORB_EPHEMERAL_MODE
17+ echo " ORB_EPHEMERAL_MODE is enabled"
18+ else
19+ echo " ORB_EPHEMERAL_MODE is disabled"
20+ fi
21+ fi
22+
1023if [ -n " $MQTT_PUSH " ]; then
1124 echo " Using MQTT_PUSH from environment variables"
1225else
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ configuration:
1313 name : Enable Debug Logging
1414 description : >-
1515 If set to `true`, debug logging will be enabled for MQTT operations.
16+ ephemeral_mode :
17+ name : Ephemeral Mode
18+ description : >-
19+ If set to `true`, Orb will avoid writing runtime data to disk. Enable
20+ this for flash-based devices where reducing write cycles matters; data
21+ will not persist across restarts.
1622 mqtt_host :
1723 name : MQTT Host
1824 description : >-
You can’t perform that action at this time.
0 commit comments