04-23-2019, 05:48 PM
I decided to go a different route, and actually like it much better, as I really just wanted an option to view the Google Calendar rather than manipulate it, which could happen using the WebBrowser widget.
Rather than use a WebBrowser Widget, I am going to generate a screenshot of the calendar using Chrome's headless command:
I can run this as a scheduled task using the MS Task Scheduler on the master server that will generate a .png file in the \HTMLRoot folder that will be displayed.
What I like about this is that it will allow it to be viewed with WebRiva.  I am going to do this in a few other places on my Interfaces as well.  I currently have a toggle when logged in via WebRiva, and it will allow me to show a static image rather than a WebBrowser Widget.
Rather than use a WebBrowser Widget, I am going to generate a screenshot of the calendar using Chrome's headless command:
Code:
chrome --headless --disable-gpu --screenshot="C:\Program Files\CQC\CQCData\HTMLRoot\MenuGCal.png" --virtual-time-budget=3000 --hide-scrollbars --window-size=284,528 "http://cqcserver\MenuGCal.html"
I can run this as a scheduled task using the MS Task Scheduler on the master server that will generate a .png file in the \HTMLRoot folder that will be displayed.
What I like about this is that it will allow it to be viewed with WebRiva.  I am going to do this in a few other places on my Interfaces as well.  I currently have a toggle when logged in via WebRiva, and it will allow me to show a static image rather than a WebBrowser Widget.