The ctrlX CORE offers several solutions for Web User Interface (UI), one being WebIQ from SMARTHMI. WebIQ offers the user has full flexibility to extend the Web UI functionality with additional code (HTML5, Javascript, CSS).
This video shows an example:
How to centrally manage and serve assets (images, videos, etc.) from a common “Python file server” running on its own computer. It will serve the required assets to the browser, which displays them to the WebIQ UI, that runs in the ctrlX CORE(s).
Find the source code in the ctrlX developer community (link below) by searching under How-To for
“Load assets into WebIQ over REST API”
Useful Links:
Flask: https://flask.palletsprojects.com/en/2.2.x/
WebIQ: https://www.smart-hmi.com/
Video topics
00:09 Introduction
00:13 Explanation of the WebIQ Web UI HMI example, storing of assets rendered in the browser
00:28 WebIQ HMI asset (images, videos, widgets, etc.) storage inside the ctrlX CORE
00:57 WebIQ HMI asset (images, videos, widgets, etc.) storage outside the ctrlX CORE
02:02 WebIQ project review for external asset storage
- Review WebIQ local script for downloading assets
- Axios REST API get request
- Encoding the response of axios.get REST API as base64 string
- Store base64 strings as image sources to display in browser
06:57 Custom widgets that display image and video assets
- Check for image source strings stored in browser
- Add to list of images to display in widget
09:13 Python http server for asset storage outside the ctrlX CORE
- Defining Flask routes
- Function of drop-down directory list selection in WebIQ HMI
Product documentation, go to
https://bit.ly/39Kgx64 and search for “en ctrlX”
Visit ctrlX AUTOMATION at https://bit.ly/3scRezN
The online site to
- become a member of the ctrlX AUTOMATION COMMUNITY
- explore the many Apps in the ctrlX STORE
- quickly find under How-To information (FAQs, Examples, Technotes and How-To)
- use the ctrlX Forum to post, interact and find solutions
- access the product documentation download area
- go to the ctrlX AUTOMATION in GitHub
Full playlist at:
https://www.youtube.com/playlist?list=PLYFUPeujnKJVpft2-dvQzf9ZDTUA-exk-
Follow @boschrexroth
Bosch Rexroth Facebook: https://www.facebook.com/BoschRexrothUS
Bosch Rexroth Twitter: https://twitter.com/BoschRexrothUS
Bosch Rexroth LinkedIn: https://www.linkedin.com/company/boschrexroth
Bosch Rexroth Instagram: https://www.instagram.com/boschrexrothus