{"id":18039398,"url":"https://github.com/scsmith/lightwaverf-sinatra","last_synced_at":"2025-04-05T01:13:33.446Z","repository":{"id":66954306,"uuid":"7329881","full_name":"scsmith/lightwaverf-sinatra","owner":"scsmith","description":"A really simple Ruby Sinatra server that uses the lightwave_rf gem to control the Lightwave RF Wifi Link and devices.","archived":false,"fork":false,"pushed_at":"2013-01-22T19:40:17.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T09:27:56.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/scsmith.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}},"created_at":"2012-12-26T17:30:04.000Z","updated_at":"2020-10-20T09:17:41.000Z","dependencies_parsed_at":"2023-02-20T15:13:40.259Z","dependency_job_id":null,"html_url":"https://github.com/scsmith/lightwaverf-sinatra","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/scsmith%2Flightwaverf-sinatra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsmith%2Flightwaverf-sinatra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsmith%2Flightwaverf-sinatra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scsmith%2Flightwaverf-sinatra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scsmith","download_url":"https://codeload.github.com/scsmith/lightwaverf-sinatra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271527,"owners_count":20911587,"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-30T14:09:20.904Z","updated_at":"2025-04-05T01:13:33.420Z","avatar_url":"https://github.com/scsmith.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LightwaveRF Lightweight Sinatra Web Server\n\nA really simple Ruby Sinatra server that uses the lightwave_rf gem to control the Lightwave RF Wifi Link and devices.\n\nThis sends broadcast messages over the network that the server runs on. Therefore it must be on the same network as the Wifi Link.\n\n## Installation\n\nInstall the required gems:\n\n    $ bundle --path ./vendor/bundle\n\n## Usage\n\nStart the Sinatra Server (Default port is 9292)\n\n    $ bundle exec rackup\n\n### Controlling Devices\n\nThe format for the commands is:\n\n    http://localhost:9292/room/device/action(/level)\n\nExamples:\n\n    # to turn on device 1 in room 1:\n    http://localhost:9292/1/1/on\n\n    # to turn off device 2 in room 3:\n    http://localhost:9292/3/2/off\n\n    # to dim device 1 in room 1 to 50%:\n    http://localhost:9292/1/1/dim/50\n\nNote: This should probably be using `POST` requests instead of `GET` requests but it's easier to create `GET` requests by just navigating with a browser for the purposes of demonstration. If you're going to use this for anything but messing about I'd recommend replacing the method.\n\n## RaspberryPi\n\nThere's also a [branch](https://github.com/scsmith/lightwaverf-sinatra/tree/pi) with some scripts to deploy this onto the RaspberryPi.\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscsmith%2Flightwaverf-sinatra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscsmith%2Flightwaverf-sinatra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscsmith%2Flightwaverf-sinatra/lists"}