Customizing the Web Interface

You can control the look and feel of the web interface by changing the template that the interface uses. The template is normally placed at \Program Files\Easy Automation\templates\WebserverTemplate.xml, but you can change that by changing the 'Web Server Template' setting. For information on changing settings see Settings. The WebserverTemplate.xml is a standard Easy Automation template file. For more information on how template files work you see Templates.

There are a number of variables in the template whose values are automatically filled in, and the purpose of the template is to surround those values with html. Here is a list of the values and what they contain. All of the elements generated by easy automation have classes set on them that can be used to manipulate the look of the page using a CSS file. Two CSS files ship with Easy Automation. One called desktop.css and one called mobile.css. Using the default template the mobile.css file will only be used if the max width of the device rendering the page is 480 pixels wide or less. Every class used in the UI is defined in desktop.css even if the file does not modify the class, so you can use that file as a reference for all the classes used.

The templates are loaded when the Script Manager starts up. If you make changes to a template the changes will not take place until the script manager is shut down and then restarted.

The Web Server Certificate Used for HTTPS Connections

The other thing you may want to change related to the web interface is the certificate used if you want to access the server using https. The certificate is specified with the 'Web Server Certificate Path' setting. The default certificate is in the modules path and is athyrium.pem. It is a self signed and totally bogus certificate. You can change this with a real certificate that matches the computer the service is running on if you like. If you write scripts that catch http requests, those triggers will also use this same certificate if they are setup to use https as well. See the 'When a web page is requested' trigger in the Easy Automation Editor for more information.

The E-mail Template

There is a second template that can also be customized. That is the EmailTemplate.xml. That template is used to format e-mails from the Script Server. Most of the fields for that template are the same as for the web server template. The fields that are different are...