if capture_mode == 'motion-triggered':
data['output_pictures'] = True
+ elif capture_mode == 'motion-triggered-one':
+ data['output_pictures'] = 'best'
+
elif capture_mode == 'interval-snapshots':
data['snapshot_interval'] = int(ui['snapshot_interval'])
ui['image_file_name'] = snapshot_filename
elif output_pictures:
- ui['capture_mode'] = 'motion-triggered'
+ if output_pictures == 'best':
+ ui['capture_mode'] = 'motion-triggered-one'
+
+ else:
+ ui['capture_mode'] = 'motion-triggered'
+
if picture_filename:
ui['image_file_name'] = picture_filename
<td class="settings-item-value">
<select class="styled still-images camera-config" id="captureModeSelect">
<option value="motion-triggered">Motion Triggered</option>
+ <option value="motion-triggered-one">Motion Triggered (One Picture)</option>
<option value="interval-snapshots">Interval Snapshots</option>
<option value="all-frames">All Frames</option>
<option value="manual">Manual</option>
<td><span class="help-mark" title="sets the number of days after which the pictures will be deleted automatically">?</span></td>
</tr>
<tr class="settings-item advanced-setting">
- <td class="settings-item-label"><span class="settings-item-label">Manual Snapshots</span></td>
+ <td class="settings-item-label"><span class="settings-item-label">Enable Manual Snapshots</span></td>
<td class="settings-item-value"><input type="checkbox" class="styled still-images camera-config" id="manualSnapshotsSwitch"></td>
<td><span class="help-mark" title="when this is enabled, a button on the camera frame will allow you to manually take snapshots">?</span></td>
</tr>