{"id":20563367,"url":"https://github.com/pilotak/docker-sigfox-influxdb","last_synced_at":"2025-05-09T17:33:11.946Z","repository":{"id":42693793,"uuid":"302160674","full_name":"pilotak/docker-sigfox-influxdb","owner":"pilotak","description":"Sigfox callback to InfluxDB convertor ","archived":true,"fork":false,"pushed_at":"2024-10-19T17:33:34.000Z","size":332,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T08:20:27.026Z","etag":null,"topics":["api","influxdb","sigfox","sigfox-callback"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/pilotak.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":"2020-10-07T21:08:14.000Z","updated_at":"2024-10-19T17:33:46.000Z","dependencies_parsed_at":"2024-11-16T05:02:42.012Z","dependency_job_id":null,"html_url":"https://github.com/pilotak/docker-sigfox-influxdb","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fdocker-sigfox-influxdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fdocker-sigfox-influxdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fdocker-sigfox-influxdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pilotak%2Fdocker-sigfox-influxdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pilotak","download_url":"https://codeload.github.com/pilotak/docker-sigfox-influxdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253295833,"owners_count":21885707,"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":["api","influxdb","sigfox","sigfox-callback"],"created_at":"2024-11-16T04:17:52.418Z","updated_at":"2025-05-09T17:33:11.253Z","avatar_url":"https://github.com/pilotak.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sigfox to InfluxDB convertor\n\n[![Docker Build](https://github.com/pilotak/docker-sigfox-influxdb/workflows/build/badge.svg)](https://github.com/pilotak/docker-sigfox-influxdb/actions)\n![Docker Image Size](https://img.shields.io/docker/image-size/pilotak/sigfox-influxdb?color=orange)\n[![Coverage Status](https://coveralls.io/repos/github/pilotak/docker-sigfox-influxdb/badge.svg?branch=master)](https://coveralls.io/github/pilotak/docker-sigfox-influxdb?branch=master)\n\nSimple and effective Sigfox callback to InfluxDB convertor - all set from Sigfox backend.\nThere isn't an easy way of saving data from Sigfox callback mechanism to InfluxDB directly, that's why this API server was created. It's a universal API server where no credentials are required for setting up which allows you to save the data to seperate DBs or measurement tables without restarting the whole thing.\n\n## Install with `docker-compose`\n```yaml\nversion: \"3.6\"\n\nservices:\n  sigfox:\n    container_name: sigfox\n    image: pilotak/sigfox-influxdb\n    restart: always\n    ports:\n      - 4752:8080\n```\n\n## Simple JSON data example\n```json\n{\n  \"db\": {\n    \"host\": \"website.com\",\n    \"database\": \"my_db\",\n  },\n  \"data\": {\n    \"measurement\": \"{device}\",\n    \"fields\": {\n      \"temp\": {customData#temperature}\n    }\n  }\n}\n```\n\nYou can also modify values saved to db, it uses [math.js](https://mathjs.org/docs/expressions/parsing.html#evaluate) where the actual field variable is `x`.\nIn order to apply the math, name has to match with the one under `data.fields`. All other stay the same.\n\n## Full JSON data example\n```json\n{\n  \"db\": {\n    \"host\": \"website.com\",\n    \"database\": \"my_db\",\n    \"port\": 5987,\n    \"username\": \"user\",\n    \"password\": \"123456\"\n  },\n  \"data\": {\n    \"measurement\": \"{device}\",\n    \"fields\": {\n      \"temp\": {customData#temperature}\n    }\n  },\n  \"math\": {\n    \"temp\": \"(x*2)-1.5\"\n  }\n}\n```\n\n## Sigfox backend setting\n![Sigfox Backend](./backend.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fdocker-sigfox-influxdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpilotak%2Fdocker-sigfox-influxdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpilotak%2Fdocker-sigfox-influxdb/lists"}