{"id":15251796,"url":"https://github.com/andy-y-li/gettemp","last_synced_at":"2026-01-03T02:55:48.618Z","repository":{"id":86473888,"uuid":"257850739","full_name":"andy-y-li/getTemp","owner":"andy-y-li","description":"Get temp from rpi.","archived":false,"fork":false,"pushed_at":"2020-04-22T09:16:23.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-02-26T16:17:24.272Z","etag":null,"topics":["csv","curl","golang"],"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/andy-y-li.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":"2020-04-22T09:15:24.000Z","updated_at":"2024-06-19T10:26:52.164Z","dependencies_parsed_at":null,"dependency_job_id":"605b4234-9bdb-4cc1-9400-da00c4df411b","html_url":"https://github.com/andy-y-li/getTemp","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy-y-li%2FgetTemp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy-y-li%2FgetTemp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy-y-li%2FgetTemp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andy-y-li%2FgetTemp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andy-y-li","download_url":"https://codeload.github.com/andy-y-li/getTemp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243941317,"owners_count":20372221,"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":["csv","curl","golang"],"created_at":"2024-09-29T18:06:37.175Z","updated_at":"2026-01-03T02:55:48.591Z","avatar_url":"https://github.com/andy-y-li.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## getTemp\n\n模拟curl命令发送http GET|POST|PUT|DELETE 请求, 这里只实现了GET功能,\n\n 默认是从http://localhost:8080/api/cpu/T 读取数据,配合[pi-db](https://github.com/andy-y-li/pi-db)一起使用。\n\n+ ***编译***\n\n```\n$ go build\n```\n\n\n\n+ ***运行***\n\n  \n\n```\n$  ./getTemp -h         \nUsage of ./getTemp:\n  -method string\n    \trequest method (default \"GET|POST|PUT|DELETE\")\n  -reqBody string\n    \tjson data (default \"{a:x}\")\n  -url string\n    \trequest url (default \"http://localhost:8080/api/cpu/T\")\n    \t\n$ ./getTemp -method GET \n2020-04-21T13:47:03Z,49.7,63.3%\n2020-04-21T13:52:03Z,49.5,23.3%\n2020-04-21T13:57:04Z,48.7,63.3%\n2020-04-21T14:02:04Z,49.5,70.0%\n2020-04-21T14:07:05Z,49.9,25.0%\n2020-04-21T14:12:05Z,48  ,71.7%\n2020-04-21T14:17:05Z,49.8,56.7%\n2020-04-21T14:22:06Z,49  ,26.7%\n2020-04-21T14:27:06Z,48.6,88.3%\n\n# 数据可以重定向到一个csv文件中：\n$ ./getTemp -method GET \u003e rpi.csv\n\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandy-y-li%2Fgettemp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandy-y-li%2Fgettemp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandy-y-li%2Fgettemp/lists"}