Giter VIP home page Giter VIP logo

aqiduck's Issues

Report certain errors to slack

Some errors should post a slack message

  • If there are API issues when reporting for the first time, post a message (probably depends on the error code from PA)
  • If the JSON has unknown fields, post a message
    Future:
  • If there are repeated issues monitoring the same endpoint, post a message

Raw temperature from purple air sensor is too high

Subtract 8 from the results when reporting them

We’ve found that a correction of 8°F correlates closely to the ambient temperature, while a 4% correction correlates closely to the ambient humidity

Talk to the bot in order to CRUD sensors

This should also ideally change the channel topic

Comands:

  • monitor [SensorName] AQI 40-50 "OK I'll let you know if the [SensorName] AQI drops below 40 or above 50"
  • add sensor NAME ID (defaults to purpleair)
  • remove sensor NAME
  • reload re-initializes all sensors from the JSON

Eventually have conversations like:

  • add sensor "By ID or by zip code?" ID "What is the sensor ID?" 12345 "What do you want to call the sensor?" name "Alright we're now set up in this channel to read from sensor 12345" (changes channel topic)

Use Groups from the PurpleAir API

Monitor temperature

Basic: Set temperature thresholds to monitor
Advanced: Monitor comparison in temperature between two sensors.

Let user know if AQI thresholds are set up correctly

I think right now that if the thresholds aren’t properly named (i.e. if the JSON keys are spelled wrong) the user won’t know that the bot isn’t monitoring anything. When config is loaded/reloaded, just announce what monitoring is going on

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.