Code Monkey home page Code Monkey logo

a2water's Introduction

a2water

Utilities to download and analyze Ann Arbor water utilities use.

This is largely obviated by the city's AquaHawk system.

Downloading water data

If you look on your water bill you'll find a "meterID", like 12345678-0.12. Replace that ID with yours in this "curl" command to get readings for a range of dates.

curl -s 'https://secure.a2gov.org/WaterConsumption/DownloadData.aspx?meterID=12345678-0.12&startDate=3/10/2018&endDate=3/12/2018' > water.html

Parsing water data

It's a funky HTML file. This bit of sed will normalize it back down to something easy to parse.

cat water.html | sed -e 1,4d -e /tr/d -e /table/d -e 's;</td><td>;,;g' -e 's/.*<td>//' -e 's;.</td>.*;;'

Graphing water data

Use your favorite graphing tool. Examples welcomed; the file waterusage.sh here generates a plot.

City provided alert and monitoring tool, "Aquahawk"

The City of Ann Arbor released a reporting and alert monitoring tool, Aquahawk, which you can use once you've registered your meter. It gives you a day-by-day estimate of use, as well as monthly or weekly totals, and you can export by hour, day, or month. The system can also send alerts to a provided cell phone number if it suspects that you have a leak.

a2water's People

Contributors

vielmetti avatar peterhoneyman avatar

Stargazers

Sam Firke avatar

Watchers

 avatar Chris Dzombak avatar James Cloos avatar  avatar Peter Nelson avatar

a2water's Issues

this could be a web service

put in your meter number, get a graph back of usage, in such a way that you don't have to install anything?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.