Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hivemq/axis-datahub
https://github.com/hivemq/axis-datahub
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/hivemq/axis-datahub
- Owner: hivemq
- License: apache-2.0
- Created: 2024-06-13T16:44:17.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-13T17:05:58.000Z (5 months ago)
- Last Synced: 2024-06-13T19:56:00.793Z (5 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Axis-Datahub
To install the needed resources for the Axis demo Datahub processing step we need to upload two schema definitiopns (one for the input JSON and for for formatting the output JSON) along with a script and a policy. Therefore execute the following commands on the HiveMQ broker to upload all definintions to the HiveMQ datahub.
```
mqtt hivemq schema create --id linecrossing --type json --file linecrossing.json
mqtt hivemq schema create --id linecrosswithnumber --type json --file linecrosswithnumber.json
mqtt hivemq script create --id=extract_count --file=extract_count.js --type=transformation
mqtt hivemq data-policy create --file=CheckLineCrossSchema.json```
If needed you can add the ` --url=url` as the URL of the HiveMQ REST API endpoint (default http://localhost:8888)
Also be careful before uploading the data to the datahub to make sure that you alter line 4 of the data policy file `CheckLineCrossSchema.json` file so the topic matches the one you wrote down when creating the MQTT event on the camera.
It should look like this (but with your serial etc):
`"topicFilter": "axis/B8A44F284388/event/tns:axis/CameraApplicationPlatform/ObjectAnalytics/#"`