Commit Graph

  • cfa0107262 DRY with appSensor code. For battery sensors on Linux, create appropriate sensors based on the battery type. Joshua Rich 2023-04-05 10:25:18 +1000
  • 2a99083e65 sensorUpdate is not battery specific anymore. Joshua Rich 2023-04-04 19:07:45 +1000
  • 15c81ddcc9 The hass response interface now requires a ResponseHandler() function that will handle its own response. Battery sensor worker rewritten to avoid overhead of tracking batteries and sensors to just track sensors. Battery sensors on Linux rewritten to handle tracking batteries and only sending updates for battery properties that change (as per sent from DBus). Joshua Rich 2023-04-04 16:23:08 +1000
  • f18c16b7a0 Remove uneeded declarations. Add some documentation to code. Joshua Rich 2023-04-04 10:36:02 +1000
  • 182296ae67 Rewrite battery_linux code to avoid a timer loop. Joshua Rich 2023-04-03 17:55:55 +1000
  • f5b79a092d Add helper code for Linux DBus access. Utilise this helper code in sensors. Define a way to pass this helper code through a context. Joshua Rich 2023-04-03 12:05:04 +1000
  • 37fa3473f3 Move config to its own package. Create methods to add config as context value. Use a context with a config value attached in worker functions. Create a sensorState struct. Make each sensor type be this base struct. Joshua Rich 2023-04-02 13:59:12 +1000
  • 5ef6292f59 More major work to utilise and inherit a context set at the root level, and handle it being cancelled. Add more helper functions for Linux. Rename and move some code (Home Assistant websocket/api related). Joshua Rich 2023-04-01 21:19:42 +1000
  • cf2cb19001 Major rework of notifications and websocket code. All sensor workers should shut down cleanly. Related to above, better use of contexts and inheritance of them. Joshua Rich 2023-04-01 12:10:54 +1000
  • 9f662b1c51 All sensor workers now support clean-up on app close. Joshua Rich 2023-03-31 17:09:22 +1000
  • 3624fe7ea3 Add a battery state sensor for Linux. Joshua Rich 2023-03-31 16:22:30 +1000
  • d0c43da3f5 Improved app registration window layout and logic. Joshua Rich 2023-03-31 14:35:50 +1000
  • ea903af59a Battery sensors updates on Linux use ticker-based polling. Joshua Rich 2023-03-31 11:40:29 +1000
  • 0d0f8146bd Linux battery sensors PoC code. More cleverer use of interfaces. A sensor can satisfy being its own request to HA as well. Joshua Rich 2023-03-31 10:17:57 +1000
  • d69f68b2ed Major restructure of codebase. Better handling of notifications websocket. HASS API requests can be run in own goroutine. Joshua Rich 2023-03-30 09:42:57 +1000
  • d657e8bd98 Lots of restructure so that root command is simpler. Remove processRequests handler. Requests can be done as needed. Joshua Rich 2023-03-29 13:12:03 +1000
  • a3f2221bb0 Add an icon. Try to improve network handling for notifications websocket. Fix active apps sensors. Joshua Rich 2023-03-28 18:49:51 +1000
  • 692036cff4 Update debug messages to have call traces. Joshua Rich 2023-03-28 11:29:42 +1000
  • ff6a2a881a Notifications working. Joshua Rich 2023-03-27 18:28:54 +1000
  • be9c78f2cd Initial implementation of notification handling. Joshua Rich 2023-03-27 16:29:39 +1000
  • b1cb532fda More code clean-up. Joshua Rich 2023-03-26 18:03:45 +1000
  • 8025d8432d Code clean up. Joshua Rich 2023-03-26 15:43:21 +1000
  • 5876630c1d Adjusted app sensor to provide an active app and running apps count sensor. App sensor request response handling. Joshua Rich 2023-03-26 11:50:08 +1000
  • 270bf8925e Working active app sensor! Joshua Rich 2023-03-25 13:02:14 +1000
  • 32d1f9ac2a Better logic for wating on config to load. Location now updates for Linux devices. Joshua Rich 2023-03-22 14:13:39 +1000
  • 60c556d2d9 Switch to using github.com/rs/zerolog instead of logrus (which is in maintenance mode). Linux location info. Location info runner. Joshua Rich 2023-03-22 13:09:33 +1000
  • 7cc39b7848 Simplify startup. Joshua Rich 2023-03-21 14:34:10 +1000
  • afc0cd3010 Registration flow working. App now properly runs in tray without a root window shown. Joshua Rich 2023-03-21 10:37:58 +1000
  • 928cd832c2 Better registration logic. Add the beginnings of the systray. Joshua Rich 2023-03-17 15:44:29 +1000
  • 7a425e4e82 Initial commit. Anisble playbook to set up a Home Assistant server for testing against via Podman. Functionality to request (and/or find) registration info from the user. Joshua Rich 2023-03-17 10:41:40 +1000