GrowCab / SpeedSeed3

SS^3
MIT License
14 stars 3 forks source link

Enhancement: Protocols system. #13

Open ethanwillis opened 6 years ago

ethanwillis commented 6 years ago

Currently a standard protocol is hardcoded into the daemon startup by default.

Really we should have an entire Protocols resource that sets up standard light/temp/humidity schedules as predefined protocols. Then we can allow people to easily switch between protocols that are optimized for different plants.

Building on this, the protocols could be loaded into or loaded FROM https://www.protocols.io Then protocols can easily be shared between researchers with SS3 hardware.

ljyanesm commented 6 years ago

Agreed, would still like to have a solution for when there isn't network support (including the backend if possible), an extra component to choose the protocol from disk/online would seem like a sensible thing to do here.

ethanwillis commented 6 years ago

Completely agree. Can design the offline version first and then for an online export we can just translate from the offline version with adapter(s) for any online service for storing protocols via whatever apis they provide.

ljyanesm commented 6 years ago

@ethanwillis

I've taken an initial measure in this direction by adding a rotatelog friendly logger to the python backend. The monitored/settings data is to be persisted both to disk and sent to api/database.