This feature requires the part number PER-SUSTAIN |
The Image Viewlet allows embedding of images directly into a viewlet. Images can be linked from 3rd party websites or served locally from the Niagara server.
Syntax for loading the image file in the viewlet should resemble the following: http://IP_of_your_station/ord/file:^folder_name/file_name.jpg |
When in URL mode the configuration will contain a single "URL" property which can be configured to point to a static image file.
Tag mode allows a user to reference a dynamic image tag that can do things such as change based off of the currently selected context. For example, let's say each site in your database contains an hs:image tag pointing to specific building image. The Image viewlet could be set up to dynamically change based off of which site was selected. See below for more on how to setup the image tags.
On Niagara, the image tag expects a path relative to the ord portion of the url, so if your image is located at http://yourhost/ord/file:^images/myimage.png your image tag would be a String type tag containing file:^images/myimage.png. |
On SkySpark, the image tag expects a regular URL that the host machine can access. Bin file support will be in a later update. Bin support can be used earlier by referring to the URL for the file op like /api/{proj}/rec/{id of the bin file}/file. Any files uploaded via the folio app in SkySpark will be accessible via an endpoint like this where the project is the project folio where the file was uploaded. |