Web portal in which enables the user to set several time schedules for Meraki SSIDs to be ON/OFF
- Jorge Banegas (jbanegas@cisco.com)
- Jan 2020
- Meraki API Key
-Choose between which way you would like to spin up your application prototype
- install and clone this repo onto a server that has python3 installed
- install and create virtual environment (https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/)
- install and create a virtual environment for your project (https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/)
- enter the virtaul environment by running source (venv name)/bin/activate
- install dependencies by running pip3 install -r requirements.txt file
- install and setup mongodb (https://www.freecodecamp.org/news/learn-mongodb-a4ce205e7739/)
- edit scheduler.py (line 6) and views.py (line 203) to include the path to your local file
- Run the flask server by entering the command python3 views.py then visit the web page
- Go to the settings page, then press the button only once to activate the cron job to reinforce the scheduling (crontab -l to verify cron job). Web page should ask for permission to make changes.
- Go to the settings page, then press the button only once to activate the cron job to reinforce the scheduling (crontab -l to verify cron job). You know the scheduler activates if the web pag asks for permissions to make changes.
- You are all set. Meraki API key will be asked to enter the page. Make sure the respective key has proper permissions to make changes to the network SSIDs
Dockerized version was prepared by Matthew Quarisa on April 2020.
- Navigate to the directory with the docker compose file and in the terminal
- Enter two commands: “docker-compose build” followed by “docker-compose up”
- [Meraki Rest API Documentation] ] (https://documentation.meraki.com/zGeneral_Administration/Other_Topics/The_Cisco_Meraki_Dashboard_API)
Provided under Cisco Sample Code License, for details see LICENSE
Our code of conduct is available here
See our contributing guidelines here
Please note: This script is meant for demo purposes only. All tools/ scripts in this repo are released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use. You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.