> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-vi-scada/datranvue/web-publishing.md).

# Publish screens to a website

Have DATRANVue save a screen as a JPG picture with an HTML page, so people can view it on a website without being able to control anything.

DATRANVue can automatically generate a JPG image of a selected DATRANVue screen. With a simple file transfer to your website, anyone with a web browser can view the screens without being allowed to control or make changes to the system.

{% hint style="info" %}
**Applies to:** DATRANVue V3.x. V3.17 corrects an issue with writing Vue Forms to JPEG. In V3.18, previously if the client became disconnected from the DATRAN VI it would not automatically reconnect; a fix for this has been put in place.
{% endhint %}

Typical uses:

* You want to publish reservoir levels and weather data to the public via your existing website.
* Your system support contractor receives an SMS alarm after hours and wants to look at the system, via a web browser, to make a more informed decision.
* Your system SCADA manager wants the ability to check the overall system status screen from an Internet café whilst away from work.

![DATRANVue screens published from the DATRAN SCADA server for remote, read-only users](https://3621580088-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fa5hMAUl7E1cWeN5Rghg0%2Fuploads%2FOLnhih35JKv9xPX4avxO%2Fvue-web-publishing.png?alt=media)

## Set up a screen

1. Launch the DATRANVue designer software and open the screen (or "Form") you wish to publish. DATRANVue screens have the file extension ".QML". You may wish to consider slightly modifying existing screens, and saving them as a different name, before publishing to maximise display size or remove any unwanted information.
2. Click on the background of the screen to display the form's properties on the left hand pane.
3. Change the setting for the **Write JPG** property. This configures how often the JPG image is created, for example every minute.
4. Save the form.
5. From DATRANVue designer, select **Tools, Create HTML Wrapper**. This pre formatted wrapper will display the JPG image and instruct the web browser to refresh every 60 seconds.
6. Double click the DATRANVue screen (.QML) and it will now open in the viewer "Run time". After the configured "Write JPG" time, the JPG image will be created in the same folder.

## Publish it

Your IT provider can now complete the final step in publishing the JPG image and HTML wrapper to your web site/intranet. QTech recommends using Windows® Scheduler to FTP the required JPG to your website, however, the HTML wrapper only needs to be uploaded once.

Send your IT provider a copy of this page.

## Things to know

* Each of the screens selected for publishing need to be open in the DATRANVue runtime viewer, although they can be minimised. Please consider this in deployment.
* Any interactive or control "buttons" on the existing DATRANVue screen will not function when published and appear "greyed" out on the JPG image.
