Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Front- and Backend rework on Bootstrap 5 and urgent security fixes #19

Open
wants to merge 63 commits into
base: master
Choose a base branch
from

Conversation

ChuckNorrison
Copy link

@ChuckNorrison ChuckNorrison commented Oct 7, 2024

Updated or replaced:

  • JQuery updated to 3.7.1
  • Bootstrap updated to 5.3.3
  • jqplot updated to 1.0.9
  • PhotoSwipe updated to 5.4.4
  • Replaced bootstrap-table with bootstrap-table-1.23.5
  • Replaced datepicker with vanillajs-datepicker-1.3.4
  • Replaced Glyphicons with fontawesome icons
  • New designs for all pages and new nav

Security fix:

  • Implement password hashing, do not remember cleartext passwords.
  • After upgrading to this version, the current password will be reset to default after next login.
  • No export of credentials with download config
  • Webserver redirect for already exposed systems
  • Automatic set a new Flask SECURITY_KEY

Improvements:

  • GUI rework with Bootstrap 5
  • Add notify badge to nav with counter
  • Add a live logstream for actuator relevant events
  • Only do wifi setup if wlan is enabled, improve performance in LAN mode
  • Add optional subtract and divide methods to sensor calibration
  • Fix videostream and improve photo quality with i.e. Logitech MX Brio and long focus time
  • Fix some bugs and exceptions
  • Fix some typos and improve messages
  • Code cleanup and refactoring
  • Remove python cache files from sources

Notification:

  • Add colors
  • Add notifications for interrupts
  • Add notifications for water scheduler on failure

remove python cache files
only do wifi setup if wlan is enabled
add notification for interrupts
fix missing getparamlist
Implement password hashing, do not remember cleartext passwords.

After upgrading to this version, the current password will be reset to default.
All resolutions work with both types of cameras, usb or pi.

Cleanup code
In case of MX Brio, the quality was very blurred. Add more frames to skip and set fixed fps.

Fix except.

Cleanup code.

Verison bump 3.5
@ChuckNorrison
Copy link
Author

ChuckNorrison commented Oct 7, 2024

For video stream, all resolutions work with both types of cameras, usb and pi.

Cleanup code.

For photo, in case of MX Brio, the quality was very blurred. Add more frames to skip and set fixed fps.

Fix except.

Version bump 3.5

Add new function to create image.

Delete and create actions with modal dialogues to confirm.

Cleanup code
Add new function to create image.

Delete and create actions with modal dialogues to confirm.

Cleanup code
clean up files

filter N/A invalid messages

update changelog
Warning was thrown a lot. Create the missing status data if element was not present.
CheckNTPandAdjustClockandResetSched was not triggered
@ChuckNorrison
Copy link
Author

Revert version bump 3.5, new version is 3.44

Based on Hydrosys4#17

Add default values for server and port.
interrupt = yellow
mail = olive
network = purple
autowatering = blue

migrate database automatically
dynamically create the secret key
Add Working Mode "None"

"Min Watering" as Text input
Should be triggered once and only if blockingstate was enabled
Change notification nav to a glyphicon

Limit notification width
Advanced setting was just saved temporary
click on question mark has disabled a sensor and it was not possible to enable it again cause of missing enableimg
Thumbnails are 450x450px and thumbnail consistency check was added to "runallconsistencycheck()"
Full bs5 compatible: Home, Data, Images, FertilizerPlan, Settings, Network, HardwareSetting, Video, About, Login
@ChuckNorrison ChuckNorrison deleted the master branch October 24, 2024 18:12
@ChuckNorrison ChuckNorrison restored the master branch October 24, 2024 18:12
@ChuckNorrison ChuckNorrison reopened this Oct 24, 2024
Do not export email credentials to configfilezip
Add automation notifications and improve interrupt notifications
Update preview image
success: and error: are deprecated and replaced with .done and .fail.

Update notify badge after actuator was triggered

Add error message in case of failure to status text

code formatting...
use class hydrotable
Add more notifications, write a new logfile for actuator related behaviours and implement as a logstream with ajax requests. Button added via hardwaresettings as "Show Actuator log"

tweaked loggerconfig

changed dateformat for clockmod and so for logfiles, seconds added

Fix some exceptions
hide confusing custom radio button, this will be used with selected dates button

improve datepicker and change format back to %d/%m/%Y

improve notify badge

logstream logs should not rotate daily
@ChuckNorrison ChuckNorrison changed the title Security fix, cleanup, wifi checks, interrupt notify and typos Front- and Backend rework on Bootstrap 5 and urgent security fixes Oct 30, 2024
Add new button "all" to display all images

Reduce thumbnail size for better mobile view

Increase font size for date in picture banner bottom right. This will make it readable even on full hd images.
For logstream, we dont want to use a timedrotatingfilehandler
Remove unused files

Add missing files
Remove unused files, rename new layout
Rewrite code and reduce complexity

TODO: Auto water Control Chart
bugfix for delete messages call
Add auto watering chart

Each sensor and actuator will get the same color in all charts
Replace jqplot with chartjs for Data view
- remove duplicated js objects for download sensordata
- remove unnecessary structuredClone
- add console logs
- improve dataset filter for duplicates. to show at least 2 datapoints
- some code formatting
Update links, cause the origin branch is not maintained anymore
first try to visualize sensor thresholds for auto watering chart with annotations plugin for chartjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant