For Arduino Uno compatible board.
- Red LED strip via NPN transistor on pin 1
- Four timer buttons, plus timer start buttons, and enlarger button via voltage divider on pin A0
- Rotary encoder on pins A1 and A2
- Relay module on pin A3
| // This assumes that the selector will eventually appear - it'll hang indefinitely otherwise. | |
| // You may need a slight delay after this returns, for the element to have its event handlers attached. | |
| async function waitForElementToExist (selector) { | |
| return new Promise(resolve => { | |
| const observer = new MutationObserver(() => { | |
| const element = document.querySelector(selector) | |
| if (element) { | |
| observer.disconnect() | |
| return resolve(element) |
| import axios from 'axios' | |
| const VERSION = '1.0.0' | |
| class NhostAuth { | |
| constructor (baseUrl) { | |
| this._baseUrl = baseUrl | |
| this.version = VERSION | |
| this._refreshTimeMargin = 45000 |
For Arduino Uno compatible board.
| // Copy this into your console while on the 'Available' tab of https://my.ubtsupport.com/mobile_app_node.php | |
| function tickThings () { | |
| return Promise.all( | |
| [...document.querySelectorAll('.actionAdd')] | |
| .map(el => el.getAttribute('onclick').match(/appManagerStartApprovalFlow\((\d+)\)/)[1]) | |
| .map(number => fetch('https://my.ubtsupport.com/asyncloader.php?async=1&load=mobileappplayapproval', { | |
| credentials: 'include', | |
| headers: { | |
| 'content-type': 'application/x-www-form-urlencoded; charset=UTF-8', |
| module.exports = { | |
| name: '', | |
| authentication: { | |
| providers: { | |
| local: true, | |
| google: false, | |
| facebook: false, | |
| github: false, | |
| }, | |
| provider_urls: { |
| [ | |
| { | |
| "heading": "Activities", | |
| "description": "Activities are appointments/tasks/events on a calendar that can be associated with a Deal, a Person and an Organization. Activities can be of different type (such as call, meeting, lunch or a custom type - see ActivityTypes object) and can be assigned to a particular User. Note that activities can also be created without a specific date/time.", | |
| "endpoint": [ | |
| [ | |
| { | |
| "method": "GET", | |
| "url": "/activities", | |
| "summary": "Returns all activities assigned to a particular user.", |
I hereby claim:
To claim this, I am signing this object: