Code Monkey home page Code Monkey logo

traylamp's Introduction

TrayLamp

Adds an icon to the system tray to mimic a Philips Hue API compatible light controlled by HueUpdater.

Stable, Stable & Building, Broken, Broken & Building Stable | Stable & Building | Broken | Broken & Building

Motivation

I use a lamp at work to give our team instant feedback about the status of multiple projects tracked by our CI system.

With more and more people working from home, the lamp at the office is not enough to give everyone feedback.

This simple application shows the status of the lamp in the system tray. It was also my excuse to quickly try out Avalonia ๐Ÿ˜‰

Usage prerequisites

  • Operational HueUpdater installation.

  • Web access to the last-status.json file created by HueUpdater.

  • Basic JSON knowledge to edit the settings file.

Deployment

Unpack the release file wherever you want on your system. I suggest C:\TrayLamp

Open the appsettings.json file with a plain text editor and carefully tweak the values to match your needs.

Here's an attempt to explain each one, although I hope most are self explanatory from the provided sample file.

  • StatusUrl

    URL to the last-status.json file created and updated by HueUpdater

    Example: https://jenkins-server.mycompany.com/userContent/last-status.json

  • DelaySeconds

    Number of seconds between checks.

    You want to set this to a relatively low value to get fast feedback.

    Default value: 5

  • TimeoutSeconds

    Number of seconds after which a check is considered obsolete and is cancelled.

    This value should be lower than DelaySeconds but greater than 0.

    Default value: 2

Finally, make the program start when you login.

On Windows, the easiest way is to add a shortcut to your %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup folder

That's all there is to it.

License

Everything under the folder TrayLamp/Assets/Icons-Source-Original is governed by the free tier of the Freepik - Flaticon license

See the file TrayLamp/Assets/Icons-Source-Original/flaticon_license.pdf for the relevant excerpt.

Also see https://www.freepikcompany.com/legal#nav-flaticon for the full Terms and Conditions.

The rest of this project is licensed under the MIT License - see the LICENSE.md file for details.

Credits

Original lamp icon created by Freepik - Flaticon. Source: https://www.flaticon.com/free-icon/desk-lamp_235602

traylamp's People

Contributors

jorgeyanesdiez avatar

Watchers

 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.