{"id":17284484,"url":"https://github.com/kdembler/light-flipper","last_synced_at":"2026-04-10T17:07:13.767Z","repository":{"id":109179678,"uuid":"125907441","full_name":"kdembler/light-flipper","owner":"kdembler","description":"Smart contract and Node app for controlling light over Ethereum blockchain","archived":false,"fork":false,"pushed_at":"2018-03-21T20:42:41.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T19:30:41.088Z","etag":null,"topics":["ethereum","node","raspberry-pi","solidity"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kdembler.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":"2018-03-19T19:08:44.000Z","updated_at":"2018-06-25T06:45:00.000Z","dependencies_parsed_at":"2023-05-03T19:34:41.861Z","dependency_job_id":null,"html_url":"https://github.com/kdembler/light-flipper","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/kdembler%2Flight-flipper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdembler%2Flight-flipper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdembler%2Flight-flipper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdembler%2Flight-flipper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kdembler","download_url":"https://codeload.github.com/kdembler/light-flipper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245689568,"owners_count":20656436,"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":["ethereum","node","raspberry-pi","solidity"],"created_at":"2024-10-15T09:54:11.940Z","updated_at":"2025-12-30T23:23:40.160Z","avatar_url":"https://github.com/kdembler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Light Flipper\nLight Flipper is a simple contract allowing to buy, revoke and use flipping lights to control a desk lamp through Raspberry Pi and flipper application.\n\n### Live contract\nYou can mess with my light on Rinkeby at\n```\n0x3167168DA658dfB094F37eC79aD699bA96fEEcE8\n```\nwith abi\n```\n[ { \"constant\": true, \"inputs\": [], \"name\": \"flipped\", \"outputs\": [ { \"name\": \"\", \"type\": \"bool\", \"value\": true } ], \"payable\": false, \"stateMutability\": \"view\", \"type\": \"function\" }, { \"constant\": true, \"inputs\": [ { \"name\": \"\", \"type\": \"address\" } ], \"name\": \"flippingRights\", \"outputs\": [ { \"name\": \"\", \"type\": \"bool\", \"value\": false } ], \"payable\": false, \"stateMutability\": \"view\", \"type\": \"function\" }, { \"constant\": true, \"inputs\": [], \"name\": \"controller\", \"outputs\": [ { \"name\": \"\", \"type\": \"address\", \"value\": \"0x40e5f1822864cbe233fb3286834d2b8f846fa5e9\" } ], \"payable\": false, \"stateMutability\": \"view\", \"type\": \"function\" }, { \"inputs\": [], \"payable\": false, \"stateMutability\": \"nonpayable\", \"type\": \"constructor\" }, { \"anonymous\": false, \"inputs\": [ { \"indexed\": false, \"name\": \"who\", \"type\": \"address\" } ], \"name\": \"BoughtFlippingRights\", \"type\": \"event\" }, { \"anonymous\": false, \"inputs\": [ { \"indexed\": false, \"name\": \"who\", \"type\": \"address\" } ], \"name\": \"RevokedFlippingRights\", \"type\": \"event\" }, { \"anonymous\": false, \"inputs\": [ { \"indexed\": false, \"name\": \"who\", \"type\": \"address\" }, { \"indexed\": false, \"name\": \"newState\", \"type\": \"bool\" } ], \"name\": \"FlippedLight\", \"type\": \"event\" }, { \"constant\": false, \"inputs\": [], \"name\": \"buyFlippingRights\", \"outputs\": [], \"payable\": true, \"stateMutability\": \"payable\", \"type\": \"function\" }, { \"constant\": false, \"inputs\": [], \"name\": \"revokeFlippingRights\", \"outputs\": [], \"payable\": false, \"stateMutability\": \"nonpayable\", \"type\": \"function\" }, { \"constant\": false, \"inputs\": [], \"name\": \"withdraw\", \"outputs\": [], \"payable\": false, \"stateMutability\": \"nonpayable\", \"type\": \"function\" }, { \"constant\": false, \"inputs\": [], \"name\": \"flip\", \"outputs\": [], \"payable\": false, \"stateMutability\": \"nonpayable\", \"type\": \"function\" }, { \"constant\": false, \"inputs\": [ { \"name\": \"_state\", \"type\": \"uint8\" } ], \"name\": \"changeState\", \"outputs\": [], \"payable\": false, \"stateMutability\": \"nonpayable\", \"type\": \"function\" }, { \"constant\": false, \"inputs\": [ { \"name\": \"_controller\", \"type\": \"address\" } ], \"name\": \"changeController\", \"outputs\": [], \"payable\": false, \"stateMutability\": \"nonpayable\", \"type\": \"function\" }, { \"constant\": false, \"inputs\": [], \"name\": \"stealTheMoney\", \"outputs\": [], \"payable\": false, \"stateMutability\": \"nonpayable\", \"type\": \"function\" } ]\n```\n\n![Example GIF](https://thumbs.gfycat.com/UnsteadyBowedHarvestmouse-size_restricted.gif)\n\n## Usage\nTo run your own flipper:\n- Install dependencies\n- Set up your network config in `truffle.js`\n- Run migrations with `truffle migrate` - this will create file `contract.json` making it possible for flipper application to interact with deployed contract\n- Start flipper with `yarn run flipper` - note that accessing GPIO may require administrative privileges. If needed any configuration can be overriden by creating `config.json` file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdembler%2Flight-flipper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkdembler%2Flight-flipper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdembler%2Flight-flipper/lists"}