I’ve been happily using OpenSprinkler to control my irrigation system this year. One of its many features is logging how long each zone is on, but I haven’t done much with those logs yet. Last weekend, I decided to dig in to the data.
The first thing I did was write a little app that runs every morning, checks the latest logs, and uploads the new data to a SQL database in Azure.
Then I stood out by the water meter and figured out how much water each zone used. That included the startup usage (since water drains out of some heads when the zone is off) and the usage per minute. That let me calculate how much water I’ve been using over the past few months.
I fired up Power Query for Excel and brought in all the data so I could get some nice Power View charts and graphs going. (Note that I could also have used the new Power BI Designer instead of Excel, Power Query and Power View.) I saved that workbook to OneDrive and imported it into PowerBI.com. I set up PowerBI.com to automatically refresh the workbook every morning and show me the charts on a dashboard.
It might sound complicated but it only took me about an hour of work and that included standing out by my water meter for 15 minutes. Now I can fire up the PowerBI.com website every day and analyze my water usage. Since this isn’t based on an actual water flow meter, it won’t help me find leaks, but it does help me get an idea of how much money I’m spending to keep my yard green. I’m also working on some new features that will keep track of the high and low temperatures each day along with the precipitation.
You can get a long way in Power BI before you need to pay for anything so go give it a shot if this sparks some ideas in your head.













The Martian
Last summer, I wrote up my thoughts on The Martian by Andy Weir. It’s an awesome science fiction book based almost completely in the realm of actual science. (The author admits to one intentional deviation in the first few pages to make a better story.) You could quickly summarize the book as “MacGyver on Mars.”
The buzz around this book is ramping up again because trailers for the movie are starting to come out. It’s directed by Ridley Scott and stars Matt Damon. I really enjoyed the book and have high hopes for the movie.
If you’re at all interested in engineering, space, or science fiction, this is one to keep on your radar. I don’t know whether it’s better to read the book or watch the movie first, but personally I’d say you should read the book first because it’s your only option right now! Here are a couple links to get a taste of what you’re in for. Don’t worry about spoiling the book by watching these. He gets stranded on Mars. Surprise! That’s the whole point of the book and you learn that in the first couple pages.
XKCD has a comic this week about the movie too.