Skip to content

Instantly share code, notes, and snippets.

@bacall213
bacall213 / options.js
Last active August 29, 2015 14:00
[Ninjablock] [Beta Dashboard] Webcam Widget
return {
"name": "Webcam",
"deviceMap": [
{ "deviceId": [1004], "minimum": 1, "maximum": 1}, //Webcam
],
"forceDeviceMapGroup": true
}
@bacall213
bacall213 / temperature_icon.svg
Last active December 29, 2015 13:29
Ninja Block SVG Temperature Icon
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bacall213
bacall213 / options.js
Last active December 29, 2015 08:29
[STABLE, FEATURE INCOMPLETE] Ninjablock Health Widget (CPU/RAM/Disk/Download/Upload) with Server Functions for the Ninjablocks BETA dashboard [Width x 1, Height x 2] [Author: Brian Call] [License: MIT]
return {
"name": "Advanced Ninja Health",
"deviceMap": [
{ "deviceId": [500,501,502,503], "minimum": 1, "maximum": 1}, //CPU
{ "deviceId": [520,521,522,523], "minimum": 1, "maximum": 1}, //RAM
{ "deviceId": [530,531,532,533], "minimum": 1, "maximum": 1}, //Network In
{ "deviceId": [540,541,542,543], "minimum": 1, "maximum": 1} //Network Out
{ "deviceId": 2000, "minimum": 1, "maximum": 3} //Sandbox
],
"forceDeviceMapGroup": true
@bacall213
bacall213 / ninjablock_restart_icon.svg
Last active December 29, 2015 05:49
Ninja Block SVG Restart Icon
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bacall213
bacall213 / style.less
Created November 12, 2013 15:19
Experimental Ninjablocks Dashboard Widget Code
/* SENSOR READOUT OPTIONS */
/* Sensor readout */
.value {
//
//
//
/* CPU high/low value arrows */
.highValArrow {
width: 0;
height: 0;
@bacall213
bacall213 / options.js
Last active December 24, 2015 07:39
[STABLE] Ninjablock Universal Widget - Reconfigurable for upload/download/temperature/humidity just by changing a couple variables. Value display spacing and sparkline options are adjusted per the data type being displayed. [NOTE: This widget does not support two of the same device types at the same time (e.g. two temperature displays, two downl…
return {
"name": "Universal Widget (1x1)",
"deviceMap": [
{ "deviceId": 31, "vendor": 0, "minimum": 1, "maximum": 1 }, //Temperature
{ "deviceId": 30, "vendor": 0, "minimum": 1, "maximum": 1 }, //Humidity
{ "deviceId": [530,531,532,533], "minimum": 1, "maximum": 1}, //Network In
{ "deviceId": [540,541,542,543], "minimum": 1, "maximum": 1}, //Network Out
{ "deviceId": 2000, "minimum": 1, "maximum": 2} //Sandbox
],
"forceDeviceMapGroup": true
@bacall213
bacall213 / options.js
Last active December 23, 2015 19:59
Ninjablocks 1x1 Temperature/Humidity Dashboard Widget (Width x 1, Height x 1) (Author: Brian Call) (License: MIT)
return {
"name": "Temperature/Humidity Widget (1x1)",
"deviceMap": [
{ "deviceId": 31, "vendor": 0, "minimum": 1, "maximum": 1 }, //Temperature
{ "deviceId": 30, "vendor": 0, "minimum": 1, "maximum": 1 } //Humidity
],
"forceDeviceMapGroup": true
}
@bacall213
bacall213 / options.js
Last active December 23, 2015 19:09
[OLD] Ninjablocks 1x1 Temperature/Humidity Dashboard Widget
return {
"name": "Temperature/Humidity Widget (1x1)",
"deviceMap": [
{ "deviceId": 31, "vendor": 0, "minimum": 1, "maximum": 1 }, //Temperature
{ "deviceId": 30, "vendor": 0, "minimum": 1, "maximum": 1 } //Humidity
],
"forceDeviceMapGroup": true
}
@bacall213
bacall213 / options.js
Last active December 23, 2015 08:49
[EXPERIMENTAL] Ninjablock Health Widget (CPU/RAM/Disk/Download/Upload) with Server Functions for the Ninjablocks BETA dashboard [Width x 1, Height x 2] [Author: Brian Call] [License: MIT]
return {
"name": "Advanced Ninja Health",
"deviceMap": [
{ "deviceId": [500,501,502,503], "minimum": 1, "maximum": 1}, //CPU
{ "deviceId": [520,521,522,523], "minimum": 1, "maximum": 1}, //RAM
{ "deviceId": [530,531,532,533], "minimum": 1, "maximum": 1}, //Network In
{ "deviceId": [540,541,542,543], "minimum": 1, "maximum": 1} //Network Out
{ "deviceId": 2000, "minimum": 1, "maximum": 3} //Sandbox
],
"forceDeviceMapGroup": true
@bacall213
bacall213 / options.js
Last active December 23, 2015 08:08
Ninjablocks Diskspace Dashboard Widget (Designed for use with https://github.com/bacall213/ninja-diskspace) (Author: Brian Call) (License: MIT)
return {
"name": "Ninja Diskspace",
"deviceMap": [
{ "deviceId": 2000, "minimum": 1, "maximum": 1} // Sandbox device until more specific ID is availble
],
"forceDeviceMapGroup": true
}