{"id":15538707,"url":"https://github.com/wailashi/burnlight","last_synced_at":"2026-04-29T17:40:25.913Z","repository":{"id":33899575,"uuid":"37614235","full_name":"wailashi/burnlight","owner":"wailashi","description":"A Raspberry Pi I/O scheduler for lightbulb ageing measurements","archived":false,"fork":false,"pushed_at":"2019-02-28T21:52:07.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-04T06:58:18.759Z","etag":null,"topics":["automation","gpio","raspberry-pi"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"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/wailashi.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}},"created_at":"2015-06-17T18:47:32.000Z","updated_at":"2021-04-11T14:47:55.000Z","dependencies_parsed_at":"2022-09-04T11:00:54.301Z","dependency_job_id":null,"html_url":"https://github.com/wailashi/burnlight","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wailashi/burnlight","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wailashi%2Fburnlight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wailashi%2Fburnlight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wailashi%2Fburnlight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wailashi%2Fburnlight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wailashi","download_url":"https://codeload.github.com/wailashi/burnlight/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wailashi%2Fburnlight/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32437109,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T17:34:55.123Z","status":"ssl_error","status_checked_at":"2026-04-29T17:34:45.749Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["automation","gpio","raspberry-pi"],"created_at":"2024-10-02T12:05:41.235Z","updated_at":"2026-04-29T17:40:25.898Z","avatar_url":"https://github.com/wailashi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Burnlight\nBurnlight is a server and client for automating the control \nof the GPIO pins on a Raspberry Pi.\n\n## Features\n- Run custom schedules controlling one or more GPIO pins.\n- Web API for remote management and monitoring.\n- Paired input and output for feedback on controlled systems.\n\n## Requirements\n* [Flask](http://flask.pocoo.org/) - Serves the API.\n* [gevent](http://www.gevent.org/) - Runs the scheduling threads.\n* [Lark parser](https://github.com/lark-parser/lark) - Parses BSL programs.\n* [gpiozero](https://gpiozero.readthedocs.io) - Controls GPIO outputs on Raspberry Pi computers.\n\n## Getting started on Raspbian\nInstall Burnlight using pip:\n```\n$ pip install burnlight\n```\nStart the server:\n```\n$ burnlightd\n```\nCreate a file `schedule.bsl` with the following contents:\n```\n{\n    loop 10: {\n        (On,1),\n        (Off,1)\n    }\n}\n```\nAdd and start the schedule using the client\n```\n$ burnlight schedules add schedule.bsl --start_time now\n```\n\n\n## Burnlight Scheduling Language (BSL)\nSchedules are described with a simple language.\n\nThe following program will turn the on output for one second each minute for one hour.\n\n```\n{\n    loop 60: {\n        (On,1),\n        (Off,59)\n    }\n}\n```\n\nBSL currently supports programs consisting of sequences of output statements\nand loops.\n\nThe simplest program possible is `{}`, which will do absolutely nothing.\nWe can make it slightly more interesting by using _output statements_.\nAn output statement takes the for `(\u003cstate\u003e,\u003cduration\u003e)` where `\u003cstate\u003e` is\nthe desired output state, `On` or `Off`, and `\u003cduration\u003e` is the duration\nthe output should be in that state in seconds.\n\nThe following program turns the output on for ten seconds:\n```\n{\n    (On, 10),\n    (Off, 1)\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwailashi%2Fburnlight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwailashi%2Fburnlight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwailashi%2Fburnlight/lists"}