SentinelIRIS
This project is a Spring Boot application that connects to an InterSystems IRIS database.
It demonstrates the following scenario:
- Tracking containers, cargo, or vaccines (cold chain).
- Use sensors that collect data (temperature, humidity, location) and send it to a Java backend.
- IRIS stores the data, maintains a history, allows for quick queries, and issues alerts if something goes outside acceptable limits.
- Java can perform real-time or near-real-time processing, trend analysis, and anomaly detection.
Prerequisites
- Docker (for running IRIS and the application)
Running IRIS and the Java application
Using Docker
- Go to the root folder and run the following command in your terminal:
docker-compose up --build
- You need to open IRIS interface:
- Open your web browser and go to
http://localhost:52773/csp/sys/UtilHome.csp
.
- Log in with:
- Username:
_SYSTEM
- Password:
SYS1
- Then you’ll need to create the tables (see below).
Creating the tables
- Go to init.sql file and copy its content.
- In the IRIS web interface, go to “System Explorer” > “SQL”.
- Use the namespace
USER
and paste the SQL commands and execute each one to create the necessary tables.
Simulating Sensor Data
- You can simulate sensor data by running the simulate_sensor.py script.
- Ensure you have Python installed.
- Run the script:
python simulate_sensor.py
API Documentation
- You can access the API Swagger through this URL after you run the application:
http://localhost:8080/swagger-ui.html
Troubleshooting
- Ensure Java and Gradle are installed and available in your PATH.
- For Docker Compose, ensure Docker Desktop is running.
For more details, refer to the source code and configuration files in the project.