{"id":18407718,"url":"https://github.com/kamaslau/iot-client","last_synced_at":"2026-04-24T21:31:29.796Z","repository":{"id":93275920,"uuid":"439612216","full_name":"kamaslau/iot-client","owner":"kamaslau","description":"IoT edge computing/gateway client, collecting DHT sensor time serie datas and report to RESTful API.","archived":false,"fork":false,"pushed_at":"2025-09-20T08:20:45.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-20T10:14:51.059Z","etag":null,"topics":["dht11","dht22","iot","nodejs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/kamaslau.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":"2021-12-18T12:42:45.000Z","updated_at":"2025-09-20T08:20:49.000Z","dependencies_parsed_at":"2024-11-06T03:17:16.446Z","dependency_job_id":"a2f254af-19ba-49eb-92fa-16f1bab0c97d","html_url":"https://github.com/kamaslau/iot-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kamaslau/iot-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaslau%2Fiot-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaslau%2Fiot-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaslau%2Fiot-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaslau%2Fiot-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamaslau","download_url":"https://codeload.github.com/kamaslau/iot-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamaslau%2Fiot-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32241565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dht11","dht22","iot","nodejs"],"created_at":"2024-11-06T03:15:05.136Z","updated_at":"2026-04-24T21:31:29.791Z","avatar_url":"https://github.com/kamaslau.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README.md\n\n## Usage\n\nConnect GPIO4 pin with sensor data output, together with 3.3V and GND pins.\n\n```bash\n# Mount overlay to GPIO 4, and persist it between reboots\nsudo sh -c 'echo \"dtoverlay=dht11,gpiopin=4\" \u003e\u003e /boot/firmware/config.txt'\nsudo reboot\n\n# Init .env file, modify and use your own InfluxDB Cloud tokens\ncp .env.sample .env\n\n# Do reading\ngo mod tidy\ngo run ./...\n\n# Build executable\ngo build ./src/main.go # Output file will be placed under ./tmp\n```\n\n## Run in background\n\n```bash\ncd ./Demos/golang-gpio \u0026\u0026 nohup ./tmp/main \u003e output.log 2\u003e\u00261 \u0026\n```\n\n## Run on OS start\n\nUse with systemd:\n\n```bash\n# Initiate systemd config file\nsudo nano /etc/systemd/system/golang-gpio.service\n```\n\n```ini\n[Unit]\nDescription=Golang-GPIO\nAfter=network.target\n\n[Service]\nExecStart=/home/pi/Demos/golang-gpio/tmp/main\nRestart=always\nUser=pi\nWorkingDirectory=/home/pi/Demos/golang-gpio\n\n[Install]\nWantedBy=multi-user.target\n```\n\nAfter that, enable service and start for the first time:\n\n```bash\n# Enable \u0026 start service\nsudo systemctl enable golang-gpio.service\nsudo systemctl start golang-gpio.service\n\n# Check status\nsudo systemctl status golang-gpio.service\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamaslau%2Fiot-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamaslau%2Fiot-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamaslau%2Fiot-client/lists"}