Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 824 Bytes

File metadata and controls

50 lines (31 loc) · 824 Bytes

API and CLI for lights at KA23

Screenshot of API docs

Install

with pipx

pipx install git+https://github.com/Northo/simula-lights-api

This will install the lights command.

with poetry

This is suitable if you want to develop on the package.

Clone the repo and run poetry install.

Usage

You must give your office number as the first argument:

lights ROOM

With no other arguments, the lights are reset:

lights ROOM

You can also specify brightness or color with a range 0-4:

lights ROOM brightness 2

or

lights ROOM color 3

Credits

The script is written by minrk and packaged by finsberg The script was wrapped as an API by northo.