{"id":13834488,"url":"https://github.com/rroemhild/tts-thingsboard-connector","last_synced_at":"2025-10-10T11:37:41.181Z","repository":{"id":136293226,"uuid":"584559971","full_name":"rroemhild/tts-thingsboard-connector","owner":"rroemhild","description":"The Things Stack to ThingsBoard Community Edition connector","archived":false,"fork":false,"pushed_at":"2023-01-02T23:18:47.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T11:37:40.294Z","etag":null,"topics":["lorawan","thethingsnetwork","thingsboard"],"latest_commit_sha":null,"homepage":"","language":"Python","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/rroemhild.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-01-02T23:13:22.000Z","updated_at":"2024-08-14T08:55:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"f0f31e70-fb91-416f-b7cb-e47b2ebcad75","html_url":"https://github.com/rroemhild/tts-thingsboard-connector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rroemhild/tts-thingsboard-connector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rroemhild%2Ftts-thingsboard-connector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rroemhild%2Ftts-thingsboard-connector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rroemhild%2Ftts-thingsboard-connector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rroemhild%2Ftts-thingsboard-connector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rroemhild","download_url":"https://codeload.github.com/rroemhild/tts-thingsboard-connector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rroemhild%2Ftts-thingsboard-connector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003712,"owners_count":26083610,"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-10-10T02:00:06.843Z","response_time":62,"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":["lorawan","thethingsnetwork","thingsboard"],"created_at":"2024-08-04T14:00:35.672Z","updated_at":"2025-10-10T11:37:41.164Z","avatar_url":"https://github.com/rroemhild.png","language":"Python","funding_links":[],"categories":["Integrations"],"sub_categories":["IoT systems"],"readme":"# The Things Stack to ThingsBoard Community Edition connector\n\nPublish uplinks from The Things Stack LoRaWAN Network Server to ThingsBoard Community Edition.\n\nThe ThingsBoard integration feature, where you can directly connect to TTS and consume uplinks, is only available for the ThingsBoard Professional Edition. For the ThingsBoard Community Edition we need a connector to convert uplinks to ThingsBoard data structure.\n\nThis python script connects with MQTT to The Things Stack applications and publishes uplinks to ThingsBoard HTTP API.\n\n## Setup\n\nClone this repository and install the requieremnts:\n\n```\n# Git clone\ngit clone https://github.com/rroemhild/tts-thingsboard-connector.git\n\n# Install python requirements as user or use a python virtualenv\npip install --user -r requirements.txt\n```\n\n## Configuration\n\nCopy the configuration example file `config-example.yaml` to `config.yaml` and open it with your preferred editor.\n\n```yaml\ntb_url: \"http://127.0.0.1:8080\"  # Full URL to the ThingsBoard installation.\ntb_secrets_db: \"secrets.db\"  # Name or path to the SQLite DB file to store ThingsBoard device access keys.\n\ntts_default_mqtt_broker: \"eu1.cloud.thethings.network\"  # The Things Stack MQTT hostname for all applications.\ntts_default_mqtt_port: 8883  # The Things Stack MQTT port. 8883 is for SSL.\ntts_reconnect_interval: 5  # Time in seconds to reconnect to The Things Stack MQTT broker after the connection was reset.\n\n# List with The Things Stack applications linked to ThingsBoard device profiles.\ntts_applications:\n  # Default TTS MQTT broker address will be used.\n  - tts_username: \"TTS_MQTT_USERNAME\"  # TTS application name and tanent: my-app@ttn\n    tts_apikey: \"TTS_MQTT_PASSWORD\"  # TTS application api key for MQTT integration.\n    tb_provision_device_key: \"PROVISION_DEVICE_KEY\"  # ThingsBoard device profile provision key.\n    tb_provision_device_secret: \"PROVISION_DEVICE_SECRET\"  # ThingsBoard device profile provision secret.\n  # Set different mqtt broker address.\n  - tts_username: \"TTS_MQTT_USERNAME\"\n    tts_apikey: \"TTS_MQTT_PASSWORD\"\n    tts_mqtt_broker: \"eu1.cloud.thethings.industries\"  # Different MQTT broker for this TTS application, optinal.\n    tb_provision_device_key: \"PROVISION_DEVICE_KEY\"\n    tb_provision_device_secret: \"PROVISION_DEVICE_SECRET\"\n```\n\n## Run\n\nTry a quick run by execute the `main.py` script:\n\n```bash\npython main.py\n```\n\nFor production, use a process controll system like systemd or supervisor, etc.\n\n### Systemd service file example\n\n```\n[Unit]\nDescription=The Things Stack ThingsBoard Connector\nAfter=multi-user.target\n\n[Service]\nType=simple\nUser=\u003cusername\u003e\nWorkingDirectory=/home/\u003cusername\u003e/tts-thingsboard-connector\nExecStart=/usr/bin/python3 /home/\u003cusername\u003e/tts-thingsboard-connector/main.py\nRestart=always\nRestartSec=3\n\n[Install]\nWantedBy=multi-user.target\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frroemhild%2Ftts-thingsboard-connector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frroemhild%2Ftts-thingsboard-connector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frroemhild%2Ftts-thingsboard-connector/lists"}