An open API service indexing awesome lists of open source software.

https://github.com/a-tal/riz-ui

Vue 3+Typescript UI to control Wiz lights with the Riz API
https://github.com/a-tal/riz-ui

iot smart-lights wiz

Last synced: 5 months ago
JSON representation

Vue 3+Typescript UI to control Wiz lights with the Riz API

Awesome Lists containing this project

README

          


Riz UI


Vue 3+Typescript UI to control Wiz lights with the Riz API.

[![ci-badge]][ci] [![docker-badge]][docker] [![size-badge]][docker] ![lic-badge]

## Dev

### `dev.sh`

- Starts the npm dev server with hot-reloading enabled
- use `--container, -c` to build and start with Docker

## Config

| Env Var | Default | Description |
| --------------- | ------- | ------------------------- |
| VUE_APP_RIZ_API | /v1 | Base path for the Riz API |

## Docker

Run `npm build` first, then `docker build` will create a nginx container for the static files.

Or pull the [automatically built image][docker]: `docker pull ghcr.io/a-tal/riz-ui:master`

## Features

- Add, edit and remove rooms (separate from Wiz room configurations)
- Add, edit and remove lights
- Set brightness, scene, color, temp, cool or warm values for a room or light
- Turn a light on/off (emitting, not power), or reboot a room or light
- Mobile friendly

## Known Limitations

Stale browser states may not be accurate. Some other user could change the state through some other client. You can use the refresh state button(s) to attempt a state resync through the API; or set a new state, which the API will then remember.

## Demo

https://a-tal.github.io/riz-ui/

Has no API backend, but will act as if it did. You can create rooms and lights in them, change settings, etc.

[ci-badge]: https://github.com/a-tal/riz-ui/actions/workflows/ci.yml/badge.svg
[ci]: https://github.com/a-tal/riz-ui/actions/workflows/ci.yml
[docker-badge]: https://ghcr-badge.deta.dev/a-tal/riz-ui/latest_tag?trim=major&label=ghcr.io
[size-badge]: https://ghcr-badge.deta.dev/a-tal/riz-ui/size?tag=master
[docker]: https://github.com/a-tal/riz-ui/pkgs/container/riz
[lic-badge]: https://img.shields.io/github/license/a-tal/riz-ui