pgriess / gridlet Goto Github PK
View Code? Open in Web Editor NEWControl system for a very small (e.g. home-sized) grid.
License: Apache License 2.0
Control system for a very small (e.g. home-sized) grid.
License: Apache License 2.0
Some launch agent runs never terminate. The root cause is unknown, but seems to be related to the macOS host going to sleep, but regardless there should be a limit since this prevents future runs from happening.
Options for fixing this include adopting AbortController
for fetch()
API usage, and/or configuring the launch agent with a timeout.
See Storm Guard.
Candidates for weather data include
Possible heuristics include
CHARGE_BATTERY_FROM_GRID
if there is a triggering weather event (e.g. thunderstorm, high wind, etc) within N hours.Run it on a schedule. Maybe every hour to start with?
I should get an email when StormGuard is activated, possibly by looking for a log pattern. Maybe CloudWatch logs?
Nice to keep this in deployment vs in code.
For running as a long-lived container process outside of AWS etc.
This is triggering a bunch, un-necessarily. Tweak the wind gust values to be a bit higher, maybe? Also heavy rain forecast seems to tickle it a bunch, too.
Add something that can perform logging with better granularity than console.log()
.
Must support verbosity levels.
Should support categories.
Maybe loglevel?
We should have some integration tests that have the Lambda do something end-to-end, in dry-run mode.
See this blog post for some ideas on how we might do this running under Mocha and Docker Compose.
If the ERCOT grid is forecasted to have a small cushion, act like Storm Guard -- switch over to CHARGE_BATTERY_FROM_GRID
.
https://github.com/aws/aws-lambda-nodejs-runtime-interface-client
This might let us do in-process testing where we can mock, rather than setting up fake services for all upstream dependencies (eg Enphase, Tomorrow, etc).
Enphase authentication has stopped working reliably, at least in local testing.
The Lambda deployment seems like it's succeeding often enough that maybe this is something that will go away on its own?
This aligns with how Lambda wants to configure things in the console.
Target Amazon ECR and Docker Hub.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.