GithubHelp home page GithubHelp logo

intelligent-environments-lab / bleed-orange-measure-iaq Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 1.9 GB

Data and analysis relateted to the Bleed Orange, Measure IAQ campaign at the University of Texas at Austin

License: MIT License

Python 8.35% Jupyter Notebook 91.54% Shell 0.11%
iaq co2 tvoc pm python

bleed-orange-measure-iaq's Introduction

License: MIT Code style: black GitHub top language

Bleed Orange Measure IAQ

Data and analysis relateted to the Bleed Orange, Measure IAQ campaign at the University of Texas at Austin. This project is funded by the Green Fund Iniative conducted by UT's Office of Sustainability. For more information regarding the project, please visit the Wiki page.

The home page of the Wiki also serves as a dashboard displaying the current conditions in each space that we are monitoring. The figures are updated every 15 minutes.

Using this Repository

This project's repository contains important software regarding connecting to, downloading, and analyzing data from the project's two commercial indoor air quality (IAQ) sensors: AirThings Wave Plus and Purple Air Indoor PM monitors. To use these software effectively, we recommend cloning the repository to your own machine since many of the scripts rely on the file strcuture that we have created.

Downloading Data

We have developed a few scripts to aid in downloading data from our devices (or yours for that matter) to your local machine.

AirThings

Initially, we relied on the GUI provided by having an AirThings Business account, but we learned that we could use Raspberry Pis (RPis) to connect to the AirThings devices via bluetooth (BT) and query, pull, and store data. We could then leverage our knowledge of using RPis for other projects (see BEVO Beacon) and UT's ubiquitious IoT network to access those data from anywhere. For more detail, visit our other Github project on the AirThings Beacon.

The source code for downloading data from AirThings is simple to use assuming you have set up/have access to the IP addresses of the AirThings Beacons.

  1. Start by editing the airthings_ips.txt file where each line refers to an AirThings Beacon IP address. We connect each of our AirThings Beacons to our Tailscale account which is a free VPN service and provides static IP addresses for each of our devices.

  2. From the command line, run the script with:

python3 make_airthings_dataset.py **options

We have three options that can be specified:

  • start_date: a string of numbers in the format of %m%d%Y specifying the first day you want to consider for data download (inclusive)
  • end_date: a string of numbers in the format of %m%d%Y specifying the last day you want to consider for data download (inclusive)
  • filename: text file to look for containing IP addresses if the default airthings_ips is not desired. This option is useful if you want to partition your devies into different groups based on floor, building, etc.
  1. Check for your data in /data/processed/!

Data will be downloaded from each device, temporarily stored in the /data/interim/ directory, processed, combined, and saved.

Purple Air

More info to come, but check out our very similar project that measures outdoor particulate matter pollution on campus: Bleed Orange, Measure Purple.

  1. Start by determining your Thingspeak APi keys by using this link and updating the latitude and longitude fields so that you create a rectangle around your devices:
https://www.purpleair.com/json?exclude=true&nwlat=<northwest_corner_latitude>&selat=<southeast_corner_latitude>&nwlng=<northwest_corner_longitude>&selng=<southeat_corner_longitude>

The resulting URL will show you a json-like result for all devices in that rectangle. Find your devices and update the [thingspeak_keys.json] with your devices information.


Project based on the cookiecutter data science project template. #cookiecutterdatascience

bleed-orange-measure-iaq's People

Contributors

hagenfritz avatar kingsleynweye avatar

Watchers

 avatar  avatar

Forkers

kylesanchez1

bleed-orange-measure-iaq's Issues

AQI Colors for Dashboard

The colors on the individual heat maps should correspond with AQI values for each parameter. We have developed these previously so they could be easily moved over to this project.

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.