A small demonstration script to show the power of Cisco DNA Spaces IOT Services feature. You provide the Firehose API token and a list of BLE mac addresses to track and it will output a table with the Telemetry details.
- Have a look at the Cisco DNA Spaces API over at DevNet. To get familar with the APIs available.
- Clone this repository into a directory to get the helper scripts:
git clone https://github.com/leigh-jewell/dnaspaces-helper.git
- Install Python 3.7+ with the appropriate distribution for your OS.
- Install Pipenv using pip which should have been installed with Python3:
pip install pipenv
Or if you are using Homebrew simply run:
brew install pipenv
- For your script to authenticate with Cisco DNA Spaces you need to create a token in your account.
Create the virtual environment using Pipflie.lock. This will ensure the dependencies are installed
pipenv install --ignore-pipfile
The script will use the environment variable 'TOKEN' to authenticate to DNA Spaces. You will need to set this according to your OS.
export FLASK_APP=app
$ flask run
- Requests - Requests is an elegant and simple HTTP library for Python, built for human beings.
- Leigh Jewell - Initial work - Github
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Thanks to Cisco DNA Spaces for such a great product.