Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

An Introduction to Dashing and Smashing


Published on

Dashing is a Sinatra based framework that lets you build
exceptionally handsome dashboard framework in Ruby and Coffeescript.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

An Introduction to Dashing and Smashing

  2. 2. Key Features 1. Dashing is a Sinatra based framework that lets you build beautiful dashboards. 2. Use premade widgets, best for Sysadmins. 3. Widgets harness the power of data bindings to keep things dry and simple. 4. Use the API to push data to your dashboards, or make use of a simple ruby DSL for fetching data. 5. Drag & drop interface for re-arranging your widgets. 6. It’s optimized and created for displaying custom dashboards on TV. 7. It’s Opensource.
  3. 3. Use cases.
  4. 4. Important Directories Dashboards — one .erb ( Embedded Ruby with HTML ) file for each dashboard that contains the layout for the widgets. Jobs — Your ruby jobs for fetching data Widgets — All the html/css/coffee for individual widgets
  5. 5. Dashboard Config Data-id : Could be anything ( type : string ), it will be used to push data from scheduler. Data-view : Widget name/type. Data-title : Title for your widget
  6. 6. Jobs Config Ruby scripts under jobs directory are deployed to push data into widgets. Create a sample job template by command # dashing generate job myapi Update scheduler by seconds or minutes as 30s or 30m Store final output to a variable and send it to dashboard for respective data-id. Data can be pushed into respective widgets calling dashing API too externally. curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "current": 100 }' http://localhost:3030/widgets/karma
  7. 7. Widgets • There are around 200 + widgets to use, it’s covers almost everything. • Widgets can be found in the link • Installation : Download and move it into the widgets folder. • Every widget has a HTML file with data-bind parameter, use it to pass data to respective html div using the jobs scheduler.
  8. 8. Demo
  9. 9. Official Links & Info Webpage : GitHub Repo : Download link : Realtime Application : Nagios Dashboard using Dashing ( ) Note : Dashing still works great, but is no longer maintained. Smashing is a fork of Dashing, which is maintained and supported. Smashing Offcial Link :