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

feat!(webui): Enhance WebUI + new REST API /process_data #56

Merged
merged 19 commits into from
Aug 2, 2023

Conversation

Slider0007
Copy link
Owner

@Slider0007 Slider0007 commented Jul 30, 2023

  • Reduce overview page loading time and consistent data presentation by
    • providing all needed data with only one REST API call /process_data
    • preload configuration file (config.ini) already in header of index.html and parse only needed parameter
  • Add new REST API /process_data to firmware
{
	"api_name":	        "handler_process_data",
	"timestamp_processed":	"NOT YET SUPPORTED",
	"timestamp_valid":	"main\t2023-07-30T14:45:58+0200\r\ntest\t2023-07-30T14:45:58+0200",
	"actual_value":	        "main\t530.01137\r\ntest\t0",
	"pre_value":	        "main\t530.01137\r\ntest\t0",
	"raw_value":	        "main\t0530.01137\r\ntest\t0",
	"value_status":	        "main\tno error\r\ntest\tno error",
	"rate_per_min":	        "main\t-0.100141\r\ntest\t0.000000",
	"rate_per_round":	"main\t-0.27038\r\ntest\t0",
	"process_state":	"[14:45:58] Publish to MQTT",
	"process_error":	"0",
	"temperature":	        "45",
	"rssi":	                "-59",
	"uptime":	        "  0d 00h 00m 49s",
	"round_counter":	"1"
}
  • Updated webpage title naming and arragement to be better conform with smaller screens
    image
  • Add indication to webpage that this is a fork
  • Add additional webpage shortcut icons
    -> inspired by Shortcut Icon hinzugefügt  jomjol/AI-on-the-edge-device#2530 and @pfeifferch
  • Load tflite list only once and in global variable
  • Increased HTTP server wait time (15s)
  • Keep overview image max at original size without parsing config.ini (only by CSS)
  • Updated OTA page
  • Cleanup not needed webserver context variables

⚠️ ATTENTION - BREAKING CHANGE

  • Legacy REST APIs removed
    • /setPreValue.html
    • /statusflow.html
    • /cputemp.html
    • /rssi.html

BEGIN_COMMIT_OVERRIDE
feat(webui): Enahnce WebUI using new REST API /process_data and some further chnages
feat!(webui): Remove legacy REST APIs
END_COMMIT_OVERRIDE

@Slider0007 Slider0007 merged commit 85ceeba into develop Aug 2, 2023
@Slider0007 Slider0007 deleted the Enhance-WebUI branch August 20, 2023 11:57
@Slider0007 Slider0007 changed the title Enhance WebUI + new REST API /process_data feat!(webui): Enhance WebUI + new REST API /process_data Sep 7, 2023
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