Commit Graph

  • e48e44f287 Implemented the calibration mode and introduced a 'height' value in the mqtt stream, which is (container height - distance measurement). First implementation, so much might still change. I'm thinking about introducing a virtual sensor, but I'm not sure yet what the cleanest implementation will look like. main Maurice Makaay 2020-07-20 02:13:10 +0200
  • e416dab9dd Temperature and humidity are now propagated to the distance sensor. Maurice Makaay 2020-07-20 00:38:03 +0200
  • 2022eb33c5 Got rid of the now useless main.h #include. Maurice Makaay 2020-07-19 16:50:59 +0200
  • 02e5cc2e14 Implemented state change handling using a plugin mechanism for the new AppStateController class. This way, I now have a class that handles all state changes, combined with a loosely coupled plugin for it, which takes care of notifying an communicating the state changes. Maurice Makaay 2020-07-19 16:49:20 +0200
  • 4c5ea8c001 Backup work on making the application state a separate class, so I can keep all state knowledge in one place. Maurice Makaay 2020-07-19 01:14:28 +0200
  • f20ff5a4bb Code cleanup. Maurice Makaay 2020-07-18 16:58:04 +0200
  • 4233764120 Improvement on the button responsiveness. The buttons now work better when pressed during a measurement. Maurice Makaay 2020-07-18 16:57:56 +0200
  • 09f3be6dcb More shuffling of functionality, getting things to match with my standards for 'clean code'. Maurice Makaay 2020-07-18 14:55:41 +0200
  • 7f5f60a6ac Moved callbacks (which live in the top-level namespace) into a separate file, so I have a clear overview of all these. Maurice Makaay 2020-07-15 16:03:16 +0200
  • 578c0aa626 Made the physical led entries private in the UI class, now they are shielded by logical functions. Maurice Makaay 2020-07-15 03:07:08 +0200
  • fd1363dd45 Further cleanup. Most noticably is moving all physical LED logic into the Dough::UI class, providing app-state-dependent logical functions for letting the LEDs represent a given application state. Maurice Makaay 2020-07-15 02:48:44 +0200
  • 52b33de7aa Ahhh.. stupid Maurice, forgot to call setup() on the sensors from the new SensorBase. Sensors are back in order now. Maurice Makaay 2020-07-14 22:05:31 +0200
  • e508f29a3e A bit of cleanup. Maurice Makaay 2020-07-14 21:12:55 +0200
  • 19f754b577 Okay, got some things working again. At least the device doesn't crash anymore :-) The sensors need some work to give correct readings in the new setup. It looks like I'm initializing them twice or so. Fix will follow in the next commit. Maurice Makaay 2020-07-14 15:28:20 +0200
  • 49115a0545 Stashing this as a feature branch, something's broken in the MQTT department and I first have to find out what. Maurice Makaay 2020-07-14 01:21:07 +0200
  • e0bd4b64b8 Stripped deprecated code from DataController. Next stop: fully deprecate that class and introduce a configuration class as replacement for the config handling. Maurice Makaay 2020-07-13 23:05:46 +0200
  • a6e7609d66 Another step towards the new SensorController. It is now also responsible for triggering the measurements based on a simple parameter (after how many seconds to trigger a measurement). Maurice Makaay 2020-07-13 15:48:13 +0200
  • c5547b37ee Removed ugly namespace mentioning at namespace closing brace, which was added by the code formatter. Maurice Makaay 2020-07-12 22:43:35 +0200
  • a31840c479 Completed moving all code into its own Dough namespace, to prevent naming clashes with stuff like WiFi and DHT11. Maurice Makaay 2020-07-12 22:41:23 +0200
  • 3f8eb8b2b8 Going to see if namespaces help structuring the code. Maurice Makaay 2020-07-12 01:52:08 +0200
  • 6b49d62257 Explicitly mark virtual methods as such. Maurice Makaay 2020-07-12 01:42:20 +0200
  • 9db52bad08 Another round of code cleanup. Maurice Makaay 2020-07-12 01:35:07 +0200
  • f1b941d964 Moved measuring and publish into the Measurements class. Further code cleanup steps will follow on this, but committing since we have a nicely working version now. Maurice Makaay 2020-07-11 22:12:59 +0200
  • cebbe092e9 Some steps towards only publishing measurements when significant changes occur. Maurice Makaay 2020-07-11 18:47:15 +0200
  • 10f8fc2290 Extracted the logging functionality into a separate logger, making it easier to log info per module. This also drags less of the UI functionality into low level modules, which seems a lot cleaner to me. Maurice Makaay 2020-07-11 02:13:36 +0200
  • e66b8ccdd5 Code formatting and structuring the project. Maurice Makaay 2020-07-09 21:09:46 +0200
  • ea8723493c Initial import. Maurice Makaay 2020-07-08 01:16:00 +0200