{"id":18966353,"url":"https://github.com/hivemq/axis-datahub","last_synced_at":"2026-04-04T00:30:17.271Z","repository":{"id":244274123,"uuid":"814761355","full_name":"hivemq/Axis-Datahub","owner":"hivemq","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-13T17:05:58.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T06:12:56.765Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hivemq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-13T16:44:17.000Z","updated_at":"2024-06-13T17:06:01.000Z","dependencies_parsed_at":"2024-06-13T19:56:04.865Z","dependency_job_id":"28e15cc5-ceb6-4a09-bf3e-f84bbf0506bf","html_url":"https://github.com/hivemq/Axis-Datahub","commit_stats":null,"previous_names":["hivemq/axis-datahub"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hivemq%2FAxis-Datahub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hivemq%2FAxis-Datahub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hivemq%2FAxis-Datahub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hivemq%2FAxis-Datahub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hivemq","download_url":"https://codeload.github.com/hivemq/Axis-Datahub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239964515,"owners_count":19725952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T14:36:46.780Z","updated_at":"2026-04-04T00:30:17.217Z","avatar_url":"https://github.com/hivemq.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Axis-Datahub\n\nTo 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.\n\n```\nmqtt hivemq schema create --id linecrossing --type json --file linecrossing.json\nmqtt hivemq schema create --id linecrosswithnumber --type json --file  linecrosswithnumber.json\nmqtt hivemq script create --id=extract_count --file=extract_count.js --type=transformation\nmqtt hivemq data-policy create --file=CheckLineCrossSchema.json\n\n```\n\nIf needed you can add the ` --url=url`  as the URL of the HiveMQ REST API endpoint (default http://localhost:8888)\n\nAlso 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. \n\nIt should look like this (but with your serial etc):\n\n`\"topicFilter\": \"axis/B8A44F284388/event/tns:axis/CameraApplicationPlatform/ObjectAnalytics/#\"`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhivemq%2Faxis-datahub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhivemq%2Faxis-datahub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhivemq%2Faxis-datahub/lists"}