Giter Club home page Giter Club logo

wizfs's Introduction

wizfs

A 9Front file server for interacting with Philips Wiz light bulbs by adventuresin9

This uses json.h which is available in 9Front.

usage: wizfs -m "mount point" -s "srv name" -d (set debug true)

The defaults are to mount "wiz" in /n, and post "wizfs" to /srv.

The commands that can be sent to the bulbs;

on : sends "state":true to turn the bulb on off : send "state":false to turn the bulb off pulse: uses the pulse method to make the bulb dim for half a second

All other commands have to be sent as a key=value pair. Known working options are:

state=(0 or 1)(false or true) turns the bulb off or on r=(0-255) for the red LED g=(0-255) for green b=(0-255) for blue c=(0-255) for cool white w=(0-255) for warm white temp=(2200-6500) for warm to cool white light dimming=(10-100) dims the bulbs sceneId=(0-32) sets one of the prepackaged "scenes", note the capital I in Id. speed=(0-200) used for sceneId that cycles through colors, makes is go faster or slower

Sometimes the bulb will send back an error if the value is outside a given range. Other times it will report success, but the value might be looped back around to 0. Like, b=265 looks like b= 10. So bits over a certain value may be truncated by the bulb.

wizfs's People

Contributors

adventuresin9 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

plan9-archive

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.