Open HTML file from Perspective

So I take it opening a HTML file within perspective scripting can not be done? At least I can not get it to work with the system.net.openURL function or anything else for that matter.

You could pair system.perspective.navigate (with the url parameter) with the WebDev module, which lets you run arbitrary Python scripts upon web requests.

Will this work for a HTML file that is saved on a HD

Where is the HTML file you intend to open? Web browsers don’t generally allow you to access local files, so the most you can do is open a browser tab with the file protocol and leave it to the browser to decide how to open it. You would also need to know the exact path to the file, and it would need to present on each device running your Perspective session.

The WebDev module allows you mount a specific file or folder on the gateway and serve it up using Ignition’s webserver, which allows you to use it as a regular webpage in the browser.

How do you mount a specific file or folder on the gateway and server it up using Ignition’s webserver?

https://docs.inductiveautomation.com/display/DOC81/WebDev#WebDev-MountedFolder

Thank you