Last active
November 15, 2019 16:36
-
-
Save upperwal/5bf0c317bd37f966ba00771d8d9f3624 to your computer and use it in GitHub Desktop.
Air Quality data on Pravah
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip3 install mesh-air-quality | |
from mesh_air_quality.main import MeshAirQuality | |
geospace = [ | |
'/in/ncr' | |
] | |
def main(): | |
c = MeshAirQuality('rpc.pravah.io:5555') | |
feed = c.subscribe(geospace) | |
for m, c in feed: | |
print(m) | |
if '__main__' == __name__: | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment