grafana / clock-panel

Clock Panel Plugin for Grafana
MIT License
95 stars 62 forks source link

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

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 --env GF_AUTH_ANONYMOUS_ORG_ROLE="Admin" --env GF_AUTH_ANONYMOUS_ENABLED="true" --env GF_AUTH_BASIC_ENABLED="false" --env GF_DEFAULT_APP_MODE="development" --volume $(pwd)/dist:/var/lib/grafana/plugins/clock-panel grafana/grafana
  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