{"id":16991777,"url":"https://github.com/soif/mysensors_monitorsrelay","last_synced_at":"2025-03-22T04:11:39.998Z","repository":{"id":147610998,"uuid":"77675675","full_name":"soif/MySensors_MonitorsRelay","owner":"soif","description":"Relay with Toggle Switch , leds indicators and temperature sensor","archived":false,"fork":false,"pushed_at":"2017-06-05T19:53:29.000Z","size":2870,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T04:33:57.077Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Arduino","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soif.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2016-12-30T09:17:08.000Z","updated_at":"2016-12-30T09:20:48.000Z","dependencies_parsed_at":"2023-05-31T19:00:49.435Z","dependency_job_id":null,"html_url":"https://github.com/soif/MySensors_MonitorsRelay","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soif%2FMySensors_MonitorsRelay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soif%2FMySensors_MonitorsRelay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soif%2FMySensors_MonitorsRelay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soif%2FMySensors_MonitorsRelay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soif","download_url":"https://codeload.github.com/soif/MySensors_MonitorsRelay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244902927,"owners_count":20529115,"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":[],"created_at":"2024-10-14T03:27:12.862Z","updated_at":"2025-03-22T04:11:39.974Z","avatar_url":"https://github.com/soif.png","language":"Arduino","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MySensors (Monitors) Relay\n\n## Introduction\n\nI've two screens attached to my main computer. I prefer to put it to sleep rather than shut it down every day , so I have to shutdown both screens everey evening, and turn them up every morning. \nAs I am lazy, I've designed this node, to be able to either manually turn them on/off, or better, to automatically turn them off/on whenever the computer goes to sleep or wake up.\n\nAs always when adding a node into a room, I've also integrated a sensor to report the romm's temperature, instead of building a separate one.\n\n\n## Features\n\nThis [MySensors](https://www.mysensors.org/)  node provides the following features :\n\n- Controls a Device state (On/Off) using a Relay\n- Switch the Device state via Radio (MySensors)\n- Toggle the Device state using a single push button\n- Feedback the device state using 2 leds (Green and Red)\n- also reports Room temperature every minutes\n- recovers the last state when powering up\n- blinks the green led while sending the temperature\n- blinks the red led while receiving a relay command\n\n\n## Script to trigger Switching the node upon Computer Sleep / WakeUp\n\nOn the Mac, I'm using the [SleepWatcher](http://www.bernhard-baehr.de/) script to trigger a mysensor command, fetching an 'action' URL from [phpMydomo](http://www.phpmydomo.org/doc?a=mysensors), whenever the Mac is going to sleep or to wakeUp. The 2 triggered scripts are as simple as:\n\n**on WakeUp :**\n\n`wget http://IP_OF_MY_PHPMYDOMO/action?type=mysensors\u0026preset=monitors_on`\n\n**on Sleep :**\n\n`wget http://IP_OF_MY_PHPMYDOMO/action?type=mysensors\u0026preset=monitors_off`\n\n\n\n*You would certainly find a equivalent solution on windows on Windows or Linux to trigger a script upon Sleep/WakeUp.*\n\n\n## Schematic and Wiring\n\nFor simplicity, the radio module wiring is not described there. Please refer to this [MySensors Page](https://www.mysensors.org/build/connect_radio) to learn how to  conect the radio module.\n\n![schematic](images/schematic.png)\n\n\n![wiring](images/wiring.png)\n\n\n## License\n\nThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoif%2Fmysensors_monitorsrelay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoif%2Fmysensors_monitorsrelay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoif%2Fmysensors_monitorsrelay/lists"}