Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speedtest.py - as http microservice #6

Closed
roest01 opened this issue Nov 2, 2017 · 1 comment
Closed

speedtest.py - as http microservice #6

roest01 opened this issue Nov 2, 2017 · 1 comment

Comments

@roest01
Copy link
Owner

roest01 commented Nov 2, 2017

To allow calling speedtest.py via interface for #5 the speedtest service need a new structure

actual state

speedtest.py is called via cronjob on bash with python

target state

speedtest.py script need to be called via http.

nominated solution

nginx has a build in FCGI-Server. Alternatively, we can use uwsgi ?

Example URL: http://localhost:9000/speedtest.py

priorities

  • install as few libs as possible
  • Use existing solutions (nginx) instead of writing an own http service for this file

additional

keep speedtest.py callable via bash so the cronjob is working without modifications

@roest01
Copy link
Owner Author

roest01 commented Feb 3, 2019

nginx helps a lot.
GET onto /run_speedtest route starts the speedtest.
Button and feature implemented in #13

@roest01 roest01 closed this as completed Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant