GithubHelp home page GithubHelp logo

detrout / scaqmd_sensor Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 43 KB

home-assistant sensor to watch South Coast AQMD's AQI and Forecast

License: Apache License 2.0

Python 11.21% HTML 38.41% Jupyter Notebook 50.38%
python home-assistant-sensor air-quality

scaqmd_sensor's Introduction

Introduction

This is a small web sensor to poll the California South Coast Air Quality Management Districits OpenData feed for current and forecast air quality.

Installation

It is currently implemented as a custom sensor. You need to add the scaqmd.py file (or a symlink to the file) to your homeassistant configuration directory in the custom_components/sensors/ directory

Usage

To enable the sensor you need to add it to your sensors block. as a platform.

The most important option is station which is the numeric ID for the SC AQMD region you're interested in. The Current Air Quality Map shows the regions with their numeric IDs.

For instance Long Beach is in region 4.

The next option is the mode flag

The default is current for a sensor that is reporting the current AQI reading for this hour.

mode: forecast will return tomorrows AQI forecast.

current_url and forecast_url allow overriding the arggis open dataset urls, but I don't expect overriding them will be that useful since the other air quality districts seem to format their data differently.

Usage Example

Here is a complete configuration showing the current and forecast conditions for Long Beach

sensors:
    - platform: scaqmd
      station: 4
    - platform: scaqmd
      station: 4
      mode: forecast

scaqmd_sensor's People

Contributors

detrout avatar

Watchers

 avatar  avatar

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.