Git Product home page Git Product logo

lifxtileclock's Introduction

LifxTileClock - Turn Your Lifx Tile Into a Clock

Example Photo

This is a program written in Python that will display the time on a Lifx Tile light.

To run this program you will nedd to update the variable that stores the name of your Lifx Tile. Optionally you can provide a client id (you can make this up). By default the program will check the time every second and update the tiles only when the minute digits have changed. You can reduce this to check less frequently if you want it to. It is possible to choose the forground and background colors by providing floating point RGB values ranging from 0 to 1. The center tile can be configured to be ignored, or a colon can be displayed, or the tile can be filled in with either the forground or background color.

This program works by broadcasting to the network on the Lifx port, and requsting that all the bulbs report their Label. As responses come in, the program will check the label against the TILE_NAME I mentioned above. Once the Tile has been identified, it sends the time to the device and updates that every minute.

The way the numbers are drawn on the tiles, is by statically storing a bitmap of the color data for each pixel in an array. When the time needs to be updated, each tile gets sent a single digit as read from the matching bitmap array.

The Program was designed around a linear arrangement of 5 Lifx Tiles with the first tile being on the left and then four more to the right in a straight row.

WARNING: This is an early version of the program and I make no guarentees that it will work for you. But I plan to continue working on it.

PLEASE: Feel free to reach out to me if you try it out and it doesn't work right. Also feel free to suggest changes and improvements.

lifxtileclock's People

Contributors

devonbeckett 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.