{"id":20279239,"url":"https://github.com/peterhellberg/go-tdtool-api","last_synced_at":"2025-09-10T04:44:59.307Z","repository":{"id":6129733,"uuid":"7358044","full_name":"peterhellberg/go-tdtool-api","owner":"peterhellberg","description":"A simple API in front of the TellStick tdtool written in Go (List and turn devices on/off)","archived":false,"fork":false,"pushed_at":"2015-01-25T11:42:18.000Z","size":172,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T02:39:26.301Z","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/peterhellberg.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}},"created_at":"2012-12-28T18:27:53.000Z","updated_at":"2016-04-08T23:58:54.000Z","dependencies_parsed_at":"2022-07-14T12:50:54.363Z","dependency_job_id":null,"html_url":"https://github.com/peterhellberg/go-tdtool-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterhellberg/go-tdtool-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fgo-tdtool-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fgo-tdtool-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fgo-tdtool-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fgo-tdtool-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterhellberg","download_url":"https://codeload.github.com/peterhellberg/go-tdtool-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterhellberg%2Fgo-tdtool-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274412864,"owners_count":25280199,"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-10T02:00:12.551Z","response_time":83,"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":[],"created_at":"2024-11-14T13:29:02.872Z","updated_at":"2025-09-10T04:44:59.270Z","avatar_url":"https://github.com/peterhellberg.png","language":"Go","readme":"go-tdtool-api\n=============\nA simple API in front of the TellStick tdtool. (Written in [Go](http://golang.org/))\n\n## tdtool\n\nThe tdtool binary is installed when installing the [TelldusCenter](http://www.telldus.se/products/nativesoftware).\n\nYou can also find it in the [telldus-core](https://github.com/telldus/telldus/tree/master/telldus-core) package.\n_(You probably don’t need to install the GUI)_\n\n## TellStick\n\nYou will also need one of these:\n\n[![TellStick](http://www.telldus.se/img/img_start_product_tellstick.jpg)](http://www.telldus.se/products/tellstick)\n\nAnd probably one or two controllable devices. (I’ve got the [Nexa PB-3](http://www.nexa.se/PB3Ny3packsjalvlarande.htm))\n\n## Running in the background\n\n    nohup ./tdtool-api \u0026\n\nThis will try to start a web server on port **8080**\n\n## Using the API\n\n### Listing available devices\n```ruby\ncurl http://localhost:8080/\n```\n#### This should output something along these lines:\n\n    Number of devices: 4\n    1    Lights          ON\n    3    Hörnlampa       ON\n    2    Skrivbordslampa OFF\n    4    Sovrumslampa    ON\n\n### Turning a device _ON_\n```ruby\ncurl -X PUT http://localhost:8080/2/on\n```\n\nThis should output:\n\n    Turning on device 2, Skrivbordslampa - Success\n\n### Turning a device _OFF_\n```ruby\ncurl -X PUT http://localhost:8080/4/off\n```\n\nThis should output:\n\n    Turning off device 4, Sovrumslampa - Success\n\n### Sync calls\n\nYou can also make synchronous requests by adding `/sync` to the end of the path:\n\n```\ncurl -X PUT http://localhost:8080/3/off/sync\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhellberg%2Fgo-tdtool-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterhellberg%2Fgo-tdtool-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhellberg%2Fgo-tdtool-api/lists"}