Skip to content

Commit

Permalink
Merge 7297c27 into a340f15
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Wiedemann authored May 20, 2022
2 parents a340f15 + 7297c27 commit 58f62f2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
41 changes: 21 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,27 @@ Simulator for providing AirQuality Data to FIWARE platforms like [fiware-ops/mar
Configuration can be done via the [Micronaut](https://micronaut.io/) standard mechanisms, e.g. [application.yaml](./src/main/resources/application.yaml) and environment-variables.
Since list-configuration is better readable in yaml, the application.yaml is the recommended way to do it.

| Property | Description | Default |
|-----------------------------------------|-----------------------------------------------------------------------------------------|-----------------------------|
| general.brokerUrl | Url of the broker to send the data to | ```http://localhost:1026``` |
| general.historicDensity | Minutes between the data points generated for historical data. | ```15``` |
| general.startupDelay | Seconds before the simulation starts. Can be used to avoid downstream race-conditions. | ```120``` |
| general.fiwareService | Fiware-Service for sending the data | ```empty``` |
| general.fiwareServicePath | Fiware-ServicePath for sending the data | ```/``` |
| general.aqSimulations[] | List of aq Simulations to be created | ```[]``` |
| general.aqSimulations[0].id | Id to be used for the simulation. Will be generated if not provided. | ```null``` |
| general.aqSimulations[0].lat | Latitude of the aquality data. | ```38.07``` |
| general.aqSimulations[0].longi | Longitude of aq Simulations to be created | ```-1.271``` |
| general.aqSimulations[0].sampleInterval | Sample interval of the datapoints in seconds | ```30``` |
| general.aqSimulations[0].age | Number of days to generate the historical data for.(e.g. today - age) | ```10``` |
| keycloak.enabled | Should the simulation add auth-tokens from keycloak? | ```false``` |
| keycloak.clientId | ClientId to be used at keycloak | ```null``` |
| keycloak.clientSecret | ClientSecret to be used at keycloak | ```null``` |
| keycloak.username | Username to be used at keycloak | ```null``` |
| keycloak.password | Password to be used at keycloak | ```null``` |
| keycloak.realm | Realm to be used at keycloak | ```null``` |
| keycloak.url | URL of keycloak | ```null``` |
| Property | Description | Default |
|-----------------------------------------|----------------------------------------------------------------------------------------|-----------------------------|
| general.brokerUrl | Url of the broker to send the data to | ```http://localhost:1026``` |
| general.historicDensity | Minutes between the data points generated for historical data. | ```15``` |
| general.startupDelay | Seconds before the simulation starts. Can be used to avoid downstream race-conditions. | ```120``` |
| general.fiwareService | Fiware-Service for sending the data | ```empty``` |
| general.fiwareServicePath | Fiware-ServicePath for sending the data | ```/``` |
| general.aqSimulations[] | List of aq Simulations to be created | ```[]``` |
| general.aqSimulations[0].id | Id to be used for the simulation. Will be generated if not provided. | ```null``` |
| general.aqSimulations[0].name | Name to be used for the simulation. | ```test-device``` |
| general.aqSimulations[0].lat | Latitude of the aquality data. | ```38.07``` |
| general.aqSimulations[0].longi | Longitude of aq Simulations to be created | ```-1.271``` |
| general.aqSimulations[0].sampleInterval | Sample interval of the datapoints in seconds | ```30``` |
| general.aqSimulations[0].age | Number of days to generate the historical data for.(e.g. today - age) | ```10``` |
| keycloak.enabled | Should the simulation add auth-tokens from keycloak? | ```false``` |
| keycloak.clientId | ClientId to be used at keycloak | ```null``` |
| keycloak.clientSecret | ClientSecret to be used at keycloak | ```null``` |
| keycloak.username | Username to be used at keycloak | ```null``` |
| keycloak.password | Password to be used at keycloak | ```null``` |
| keycloak.realm | Realm to be used at keycloak | ```null``` |
| keycloak.url | URL of keycloak | ```null``` |

## Run

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class AqSimulation {
// Id to be used for the simulator
private String id;
// name of the device to be simulated
private String name;
private String name = "test-device";
// latitude to be used
private double lat = 38.07;
// longitude to be used
Expand Down

0 comments on commit 58f62f2

Please sign in to comment.