{"id":17329956,"url":"https://github.com/coderbyheart/nrf9160-temperature-controlled-relay","last_synced_at":"2025-03-27T05:43:54.435Z","repository":{"id":138005173,"uuid":"291718211","full_name":"coderbyheart/nRF9160-temperature-controlled-relay","owner":"coderbyheart","description":"Temperature controlled relay using the nRF9160 DK","archived":false,"fork":false,"pushed_at":"2020-09-12T15:01:04.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"saga","last_synced_at":"2025-02-01T11:11:10.016Z","etag":null,"topics":["smartvan"],"latest_commit_sha":null,"homepage":"","language":"C","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/coderbyheart.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-08-31T13:08:51.000Z","updated_at":"2021-01-16T02:04:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"4bf3d131-06ed-40b9-b13d-7cc0bfd18ca6","html_url":"https://github.com/coderbyheart/nRF9160-temperature-controlled-relay","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/coderbyheart%2FnRF9160-temperature-controlled-relay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderbyheart%2FnRF9160-temperature-controlled-relay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderbyheart%2FnRF9160-temperature-controlled-relay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderbyheart%2FnRF9160-temperature-controlled-relay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderbyheart","download_url":"https://codeload.github.com/coderbyheart/nRF9160-temperature-controlled-relay/tar.gz/refs/heads/saga","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791927,"owners_count":20672669,"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":["smartvan"],"created_at":"2024-10-15T14:49:55.050Z","updated_at":"2025-03-27T05:43:54.416Z","avatar_url":"https://github.com/coderbyheart.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Temperature controlled relay using the nRF9160 DK\n\nThis implements a temperature controlled relay using the nRF9160 DK:\n\n- temperature is measured via a DHT sensor (AM2302)\n- a relay is switched on, if the temperature is below a threshold\n- the threshold can be increased/decreased by pressing button 2/1\n- it publishes the temperature to the cloud\n- read threshold from cloud\n- override cloud threshold on button press\n\n## LED patterns\n\n- `LED1`: shows relay switch state. On: relay is switched on, Off: relay is switched off\n- `LED2`: on (very shortly) during sensor read\n- `LED3`: signals cloud connectivity state. On: connected, Off: false\n- `LED4`: not used\n\n## Building\n\n### Prepare the Docker image with all build dependencies\n\n    docker build -t sdk-nrf-tcr .\n\n### Build the firmware\n\n    docker run --rm -v ${PWD}:/workdir/ncs/tcr sdk-nrf-tcr \\\n        /bin/bash -c 'cd /workdir/ncs/tcr \u0026\u0026 west build -p always -b nrf9160dk_nrf9160ns'\n\n### Flash the firmware\n\n    nrfjprog -f nrf91 --program build/zephyr/merged.hex --sectoranduicrerase -r --log\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderbyheart%2Fnrf9160-temperature-controlled-relay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderbyheart%2Fnrf9160-temperature-controlled-relay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderbyheart%2Fnrf9160-temperature-controlled-relay/lists"}