Skip to content

leigh-jewell/dnaspaces-iot-services-demo

Repository files navigation

Cisco DNA Spaces IOT Services Firehose demo

Cisco DNA Spaces Helper

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.

Getting Started

  • 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

Prerequisites

  • 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.

Installing

Create the virtual environment using Pipflie.lock. This will ensure the dependencies are installed

pipenv install --ignore-pipfile

Running the scrips

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

Built With

  • Requests - Requests is an elegant and simple HTTP library for Python, built for human beings.

Authors

  • Leigh Jewell - Initial work - Github

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Thanks to Cisco DNA Spaces for such a great product.

About

Cisco DNA Spaces IOT Services Firehose demo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published