{"id":21380059,"url":"https://github.com/mark-mdo47/sharksandlasers","last_synced_at":"2026-05-19T17:04:41.060Z","repository":{"id":118043242,"uuid":"42220656","full_name":"Mark-MDO47/SharksAndLasers","owner":"Mark-MDO47","description":"Mark's Garage Door Closer Sharks and Lasers Project","archived":false,"fork":false,"pushed_at":"2021-12-21T04:18:33.000Z","size":39488,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T22:43:25.449Z","etag":null,"topics":["destruct-button","garage-door","light-detectors","raspberry-pi","sensors","sharks","speaker"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mark-MDO47.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2015-09-10T03:48:57.000Z","updated_at":"2021-12-21T04:18:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"10e60ed6-3e1b-4c59-9c0f-abd59d51f214","html_url":"https://github.com/Mark-MDO47/SharksAndLasers","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/Mark-MDO47%2FSharksAndLasers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mark-MDO47%2FSharksAndLasers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mark-MDO47%2FSharksAndLasers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mark-MDO47%2FSharksAndLasers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mark-MDO47","download_url":"https://codeload.github.com/Mark-MDO47/SharksAndLasers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858929,"owners_count":20359259,"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":["destruct-button","garage-door","light-detectors","raspberry-pi","sensors","sharks","speaker"],"created_at":"2024-11-22T10:35:21.977Z","updated_at":"2026-05-19T17:04:36.016Z","avatar_url":"https://github.com/Mark-MDO47.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SharksAndLasers\nMark's Garage Door Closer Sharks and Lasers Project\n\n![alt text](https://github.com/Mark-MDO47/SharksAndLasers/blob/master/forFun/Board_AllTogether.png \"Sharks \u0026 Lasers project mocked up\")\n![alt text](https://github.com/Mark-MDO47/SharksAndLasers/blob/master/images/SharksAndLasersPlan_small.png \"Sharks \u0026 Lasers project plan\")\n![alt text](https://github.com/Mark-MDO47/SharksAndLasers/blob/master/forFun/BondFigurines.png \"James Bond figurines from Portugal via EBay\")\n\nThis code supports a personal garage door monitor project for Mark Olson.\nIt involves lasers and light detectors to monitor garage door position.\nThe laser goes through a beam splitter and then to two light detector targets:\none is called \"LaserCheck\" and the other is called \"Bond\" (see below).\nThe LaserCheck should always be off when the laser is off and on when the laser\nis on. The Bond should be off when the laser is off; when the laser is on and\nthe garage door is fully open Bond obstructs the laser and it is off; otherwise\nBond is on.\n\nAlso there are \"hall effect\" magnetic sensors; both off when the garage door is\nin between else either HallSensorClosed or HallSensorOpen for full closed or open.\n\nAdditionally there is a light sensor for the garage opener light, which comes on\nfor a while whenever the garage door is operated.\n\nThere is an output for a relay that will either close or open the door. We try\nto use all our sensors to be really sure we are closing the door and not opening.\n\nThere is a momentary contact self-destruct button which causes us to play a\nself-destruct countdown on the \"bomb\" speaker - a small speaker in the shape\nof a bomb. I don't know why these were ever manufactured but I found one at Fry's.\nFrys.com 7073311 Manufacturer: DGL GROUP\nUPC 822248838241 Model HY-527-WNK\nSee below for explanation of why we do this.\n\nWhen we think the door is open we can close it and we can send an SMS text\nmessage to some telephone numbers from a text file we read. We will only\ntry to close the door once but we may send periodic text messages; not sure\nyet how I want that to work.\n\nWe log info to a Network Attached Storage NAS disk. We make efforts to\nreconnect and write saved status lines if it goes offline for a while.\n\nWe create two simple web pages and try to keep the webserver operating\nif we notice it died. The webpages give status. One for a cell phone,\none for a large screen.\n\nWhy Bond?\nBecause where there are lasers, there must be sharks, and therefore there\nmust be sharks shooting lasers at James Bond, and there must be a self-destruct\nbutton. That much is clear.\n\nThe original James Bond laser scene\n* https://www.youtube.com/watch?v=DoQwKe0lggw\n\nThe original James Bond shark scene\n* https://www.youtube.com/watch?v=JPDhxTbWjuc\n\nThe first Austin Powers sharks with lasers scene\n* https://www.youtube.com/watch?v=Bh7bYNAHXxw\n\nThe second Austin Powers sharks with lasers scene\n* https://www.youtube.com/watch?v=Nh5Lh-tTSZQ\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmark-mdo47%2Fsharksandlasers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmark-mdo47%2Fsharksandlasers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmark-mdo47%2Fsharksandlasers/lists"}