Code Monkey home page Code Monkey logo

configurehue's Introduction

configurehue

The MIT License

Configuration management for Hue bridges.

Use configurehue to manage IP addresses and usernames for Hue bridges. More to come.

Development

The intention is for configurehue to provide three moddable interfaces or layers to allow for integration into any application. Presently these are implemented as three base classes. The 'modding' is then simply subclassing them and providing the missing methods.

User Interface Layer

class InterfaceLayer(object):
class ConsoleInterface(InterfaceLayer):
class KivyInterface(InterfaceLayer):

Grossly oversimplified to merely handle request for bridge link request and feedback. Needs expansion to include listing multiple known bridges and 'last used' information for usernames.

Bridge Interface Layer

class BridgeLayer(object):
class UrllibBridge(BridgeLayer):
class QhueBridge(BridgeLayer):

Meant to handle interactions with the bridge itself, specifically validating, creating and deleting usernames. The generic example uses the Python standard urllib. Additional examples could include usings 'requests' in place of urllib. Alternatively, an application developer may prefer to use facilities provided by the broader hue api that they're using.

Storage Interface Layer

class StorageLayer(object):
class JSONStorage(StorageLayer):
class CWDStorage(StorageLayer):

The base class utilizes an internal structure comparable to the layout of the 'get configuration' command. Therefore, it's assumed to be serializable and the basic subclass example uses JSON and handles the file system interaction. The intent is to provide enough virtualization that an application-wide configuration manager could be hooked in.

Contributions

Welcome at https://github.com/Overboard/configurehue

Status

Planning, Alpha.

configurehue's People

Watchers

 avatar  avatar  avatar

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.