-
Notifications
You must be signed in to change notification settings - Fork 3
1. Installation
This document covers installation and setup of the JasperService
on Niagara:
Jasper is compatible with Niagara 4.10
and later.
The first step is to install the module on both your Workbench and Station instances:
- Download the latest
jasper-rt.jar
from GitHub - Rename the downloaded module to strip the version off (ie:
jasper-rt-0.10.jar -> jasper-rt.jar
) - Copy the renamed module into the
modules/
directory of your Niagara instance (both Workbench and Station) - Restart instance to pick up the new module (both Workbench and Station)
Jasper uses industry-standard HTTP Basic Authentication over TLS to authenticate API access. The default Niagara authentication uses a non-standard digest algorithm originally designed for non-secure HTTP access. So, the first step is to create a new user for granting API access:
- Open Workbench and connect to your station instance
- Open the
baja
palette - Find
HTTPBasicScheme
underAuthenticationServices/WebServicesSchemes
- Drag
HTTPBasicScheme
into your Station underServices/AuthenticationServices/WebServicesSchemes
- Create a new user and set
Authentication Scheme Name
toHTTPBasicScheme
- Verify user
Roles
has sufficient privileges
NOTE: Niagara will not allow a user with HTTPBasicScheme
to login to the WebUI (regardless of TLS settings). So, you will need to test authentication via the API.
Now that you have the jasper-rt
module installed and a new user created, the next step is to setup the JasperService
:
- Open Workbench
- Open the
jasper
palette - Drag the
JasperService
into theServices
component on your Station - The index should automatically be built when the component is added
- Verify in the Station logs that the index ran and completed
Jasper uses an in-memory index to map API requests to points in your Station efficiently. If any changes are made to your Station, the index may be outdated and will need to be rebuilt. You can rebuild the index anytime by right-clicking on the JasperService
and invoking the Rebuild index
action.