Git Product home page Git Product logo

clock-panel's Introduction

Clock Panel Plugin for Grafana

The Clock Panel can show the current time or a countdown/countup and updates every second.

Show the time in another office or show a countdown/countup to an important event.

Plugin options

Options

  • Mode:

    Default is time. If countdown is chosen then set the Countdown Deadline to start the countdown. If countup is chosen then set the Countup Startline to start the countup.

  • 12 or 24 hour:

    Show time in the 12/24 hour format.

  • Timezone:

    This timezones are supplied by the moment timezone library. Timezone can be set or left to default. Default is moment's guess (whatever that is on your computer). Timezone is also used to calculate countdown deadline in countdown mode.

  • Locale:

    Locales for date-formatting are supplied by the moment library. The locale can be set or left to default. Default is moment's guess.

  • Countdown Deadline:

    Used in conjunction with the mode being set to countdown. Choose a date and time to count down to.

    This field also supports dashboard (constant) variables (e.g. ${countdown_target}) to dynamically set the countdown deadline for the Dashboard.

  • Countdown End Text:

    The text to show when the countdown ends. E.g. LIFTOFF

  • Countup Startline:

    Used in conjunction with the mode being set to countup. Choose a date and time to count up from.

  • Countup End Text:

    The text to show before the countup starts. E.g. LIFTOFF

  • Date/Time formatting options:

    The font size, weight and date/time formatting can be customized here. If the seconds ticking annoys you then change the time format to HH:mm for the 24 hour clock or h:mm A for the 12 hour clock, or see the full list of formatting options.

  • Bg Color:

    Choose a background color for the clock with the color picker.

Refresh

  • Sync:

    The clock is paused and only updated when the dashboard refreshes - the clock will show the timestamp for the last refresh.

Screenshots

Development

Using Docker:

  1. Clone the repository and cd to it
  2. make sure you have yarn installed
  3. install project dependencies: yarn install --pure-lockfile
  4. Start the "watch" task: yarn watch
  5. Run a local Grafana instance with the development version of the plugin: docker run -p 3000:3000 -d --name grafana-plugin-dev --volume $(pwd)/dist:/var/lib/grafana/plugins/clock-panel grafana/grafana
    • In the development environment, it might be necessary to disable plugin signature checking for the plugin being developed (see here). Otherwise, by design, Grafana will not load the plugin.
  6. Check the logs to see that Grafana has started up: docker logs -f grafana-plugin-dev
  7. Open Grafana at http://localhost:3000/
  8. Log in with username "admin" and password "admin"
  9. Create new dashboard and add the plugin

To build a production build with minification: yarn build

clock-panel's People

Contributors

7yl4r avatar briangann avatar bulletfactory avatar daniellee avatar eldering avatar jackw avatar jareware avatar kmurphs avatar linkslice avatar marefr avatar mattttt avatar mckn avatar nabilbendafi avatar nopzor1200 avatar pslestang avatar ryantxu avatar schneiderl avatar senfomat avatar sni avatar srclosson avatar torkelo avatar zuchka 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.