Probably the easiest way would be to use a custom widget – https://appstore.home.mendix.com/link/app/38862/
This widget is not the easiest to set up. Luckily so there is a demo project to guide you – https://appstore.home.mendix.com/link/app/38864/
Good luck,
-Andrej