{"id":25668465,"url":"https://github.com/borud/tkaq","last_synced_at":"2025-10-06T22:04:21.972Z","repository":{"id":149426961,"uuid":"207349071","full_name":"borud/tkaq","owner":"borud","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-04T13:59:08.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-19T04:15:59.817Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/borud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-09-09T16:03:01.000Z","updated_at":"2019-10-04T13:59:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"6c9d8648-a87b-439a-b884-3dbff05bc598","html_url":"https://github.com/borud/tkaq","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Ftkaq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Ftkaq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Ftkaq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borud%2Ftkaq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borud","download_url":"https://codeload.github.com/borud/tkaq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240462603,"owners_count":19805330,"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":"2025-02-24T10:34:04.623Z","updated_at":"2025-10-06T22:04:16.942Z","avatar_url":"https://github.com/borud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tkaq\n\nThis is a sample program showing how you can extract data from the\nHorde server for NB-IoT and LTE-M based devices.  Since Horde doesn't\ncare much about the payloads it processes the data from the device are\nin an application specific format, so for this tool we included some\ncode for decoding the data from the sensor so you can easily print it\nout in any format you like.  Here we just produce a simple CSV file.\n\nFeel free to clone the program and adapt it for your purposes.  If you\nfeel like doing something exciting with this program (like add output\nformats, feel free to send me a pull request).\n\n# Paging\n\nNote that the data is sorted in reverse chronological order from the\nserver, meaning that the newest dates are first.  This means when\npaging through the dataset N elements at a time, we have to go\nbackwards in time.\n\n# Building\n\n## Prerequisites\n\nYou need to have Go version 1.12.6 or newer since this project uses\nmodules.\n\n## Building for different operating systems\n\nBuilding `tkaq` is quite straight forward.  Below are instructions for\nbuilding it for various platforms.  The binary will turn up in the\n`bin` directory of the project.\n\n### For OSX\n\n    make\n\t\n### For Linux\n\n    GOARCH=amd64 GOOS=linux make\t\n\n### For Windows\n\n\tGOARCH=amd64 GOOS=windows make\n\t\n# Running\n\nIn order to run this program you will need an API token from\n`https://nbiot.engineering/api-tokens-overview` in order to be allowed to access the air quality\ncollection.  Once you have created this token you can either put this\ninto a configuration file named `.telenor-nbiot` which looks like\nthis:\n\n    address=https://api.nbiot.telenor.io\n    token=\u003cyour API token\u003e\n\nor you can make the API address and token available via environment\nvariables:\n\n    export TELENOR_NBIOT_ADDRESS=\"https://api.nbiot.telenor.io/\"\n\texport TELENOR_NBIOT_TOKEN=\"\u003cyour API token\u003e\"\n\nThe build process produces one binary `bin/tkaq`.  If you invoke it\nwith the `-h` flag it will display the command line options.\n\n    $ bin/tkaq -h\n    Usage:\n      tkaq [OPTIONS]\n\n    Application Options:\n      -c, --collection-id= Collection ID (default: 17dh0cf43jfi2f)\n      -p, --pagesize=      Number of datapoints to return per page (default: 500)\n      -s, --start-time=    Start date and time in RFC3339 format\n\n    Help Options:\n      -h, --help           Show this help message\n\t  \nSo in order to list every datapoint since midnight 2019-10-01 UTC you\nissue the command:\n\n    bin/tkaq -s 2019-10-01T00:00:00Z\n\t  \n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborud%2Ftkaq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborud%2Ftkaq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborud%2Ftkaq/lists"}