Unable to force speedtest server
Closed this issue · 6 comments
This is my first issue on GitHub, so if I'm missing anything context or formatting wise, please correct me. I'm trying to force a specific speedtest server because there is one near me (32032) that is always slow. I tried using the
environment:
SPEEDTEST_SERVER=19299
in docker-compose.yml to force it to use the server I want.
speedtest:
tty: true
stdin_open: true
environment:
- SPEEDTEST_SERVER=19229
expose:
- 9798
ports:
- 9798:9798
image: miguelndecarvalho/speedtest-exporter
restart: always
networks:
- back-tier
It doesn't seem to be working because it's still using whatever server it wants according to the metrics.
# TYPE speedtest_server_id gauge
speedtest_server_id #14231.0
Hey,
I have tested your own setup on my test environment and I saw that the tty
and stdin_open
are causing the problem, so you can remove them. Then you will have it working. Are you using the https://github.com/geerlingguy/internet-pi project?
Thanks,
MiguelNdeCarvalho
I am using the internet pi project. I removed those 2 lines but it's still using servers other than what I'm requesting. I may try to just reinstall the whole thing to tonight.
Hey,
This is really a weird behaviour, I have confirmed that by using the flags: tty: true
and stdin_open: true
you can't get the server selected successfully, that's really weird. But after removing that you should be able to. I think you need to give me more information first
Thanks,
MiguelNdeCarvalho
I figured it out. Somehow I had it two /internet-monitoring/ directories so two docker-compose files in different locations. When I edit the CORRECT one it worked as you said it should!! Thank you so much!!
Hey,
Just to make it clear by removing the 2 flags tty
and stdin_open
you fixed your problem right?
Thanks,
MiguelNdeCarvalho
That's correct, Thank you very much!