Name: cisco-meraki-cmx-api-app
Owner: CiscoCloud
Description: null
Created: 2016-07-06 13:46:03.0
Updated: 2017-01-19 03:22:52.0
Pushed: 2016-07-08 21:32:41.0
Homepage: null
Size: 849
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The Cisco Meraki CMX API uses intelligent access points to deliver real-time location analytics data directly to customers, allowing integration with 3rd-party retail analytics applications, CRM, and custom-built applications.
Note: The access point will be pre-installed for the DevNet Sandbox Lab
You need to login to your Meraki network to retrieve and setup the CMX API interface. As the CMX API Interface will be sending JSON as HTTP POST.
(Note: If doing learning lab, you?ll get provided with a Meraki DevNet sandbox account)
Navigate to the CMX API Settings Network-wide -> Configure -> General
As we will deploy our sample application through Shipped, we still don?t know the URL before we deployed. There write down your Validator id (green box) and choose a secret (red box) that we will use. Suggestion is to use shipped as a secret for this lab
(Enable CMX API if disabled)
We will now create our sample application to retrieve the CMX API data. Choose ?Create New Application? and choose a name for your new application.
As this is a sample application, Cisco has already provided sample applications. Choose the Cisco Tab and then select Cisco Meraki CMX API
This sample application will now be created on your own Github account.
We need to edit the service to gather data from your own Meraki Network. Click the pen to edit the service.
Remember the Validator ID (redbox) and secret (green box) that you picked before in the Meraki Dashboard? It?s time to enter those values Enter the data as the picture shows below
Click ?Save? Then click ?Save Project?
Shipped is now building your application based on the sample application source code and the environment variables that you?ve entered for this application.
When the build is completed it will turn green and you can now procceed to deploy this build. Click ?Deploy this Build?
Click ?Create a new environment? Choose a staging name for this build and click on ?Save?
Now it?s finally time to deploy your application. Make sure that your environment is select (blue mark next to it). Press ?Deploy Build?.
It will take some time for container to be staged to your server. The progress bar will show staging, running, healthy. Note: It could take around 5min the first time
(If you got issue, contact staff to verify that your deployment target is working)
When it?s successful it will turn in to something similar to this
Press the ?Run? Tab on the top to see how shipped have deployed your application.
This view will give you stats (Load, Mem, Disk, Network, http latency graphs) and also the URL for accessing the application. Press the URL on the top to access the application.
The view of your application
You?ll see ?Found no clients?, no worries. It?s because we have one more step in the Meraki Dashboard. Copy and paste your unique URL in the browser. (mine is http://demo–cisco-meraki—shipped-cisco-meraki-cmx–d522b7.gce.shipped-cisco.com/)
Go back to the Meraki dashboard (Network-wide -> Configure -> General)
Now enter your unique URL in the CMX by clicking ?Add a Post URL? When you enter your URL, you need to end it with /events. Like this http://demo–cisco-meraki—shipped-cisco-meraki-cmx–d522b7.gce.shipped-cisco.com/events
Else, Meraki CMX service won?t be able to verify your application against your validator ID that you?ve entered before.
It should look like this (but with your own parameter for validator ID, secret and URL)
Don?t forget to press ?Save? in the bottom right corner.
Now press ?Validate? to see if Meraki is able to speak with your Shipped deployment. If everything is working you?ll see this message above
?Validated http://demo–cisco-meraki—shipped-cisco-meraki-cmx–d522b7.gce.shipped-cisco.com/events?
Verify that your application is getting data from Meraki CMX.
Check your application again and you?ll see this within a couple of minutes.
If you want the raw data of your CMX post type http://uniqueURL/clients (like this http://demo–cisco-meraki—shipped-cisco-meraki-cmx–d522b7.gce.shipped-cisco.com/clients)
No Gelocation data? Verify that your AP is placed on the map in Meraki Dashboard. (Wireless -> Map & floor plans)