{"id":15478810,"url":"https://github.com/codekie/litenetcontrol","last_synced_at":"2026-01-07T20:04:23.466Z","repository":{"id":61126812,"uuid":"546637432","full_name":"codekie/litenetcontrol","owner":"codekie","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-19T15:02:13.000Z","size":73,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T14:35:05.917Z","etag":null,"topics":["deno","hacktoberfest","typescript"],"latest_commit_sha":null,"homepage":"","language":"ASP.NET","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/codekie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-06T12:00:31.000Z","updated_at":"2022-10-09T20:03:48.000Z","dependencies_parsed_at":"2023-01-29T22:01:20.643Z","dependency_job_id":null,"html_url":"https://github.com/codekie/litenetcontrol","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/codekie%2Flitenetcontrol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekie%2Flitenetcontrol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekie%2Flitenetcontrol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekie%2Flitenetcontrol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codekie","download_url":"https://codeload.github.com/codekie/litenetcontrol/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246042012,"owners_count":20714147,"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":["deno","hacktoberfest","typescript"],"created_at":"2024-10-02T04:07:44.014Z","updated_at":"2026-01-07T20:04:18.437Z","avatar_url":"https://github.com/codekie.png","language":"ASP.NET","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Litenetcontrol\n\n[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)\n\nThis is a interactive shell to control the [LITENET operation](https://www.zumtobel.com/com-en/products/litenet.html#Operating%20software%20(running%20on%20network%20PC))\nweb interface. As this web interface is rather old and somewhat cumbersome to handle, the shell-approach provides a\n(faster) alternative to control the luminaires.\n\n\n## Status of this project\n\nAt this point, this is just a project for educational purposes and not to be used in a productive environment. Also, the\nconfiguration for the luminaire setup is hard-coded yet and only will work for one certain setup\n(see also the `LuminairePatternBuilder`-class in\n[luminaire-pattern-builder.ts](src/lighting/luminaire-pattern-builder.ts)).\n\n\n## Documentation\n\n[Documentation](docs/index.md)\n\n\n## Features\n\n- Control luminaires over a terminal\n- Pipe a text file with the commands into the CLI to apply a certain setup with one single command\n  (see [examples](etc/examples))\n\n\n## Related\n\nHere are some related projects:\n\n- [lite_netmockserver](https://github.com/codekie/litenet_mockserver) is a mockserver with a GUI, which can be used\n  to test this CLI with.\n\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n\n## Requirements\n\nTo run this project, the [Deno](https://deno.land/)-runtime is required.\n\n\n## Run Locally\n\nClone the project\n\n```bash\n  git clone https://github.com/codekie/litenetcontrol\n```\n\nRun the CLI (the following command attempt to connect to the locally running\n[lite_netmockserver](https://github.com/codekie/litenet_mockserver). The mockserver ignores the values of username and\npassword)\n\n```bash\n  deno run --allow-net --allow-env --allow-read src/repl/index.ts -u username -p password http://127.0.0.1:8000\n```\n\n## Run tests\n\nTo run the tests in this project, run following command:\n\n```bash\n  deno test --allow-read\n```\n\nTo determine the code coverage, run following commands:\n\n```bash\n  deno test --allow-read --coverage=coverage\n  deno coverage coverage --lcov --output=lcov.info\n```\n\nTo view the coverage, you might want to have a look at the \"Coverage Gutters\" plugin in VS Code. Or use the `genhtml`-\ntool to generate a HTML-report.\n\n\n## Manage-script\n\nThis repo contains a \"manage\"-script which runs other scripts with predefined arguments (like NPM-scripts. See also: \n[here](https://dev.to/alexmercedcoder/creating-deno-scripts-like-node-npm-scripts-4350)).\n\n**The usage is:**\n\n```bash\n  deno run --allow-run src/manage.ts \u003ctask_name\u003e\n```\n\n**Following tasks are supported:**\n\n- `start`: Runs the CLI. All arguments after the `task_name` are passed to the CLI\n- `test`: Runs the tests\n- `test-watch`: Re-runs the tests on file modification\n- `coverage`: Runs the code coverage\n\ne.g.:\n\n```bash\n  deno run --allow-run src/manage.ts start -u og1sued -p og1sued http://127.0.0.1:8000\n```\n\n\n## Usage/Examples\n\nUsage:\n\n```\nUsage: index [options] \u003curl\u003e\n\nOptions:\n  -V, --version              output the version number\n  -u, --username \u003cusername\u003e  Username for the login\n  -p, --password \u003cpassword\u003e  Password for the login\n  -r, --record \u003cfile-path\u003e   Records commands and writes them to file\n  -h, --help                 display help for command\n```\n\nThe following command replays a pre-recorded set of commands:\n\n```bash\n    cat etc/examples/demo-pattern.txt | deno run --allow-net --allow-env --allow-read src/repl/index.ts -u username \\\n    -p password http://127.0.0.1:8000\n```\n\n## Motivation\n\n- Provide a (faster) alternative for controlling multiple luminaires to the outdated (and tedious to handle) web\n  interface\n- Try the Deno-runtime\n- Practice Typescript-skills\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekie%2Flitenetcontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodekie%2Flitenetcontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekie%2Flitenetcontrol/lists"}