The previous PR I submitted was supposed to make the footer object stick to the bottom of the page but it did not work. This was because I missed a comma when adding the relevant changes.
This PR changes one comma in w3.css to a semi-colon, fixing the desired footer behaviour.
* Add repo option to autoupdate.sh
* Fix repo option in autoupdate.sh
* Use local repo when checking for updates
* Use default repo if non given in VERSION file in autoupdates.sh
* Pass custom repo to web ui and update cgi
* Add custom firmware update to web ui
* Fix update messages
* Fix update start arguments
* Fix update input labels
* Add custom upgrade button when on custom firmware
* Add github token option to autoupdate.sh
* Use github token to check updates
* Add github token to web ui
* Use github token in web updates
* Add github tab in web ui
* Fix curl in autoupdate.sh
* Fix github curl auth
* Ignore motion events if night mode has recently changed.
* Add night mode motion delay to web ui
* Change night_delay config to night_mode_event_delay
* https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/pull/1588
###Description:
Save snapshots/videos on motion vales are not saved.
###To Reproduce:
1. SET **Motion Settings** > **Storage** > **Local Storage** > "Save snapshots on motion" to **Activate**
2. Reload the configuration.
3. Changes are not reflected or remains to be **Deactivate**
###Changes:
ui_motion.cgi
1. Changed the variable `saveSnaphot` to `saveSnapshot`
2. Added ` echo "saveVideo#:#${save_video}"` for command `get_config`.
2. Added the the code below for the `save_config` command.
```
if [ -n "${F_saveVideo+x}" ]; then
F_saveVideo=$(printf '%b' "${F_saveVideo//%/\\x}")
rewrite_config /system/sdcard/config/motion.conf save_video $F_saveVideo
echo "Save video set to $F_saveVideo<br/>"
fi
```
motion.html
1. Renamed `saveSnaphot` to `saveSnapshot` to reflect the changes done in ui_motion.cgi.
* Update .gitignore
remove vsc files
Co-authored-by: Brian Frianeza <bf@dewise.com>
Co-authored-by: jmtatsch <jmtatsch@users.noreply.github.com>
* Change descriptions of MQTT topics to match Web UI (#1637)
* Allow MQTT to start/stop the "timelapse" service (#1637)
* Add manual switch for Night Mode to the sidebar (#1637)
* Add friendly names to the current list of services (#1637)
This adds a list of more user-friendly names to the services page. If a
new service is added in the future this list should be updated, or the
display name will default to the filename just as it did before.
* Fixed the timezone: Europe/Amsterdam
* Fix 'rtsp-h264' still set as an autostart entry when 'rtsp' is now the (#1636)
service to use
In 1e2f96612f the services 'rtsp-h264' and
'rtsp-mjpeg' were combined into a single 'rtsp' service, however an
entry for 'rtsp-h264' still remained in the autostart folder. This is a
problem for the user because this entry does not appear in the Web UI
which means it cannot be easily removed, and also appears as if an RTSP
server is not running when it is.
* Added button to the live page that downloads a JPEG screenshot (#1638)
* Fixed a missing line break and spelling mistake
* Added button to the live page that downloads a JPEG screenshot
Co-authored-by: OhMyGuus <info@guus.ninja>
Co-authored-by: Ben Russell <ben@benru.co.uk>
I was trying to access the videos/photos from the motion option but it wasn't opening, so i found that the link was wrong. I corrected on mine, sending the PR :)