Commit Graph

1 Commits

Author SHA1 Message Date
Carsten Haitzler 21ac62127c state system - add start of it
Why this? A way to have a shared store of "variables" or states that
any part of e or modules can store some simple things in and thus also
broadcast changes to state, listen to changes in state and react.

I am thinking of things like advertising:

  "/power/ac"               = [ true | false ]
  "/power/battery/low"      = [ true | false ]
  "/power/battery/charging" = [ true | false ]
  "/power/state"            = [ "on" | "sleep" ]
  "/screen"                 = [ "on" | "dim" | "blank" ]
  "/screen/locked"          = [ true | false ]
  "/network/online"         = [ true | false ]
  "/network/location"       = "name of network detected"
2023-01-20 14:47:45 +00:00