{"id":28935254,"url":"https://github.com/sensebox/mqtt-osem-integration","last_synced_at":"2026-05-18T19:09:47.696Z","repository":{"id":47187746,"uuid":"115014736","full_name":"sensebox/mqtt-osem-integration","owner":"sensebox","description":"MQTT Client to connect devices on openSenseMap to a MQTT Broker","archived":false,"fork":false,"pushed_at":"2024-12-02T00:23:58.000Z","size":376,"stargazers_count":1,"open_issues_count":12,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-22T19:11:32.791Z","etag":null,"topics":["mqtt","mqtts","opensensemap","ws"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sensebox.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}},"created_at":"2017-12-21T14:32:07.000Z","updated_at":"2024-09-02T11:10:15.000Z","dependencies_parsed_at":"2023-09-28T20:49:38.918Z","dependency_job_id":"32ce3661-7d3f-4bef-8529-f0af7c1ee9a7","html_url":"https://github.com/sensebox/mqtt-osem-integration","commit_stats":{"total_commits":98,"total_committers":4,"mean_commits":24.5,"dds":"0.47959183673469385","last_synced_commit":"5470991ac72117f065789fd4f5bd12ed8c53e9ac"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/sensebox/mqtt-osem-integration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensebox%2Fmqtt-osem-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensebox%2Fmqtt-osem-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensebox%2Fmqtt-osem-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensebox%2Fmqtt-osem-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sensebox","download_url":"https://codeload.github.com/sensebox/mqtt-osem-integration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sensebox%2Fmqtt-osem-integration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276631125,"owners_count":25676657,"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","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["mqtt","mqtts","opensensemap","ws"],"created_at":"2025-06-22T19:11:10.004Z","updated_at":"2025-09-23T19:04:42.519Z","avatar_url":"https://github.com/sensebox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openSenseMap MQTT Integration\n\nMQTT client service for [openSenseMap API]. Connects to remote MQTT brokers and stores incoming messages in the database of openSenseMap. Communication with the main [openSenseMap API] is done through gRPC calls. You can find the .proto file in the [osem-protos] repository.\n\n## Configuration\n\nConfiguration is handled by [node-config].\n\nSee [config/default.json](config/default.json). You should at least configure the connection to the database and the certificates for GRPC. Certificates can either configured directly as strings or can take a path to a file in pem format.\n\n    {\n      \"grpc\": {\n        \"certificates\": {\n          // example for path\n          \"ca_cert\": \"/etc/ssl/certs/My_CA.pem\",\n          // example for stringified certificate (sed -z 's/\\n/\\\\n/g' \u003c certificate.crt)\n          \"server_cert\": \"-----BEGIN CERTIFICATE-----\\nMIIE9DCCAtygAwIBA ... \",\n          \"server_key\": \"-----BEGIN RSA PRIVATE KEY-----\\nMIIJKQIBAAKCAg ...\"\n        }\n      },\n      \"openSenseMap-API-models\": {\n        \"db\": {\n          // See example config json of @sensebox/opensensemap-api-models\n          \"mongo_uri\"\n        }\n      }\n    }\n\n### Development\n\nTo get up and running for development run the following steps:\n\n- Run `npm install`\n- Run `./scripts/setup_certs.sh` for generating development certificates.\n- Set the MQTT URL in row 23 in `./seeds/devices.json`\n- Run `docker-compose up -d`\n\n## Environment variables\n\nIts possible to supply your configuration json through the `NODE_CONFIG` environment variable. It is also possible to configure through custom environment variables:\n\n| Config key | Environment Variable | Description |\n|------------|----------------------|-------------|\n| `mqtt_client.num_retries` | `OSEM_MQTT_NUM_RETRIES` | Number of retries which the MQTT client takes until backing off |\n| `mqtt_client.retry_after_minutes` | `OSEM_MQTT_RETRY_AFTER_MINUTES` | Minutes after the MQTT clients restarts connecting after errors |\n| `grpc.port` | `OSEM_MQTT_GRPC_PORT` | Port on which the gRPC server listens |\n| `grpc.certificates.ca_cert` | `OSEM_MQTT_GRPC_CA_CERT` | CA certificate for gRPC TLS client authentication. Can be specified either as path to a certificate file or the certificate directly. |\n| `grpc.certificates.server_cert` | `OSEM_MQTT_GRPC_SERVER_CERT` | Server certificate for gRPC TLS client authentication. Can be specified either as path to a certificate file or the certificate directly. |\n| `grpc.certificates.server_key` | `OSEM_MQTT_GRPC_SERVER_KEY` | Server certificate key for gRPC TLS client authentication. Can be specified either as path to a key file or the key directly. |\n\n## Container images and Versions\n\nContainer images for this service are created on each push on [Github Container Registry].\n\nStable versions should be tagged using `npm version` and `git push --follow-tags origin master`\n\n[openSenseMap API]: https://github.com/sensebox/openSenseMap-API\n[node-config]: https://github.com/lorenwest/node-config\n[osem-protos]: https://github.com/sensebox/osem-protos/blob/master/mqtt/mqtt.proto\n[Github Container Registry]: https://github.com/sensebox/mqtt-osem-integration/pkgs/container/mqtt-osem-integration\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensebox%2Fmqtt-osem-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsensebox%2Fmqtt-osem-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsensebox%2Fmqtt-osem-integration/lists"}