Skip to content

Instantly share code, notes, and snippets.

@cmaneu
cmaneu / slackWeather.js
Last active January 19, 2024 19:59
Slack slackbot send weather forecast
var request = require("request");
// The Cities IDs can be found on openweathermap.org (make a search, and look the URI)
var cities = [2988507, 5391959];
var slackBotUri = ""; // TODO: Complete
request("http://api.openweathermap.org/data/2.5/group?id="+cities.join(',')+"&units=metric ", function(error, response, body) {
// Maybe we can handle this differently/better ?
if(error != null)
return;

Another Twitter widget is rolling your way! This widget will scroll through the most recent tweets that mention the account associated with the keys! To get this widget up and running you only need to add your keys into this area of twitter.rb:

 config.consumer_key = 'YOUR_CONSUMER_KEY'
 config.consumer_secret = 'YOUR_CONSUMER_SECRET_KEY'
 config.access_token = 'YOUR_ACCESS_TOKEN'
 config.access_token_secret = 'YOUR_ACCESS_TOKEN_SECRET'
@jmb
jmb / README.md
Last active December 8, 2022 08:41
Google Calendar API v3 widget for Dashing

Description

Dashing widget to display the next and some subsequent Google Calendar events using the Google Calendar API v3.

I use this widget to display my shift calendar - see the screenshot below

Set up

This widget works with API v3 and requires a service account to be set up via the Google Developer's Console. Once a project is set up, enable the Calendar API. On the Credentials page create a new OpenID and download the p12 key file - set up the path to this file in the job file and grant the email address access to the relevant calendar.

@hussfelt
hussfelt / README.md
Last active October 13, 2022 07:03
Dashing widget to display an iframe with specified src

dashing-iframe

IFrame plugin for dashing

Description

Dashing widget to display an iframe with specified src

Installation

Create the folder iframe in the /widgets/ directory. Put the files iframe.coffee, iframe.html and iframe.scss in that folder.

@toddq
toddq / README.md
Last active October 13, 2022 07:03 — forked from iainjmitchell/README.md

##Description Simple Dashing widget (and associated job) to display RSS feeds. Based on Iaian Mitchell's News widget.

##Screenshot

##Dependencies nokogiri

htmlentities

@rdempsey
rdempsey / README.md
Last active October 13, 2022 07:03 — forked from toddq/README.md

##Description Simple Dashing widget (and associated job) to display RSS feeds. Based on toddq's News widget. Due to comments about the widget not working for many sites I updated the widget to use Ruby's RSS library. It works quite well now.

##Screenshot

##Dependencies nokogiri

htmlentities

@rahulsom
rahulsom / README.md
Created June 3, 2015 14:55
Confluence Calendar for Dashing

Confluence Calendar for Dashing

This is designed to pull out .ics representations of your calendar from confluence and render upcoming events.

@chelsea
chelsea / README.md
Last active April 26, 2022 18:26
Random Aww

Description

Dashing widget to display a random cute picture from http://reddit.com/r/aww

The display of the widget is heavily based on the Image widget, however it does not prepend the src with 'assets' which allows for external images.

Settings

You can set a placeholder image in the event that reddit is down, or otherwise unresponse. This is set at the top of random_aww.rb as follows:

@matt-snider
matt-snider / README.md
Last active April 6, 2022 21:54
Daily XKCD Dashing Widget

Preview

Description

A Dashing widget that shows the current xkcd comic.

The widget will display the current comic if it was published today, and otherwise it will find a random one. This ensures there is a new comic shown every day.

Dependencies

The only dependency is json.

@robertmarsal
robertmarsal / README.md
Last active March 20, 2022 02:26 — forked from mtowers/README.md
Google Analytics Real Time Visitors Widget for Dashing with OAuth2 Authentication