alenia / aqiduck Goto Github PK
View Code? Open in Web Editor NEWPulls data from PurpleAir AQI monitors and reports data to slack
Pulls data from PurpleAir AQI monitors and reports data to slack
Some errors should post a slack message
Expect 50 to be squarely yellow! Reported on github rather than elbow on the couch by request from @alenia <3
Set up sensors when invited to a channel, stop monitoring when uninvited
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
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 JSONEventually 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)Current implementation is working
TODO:
If I can't subscribe to channel topic change events, do this by responding to @aqiduck reload
or a slash command or something
{name: "AQIDuck #{version} #{instance identifier}"}
and save the group ID{ "sensor_index": 12345 }
DuplicateGroupEntryError
temperature_a
. The temperature
field is averaged.For example @aqiduck report
should respond with the report at that time.
This involves setting up a server to listen to messages coming from slack
Basic: Set temperature thresholds to monitor
Advanced: Monitor comparison in temperature between two sensors.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.