This is a repository of API integration examples for Hyperview. The hope is that Hyperview users would find them useful.
- A Hyperview instance.
- API client with the appropriate permissions. API Clients can be created by a Hyperview Administrator.
Please review the API documentation and update the code to suite your needs.
- Scripts are tested with PowerShell 7.x.
- Configuration must be kept in a conf directory next to the script. Full examples are included with the source.
- Depending on your machine's OS and security policy you may need to to run:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy BypassThis sets the execution policy to bypass for the current PowerShell session.
Code has been tested with Python 3.11.2 on Debian 12.
- Change directory into Python folder
cd python- Initialize and activate virtual environment
python3 -m venv .hv_env
source .hv_env/bin/activate- Create settings and edit setting file
cp .env.example .env
# Use your favorite editor to edit the .env file
vi .env- Install requirements
pip install -r requirements.txt- Run example script(s). For example
./01_query_assets_and_get_sensors.py- When you are done, deactivate the virtual environment
deactivateCode has been tested with OpenJDK 21 and Gradle 8.13.
- Change directory into Java example folder
cd java/list_assets_and_sensors - Create settings and edit setting file
cp app/assets/.env.example app/assets/.env
# Use your favorite editor to edit the .env file
vi app/assets/.env- Build and run the application
gradle runContributions are welcome.