3 ms·
The solar panels are shared between the fridge and some batteries. His house computer is connected to the charge controller of the panels, to the fridge AC inve
by icebraining 7y ago
The solar panels are shared between the fridge and some batteries. His house computer is connected to the charge controller of the panels, to the fridge AC inverter and to thermometers inside and outside the fridge to decide whether to turn on the AC inverter. It also generates graphs of the temperatures, running times, etc. And it warns him if the fridge temperature gets too low.
That said, I think the 3k lines include adapters for talking to the sensors, etc. The algorithm itself is about 250 lines: https://git.joeyh.name/index.cgi/joey/house.git/tree/src https://git.joeyh.name/index.cgi/joey/house.git/tree/src
- munk-a 7y agoAh, that's reassuring, I'm rather afraid of anybody who brags about how many LoC their thing is - ideally it is somewhere near the lowest reasonable LoC to get a thing done cleanly and expressively. Oh, also, Haskell - nice going fridge fellow.
- icebraining 7y agoYeah, he's also the guy who created git-annex, one of the most useful Haskell programs ever, in my opinion.