{"id":15350498,"url":"https://github.com/takuti/mbed-os-example-treasure-data","last_synced_at":"2025-10-06T23:26:14.467Z","repository":{"id":147156595,"uuid":"154906701","full_name":"takuti/mbed-os-example-treasure-data","owner":"takuti","description":"Sending sensor data from Mbed OS to Treasure Data","archived":false,"fork":false,"pushed_at":"2018-10-31T22:00:32.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-12T07:54:29.107Z","etag":null,"topics":["iot","mbed-os","treasuredata"],"latest_commit_sha":null,"homepage":"","language":"C++","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/takuti.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":"2018-10-27T00:00:16.000Z","updated_at":"2018-10-31T22:00:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"4624b466-274b-42b4-9373-fbd02ebbf683","html_url":"https://github.com/takuti/mbed-os-example-treasure-data","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"72370ca2bd61d0bc8817e33c1554c9b4a5f37c30"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuti%2Fmbed-os-example-treasure-data","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuti%2Fmbed-os-example-treasure-data/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuti%2Fmbed-os-example-treasure-data/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuti%2Fmbed-os-example-treasure-data/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuti","download_url":"https://codeload.github.com/takuti/mbed-os-example-treasure-data/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423494,"owners_count":20936622,"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":["iot","mbed-os","treasuredata"],"created_at":"2024-10-01T11:58:33.917Z","updated_at":"2025-10-06T23:26:09.434Z","avatar_url":"https://github.com/takuti.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Sending Sensor Data from Mbed OS to Treasure Data\n===\n\nThis example is a modified version of [BlackstoneEngineering/mbed-os-example-treasuredata-rest](https://github.com/BlackstoneEngineering/mbed-os-example-treasuredata-rest).\n\n## Running on [mbed-simulator](https://github.com/janjongboom/mbed-simulator)\n\nInstall the simulator with [mbed-cli](https://github.com/ARMmbed/mbed-cli) and [emsdk](https://github.com/juj/emsdk):\n\n```sh\n# ...\ncd /path/to/emsdk\n# Follow installation instructions...\nsource ./emsdk_env.sh\ncd /path/to/mbed-simulator\nnpm install\n```\n\nSet target database name and your API key at the top of [main.cpp](./main.cpp):\n\n```cpp\nconst char *td_database = \"TARGET_DATABASE_NAME\";\nconst char *td_table = \"sensor_data\";\nconst char *td_apikey = \"YOUR_API_KEY\";\n```\n\nPlace this example under `mbed-simulator/demos/`, and build all demos:\n\n```sh\nmv /path/to/mbed-os-example-treasure-data demos/treasure-data\nsh build-demos.sh\n```\n\nUpdate `mbed-simulator/viewer/simulator.html` so you can launch the Treasure Data demo on your web browser:\n\n```diff\ndiff --git a/viewer/simulator.html b/viewer/simulator.html\nindex d52055a..1b46d30 100644\n--- a/viewer/simulator.html\n+++ b/viewer/simulator.html\n@@ -47,6 +47,7 @@\n           \u003coption name=\"ntp\"\u003eTime over UDP\u003c/option\u003e\n           \u003coption name=\"lorawan\"\u003eLoRaWAN\u003c/option\u003e\n           \u003coption name=\"lorawan-abp\"\u003eLoRaWAN (ABP)\u003c/option\u003e\n+          \u003coption name=\"treasure-data\"\u003eTreasure Data\u003c/option\u003e\n         \u003c/select\u003e\n         \u003cbutton id=\"load-demo\"\u003eLoad demo\u003c/button\u003e\n```\n\nLaunch a web server:\n\n```sh\ncd /path/to/mbed-simulator\nnode server.js\n```\n\nLaunch the demo at: http://localhost:7829/#treasure-data\n\nSee the database on the Treasure Data console: https://console.treasuredata.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuti%2Fmbed-os-example-treasure-data","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuti%2Fmbed-os-example-treasure-data","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuti%2Fmbed-os-example-treasure-data/lists"}