Skip to content

Instantly share code, notes, and snippets.

View isaackendall's full-sized avatar
💭
Mechanical Engineer learning software

Isaac Kendall isaackendall

💭
Mechanical Engineer learning software
View GitHub Profile
@andrewreid
andrewreid / flow.json
Last active March 20, 2025 08:16
Node-RED flow for importing Amber Electric wholesale electricity prices into VRM
[
{
"id": "ede00cd79443d77a",
"type": "vrm-api",
"z": "405cbd599f05d654",
"vrm": "9fb7325ee595c4a0",
"name": "Change Dynamic ESS settings",
"api_type": "installations",
"idUser": "",
"users": "",
@hfiennes
hfiennes / agent.nut
Last active November 29, 2020 23:24
imp001 air quality monitoring (with AQI index)
// Ensure we have a default reading
lastreading <- { "pm10":0, "pm25":0, "pm100":0 };
// Code to convert particlate density to AQI index
// based on https://gist.github.com/kfury/822bbba2cb0f946abb73baa156722ab1
function Linear(AQIhigh, AQIlow, Conchigh, Conclow, Conc) {
local a=((Conc-Conclow)/(Conchigh-Conclow))*(AQIhigh-AQIlow)+AQIlow;
return math.floor(a+0.5);
}
@evansims
evansims / example.html
Last active December 13, 2024 20:18
Embedding or sharing a image or photo uploaded to Google Drive.
<a href="https://drive.google.com/uc?export=view&id=XXX"><img src="https://drive.google.com/uc?export=view&id=XXX" style="width: 500px; max-width: 100%; height: auto" title="Click for the larger version." /></a>