A Dashing widget to show Slack user presence on a dashboard.
Add the following to your dashing Gemfile
gem 'slack-api'| { | |
| "feed_id":"0x018bfe88407000400000000000000000", | |
| "url":"https://api.real-time-reserves.verinumus.io/v1/chainlink/proof-of-reserves/TrueUSD", | |
| "consumer_address":"0x68B1D87F95878fE05B998F19b66F4baba5De1aed" | |
| } |
| const ethers = require('ethers'); | |
| const LitSDK = require('lit-js-sdk/build/index.node.js'); | |
| const lit = new LitSDK.LitNodeClient(); | |
| await lit.connect(); | |
| const chain = 'mumbai'; | |
| const saveAuthSig = { | |
| sig: "0x<signature1>", |
| $0=10 (step pulse, usec) | |
| $1=255 (step idle delay, msec) | |
| $2=0 (step port invert mask:00000000) | |
| $3=3 (dir port invert mask:00000011) | |
| $4=0 (step enable invert, bool) | |
| $5=1 (limit pins invert, bool) | |
| $6=0 (probe pin invert, bool) | |
| $10=3 (status report mask:00000011) | |
| $11=0.020 (junction deviation, mm) |
| #include <Arduino.h> | |
| #include <Adafruit_NeoMatrix.h> | |
| #define BOARD_WIDTH 10 | |
| #define BOARD_HEIGHT 20 | |
| #define ROWS_PER_GROUP 4 | |
| #define NEO_PIN 7 |
| // This #include statement was automatically added by the Particle IDE. | |
| #include "AccelStepperSpark/AccelStepperSpark.h" | |
| #define STEP_FACTOR 8 | |
| bool forward = true; | |
| // Define a stepper and the pins it will use | |
| AccelStepper stepper(AccelStepper::DRIVER, A1, A2); |
| // This example uses an Arduino/Genuino Zero together with | |
| // a WiFi101 Shield or a MKR1000 to connect to shiftr.io. | |
| // | |
| // IMPORTANT: This example uses the new WiFi101 library. | |
| // | |
| // You can check on your device after a successful | |
| // connection here: https://shiftr.io/try. | |
| // | |
| // by Gilberto Conti | |
| // https://github.com/256dpi/arduino-mqtt |
| require 'aws-sdk' | |
| CONFIG = { | |
| # nil to load from env | |
| :aws_access_key => nil, | |
| :aws_secret_access_key => nil, | |
| :aws_region => nil, | |
| # in seconds |