Skip to content

SCasarotto/nanoleaf-virtual-skylight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nanoleaf-virtual-skylight

The goal of this project is to use Nanoleaf Canvas tiles and create a virtual skylight based on the current weather.

This project is built with deno because ... all the cool kids are doing it.

Get Started

  1. Clone Repo
  2. Ensure you have deno installed.
  3. Copy the .env.example file and create a .env file. Fill out the fields with your IP Address, Port and Auth Token first. See ".ENV Setup" below.
  4. Run the code deno run --allow-env --allow-read --allow-net index.ts

.ENV Setup

Likely when you first clone this repo you will not have all the required configuration information to just start.

  1. Find the IP address of your Nanoleaf. I did this using my router app but there are many ways. See the Nanoleaf Docs for other options.
  2. In the Nanoleaf Docs they mention the default port is 16021 but also not to hardcode that. At this time I have hardcoded it but may later build a dynamic way to determine it.
  3. Getting the auth token can be done with the getAuthToken function. It simply calls /api/v1/new just as the docs suggest.

BloomSky API

Part of this project has started to use an API for to get near real time images of the sky and weather data.

About

The goal is this project is to use Nanoleaf Canvas tiles and create a virtual skylight based on the current weather

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published