{"id":13638802,"url":"https://github.com/dexterlabora/cmxreceiver-python","last_synced_at":"2025-10-11T20:32:02.949Z","repository":{"id":199498361,"uuid":"70748154","full_name":"dexterlabora/cmxreceiver-python","owner":"dexterlabora","description":"A Cisco Meraki CMX receiver based on Python with Flask","archived":false,"fork":false,"pushed_at":"2020-09-11T08:52:26.000Z","size":16,"stargazers_count":13,"open_issues_count":1,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-09T09:37:56.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dexterlabora.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-10-12T22:50:19.000Z","updated_at":"2024-05-21T13:07:25.000Z","dependencies_parsed_at":"2023-10-10T15:47:28.571Z","dependency_job_id":null,"html_url":"https://github.com/dexterlabora/cmxreceiver-python","commit_stats":null,"previous_names":["dexterlabora/cmxreceiver-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexterlabora%2Fcmxreceiver-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexterlabora%2Fcmxreceiver-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexterlabora%2Fcmxreceiver-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dexterlabora%2Fcmxreceiver-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dexterlabora","download_url":"https://codeload.github.com/dexterlabora/cmxreceiver-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236126435,"owners_count":19098953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:00:53.880Z","updated_at":"2025-10-11T20:31:57.697Z","avatar_url":"https://github.com/dexterlabora.png","language":"Python","funding_links":[],"categories":["Location"],"sub_categories":["Contents"],"readme":"### cmxreceiver-python\n\n\n### A basic web service to accept CMX data from a Cisco Meraki network\n- Accept a GET request from Meraki and respond with a validator\n- Meraki will POST to server, if validated.\n- POST will contain a secret, which can be verified by the server.\n- JSON data will be in the req.body.data. This will be available in the cmxData function's data object.\n*note: CMX is now called Scanning API in Meraki documentation\n\n## cmxreceiver.py\n-- The basic app will only place the data received on the console. \n\n## cmxreceiver-mongodb.py\n-- Extends the basic app by placing data into a local MongoDB database.\n\n\n## Prerequisites\n* Flask must be installed\nhttp://flask.pocoo.org/docs/0.12/\n\n* Cisco Meraki Network with CMX/Scanning API enabled and configured to point to this server\n\n## Installation and Run\n```\n$ git clone \u003c\u003cthis repo\u003e\u003e\n```\n### Direct Run with Python3\n* Option 1 - Basic Receiver\n```\npython3 cmxreceiver.py -v \u003cvalidator\u003e -s \u003csecret\u003e'\n```\n* Option 2 - Receiver with MongoDB\n```\npython3 cmxreceiver-mongodb.py -v \u003cvalidator\u003e -s \u003csecret\u003e'\n```\n\n### Via Flask\n* Option 1 - Basic Receiver\n```\nexport FLASK_APP=cmxreceiver.py -v yourValidatorKey -s yourSecret\nflask run -h 0.0.0.0\n * Running on http://0.0.0.0:5000/\n```\n* Option 2 - Receiver with MongoDB\n```\nexport FLASK_APP=cmxreceiver-mongodb.py -v yourValidatorKey -s yourSecret\nflask run -h 0.0.0.0\n * Running on http://0.0.0.0:5000/\n```\n\n## Defaults\n* Port: 5000\n* CMX Post URL: http://yourserver:5000/\n\n## TIP\n* use ngrok to expose port 5000\n```\nngrok http 5000\n```\nThen use the new url it creates as your base URL. `https://2a6eed03.ngrok.io/`\n\n\n\n# Cisco Meraki CMX Location API Documentation\nhttps://documentation.meraki.com/MR/Monitoring_and_Reporting/CMX_Analytics#CMX_Location_API\n\n\n\n\n### Written by Cory Guynn\n2016\n\nhttp://www.InternetOfLEGO.com\nhttp://Developers.Meraki.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdexterlabora%2Fcmxreceiver-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdexterlabora%2Fcmxreceiver-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdexterlabora%2Fcmxreceiver-python/lists"}