Skip to content

Instantly share code, notes, and snippets.

@upperwal
Last active November 15, 2019 16:36
Show Gist options
  • Save upperwal/5bf0c317bd37f966ba00771d8d9f3624 to your computer and use it in GitHub Desktop.
Save upperwal/5bf0c317bd37f966ba00771d8d9f3624 to your computer and use it in GitHub Desktop.
Air Quality data on Pravah
# 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