Try to search your question here, if you can't find : Ask Any Question Now ?

Accessing Orion CB with python script

HomeCategory: stackoverflowAccessing Orion CB with python script
Avatarcraig asked 3 months ago

Would like to access orion data using a python script (not using curlor Postman). Below show the python script in my orion.pyscript:

import json
import requests


url_query=("orion_url" % (orion_endpoint))
body_dict = {
  'entities': [
      'type': 'AirQualityObserved',
      'idPattern': '.*',


r_headers = {'Content-Type': 'application/json'}
r =


Running this script dumps the entity information to the console. How do I use the script to subscribe for notification so I get notified (not just dumping context)?

1 Answers
Best Answer
AvatarAmit answered 3 months ago
Your Answer

13 + 2 =

Popular Tags

WP Facebook Auto Publish Powered By :