Application displays network speed (both download, and upload) from given time period. Uses Python and Django to implement Cron job, that stores data, and web app to display the data in browser. Data is stored in SQLite.
- Python
- Pip
- Virtualenv
- SQlite
- Create virtual environment
virtualenv venv
- Activate virtual environment
source venv/bin/activate
- Do 'stuff' (look below)
- Deactivate virtual environment
deactivate
- Install dependencies:
pip3 install -r requrements.txt
- Migrate database:
python3 manage.py migrate
python3 manage.py makemigrations network
- Create Admin:
python3 manage.py createsuperuser
- Manage Cron jobs:
- add cron job for persisting metrics:
python3 manage.py crontab add
- make sure it is added:
python3 manage.py crontab show
- remove added job (for stopping persisting metrics):
python3 manage.py crontab remove
- Start server
python3 manage.py runserver
- Navigate in browser to
http://127.0.0.1:8000
orhttp://127.0.0.1:8000/admin