Put the loadavg1min.rb
to jobs/loadavg1min.rb
.
Add the code from loadavg1min.erb to the desired dashboard.
Dashing widget to display a bunch of current and coming-up Google Calendar events.
The widget shows only one event and is based on the text-widget which is default in the Dashing installation. The time is displayed as humand-readable time string with the help of MomentJS.
A Dashing job fetches the events of a given public or private calendar url, orders events to match starting time and sends the data to the dashboard. A certain offset can be set for each calendar widget so that it will show the first (data-pre="0"
), the second (data-pre="1"
) or any other following event. For each calendar you'll have to define a name, so that you might assign custom background colors for events of each calendar.
While the main job is called in larger intervalls, there is a second job to be run every minute or so, which kicks out already finished events. In that way processing load on the client (dashboard)
Dashing widget to display weather from forecast.io. This widget was forked from https://gist.github.com/mjamieson/5274790 to add Skycons and the forecast for later in the day.
##Usage
Dashing widget to show the build status of a CircleCI project.
CIRCLE_CI_AUTH_TOKEN
httparty
to your Gemfile and run bundle install
Then:
Simple Dashing widget to countdown until a certain moment. Flashes the widget when finished.
##Usage
To use this widget, copy countdown.html
, countdown.coffee
, and countdown.scss
into the /widgets/countdown
directory.
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
##Preview
Simple Dashing widget (and associated job) to display weather info. Uses Yahoo's weather API.
##Dependencies
Simple Dashing widget (and associated job) to display a Twitter search. Uses Twitter API v1.1.
##Dependencies
Add it to dashing's gemfile:
# Get a next task from some tasks queue, create and start a crawler | |
def start_crawler(): | |
settings = CrawlerSettings() | |
settings.overrides['TELNETCONSOLE_ENABLED'] = 0 | |
settings.overrides['WEBSERVICE_ENABLED'] = False | |
crawler = Crawler(settings) | |
crawler.configure() | |
url = get_url_from_some_queue() |
# Get a next task from some tasks queue, create and start a crawler | |
def start_crawler(): | |
settings = CrawlerSettings() | |
settings.overrides['TELNETCONSOLE_ENABLED'] = 0 | |
settings.overrides['WEBSERVICE_ENABLED'] = False | |
crawler = Crawler(settings) | |
crawler.configure() | |
url = get_url_from_some_queue() |