Skip to content

intolerance/MTConnect-Agent-Stylesheet

 
 

Repository files navigation

MTConnect-Agent-Stylesheet

XML Stylesheet for MTConnect Agents using Bootstrap. This provides a better appearance than the default stylesheet and also adds links to run Probe, Current, and Sample requests.

About

PC

[Agent Stylesheet PC]

Mobile

[Agent Stylesheet Mobile]

File Size

Just over 300 KB. This Includes the necessary files for jquery, bootstrap, and the logo image.

Installation

  1. Download the latest release
  2. Unzip the contents into the "Styles" folder for the MTConnect Agent.
  3. Edit the Agent's configuration file (ex. agent.cfg) to look for the stylesheets as shown below:

Agent.cfg

Files {
    styles {
        Path = ../styles
        Location = /styles/
    }
    Favicon {
        Path = ../styles/favicon.ico
        Location = /favicon.ico
    }
}

DevicesStyle { Location = /styles/Devices.xsl }

StreamsStyle { Location = /styles/Streams.xsl }

  1. Restart Agent
  2. Navigate to Agent's url to view

Customization

This stylesheet is easily customizable using the Custom.css file. Customizations can include any overrides of the standard bootstrap styles such as changing the colors of the panel headers. The logo and link can be changed by editing the following lines in both Devices.xsl and Streams.xsl as shown below:

<a class="navbar-brand" style="padding: 5px 20px;" href="http:https://www.mtconnect.org">
	<img alt="Brand" src="/styles/MTConnect-Logo.png" height="40"/>
</a>

Contributions

Contributions to this project are welcome and please feel free to contact us directly at [email protected].

License

This project is licensed under the MIT software license.

About

XML Stylesheet using Bootstrap for MTConnect Agents

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • XSLT 96.4%
  • JavaScript 3.2%
  • CSS 0.4%