7 Commits

Author SHA1 Message Date
ce1c4c36dd updating to trixie and flattening image
All checks were successful
/ Plan (push) Successful in 7m3s
2025-08-18 15:03:38 -05:00
ab6ca7fac6 accept speedest eula
All checks were successful
/ Plan (push) Successful in 57s
/ Plan (pull_request) Successful in 16s
/ Deploy (pull_request) Successful in 13s
2024-11-26 14:33:46 -06:00
96b7f4cbc0 adding logging
All checks were successful
/ Plan (push) Successful in 1m5s
2024-11-26 14:31:41 -06:00
6616bf7fae forgot the -y
All checks were successful
/ Plan (push) Successful in 3m1s
/ Plan (pull_request) Successful in 17s
/ Deploy (pull_request) Successful in 6s
2024-11-26 13:30:05 -06:00
192fc55105 move to installing via the ookla method
Some checks failed
/ Plan (push) Failing after 15s
2024-11-26 13:29:04 -06:00
7948c548e3 list change
Some checks failed
/ Plan (push) Failing after 16s
2024-11-26 13:25:42 -06:00
738df45609 force build
Some checks failed
/ Plan (push) Failing after 14s
2024-11-26 13:23:18 -06:00
3 changed files with 7 additions and 10 deletions

View File

@@ -1,12 +1,8 @@
FROM debian:bullseye-slim
FROM debian:trixie-slim
#
COPY ookla_speedtest_cli.list /etc/apt/sources.list.d/
RUN apt update && apt install python3 python3-pip iputils-ping speedtest -y
COPY ookla_speedtest_cli.list requirements.txt init.sh /
RUN apt update && apt install curl python3 python3-pip iputils-ping -y && pip3 install -r /requirements.txt --break-system-packages && chmod +x /init.sh && curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash
RUN apt update && apt install speedtest -y && apt clean
COPY logspeedtest.py /usr/local/bin/
COPY requirements.txt /
COPY init.sh /
RUN chmod +x /init.sh
RUN chmod +x /usr/local/bin/logspeedtest.py
RUN pip3 install -r /requirements.txt
RUN apt clean
CMD ["/init.sh"]

View File

@@ -20,7 +20,8 @@ infdbuser = os.environ["INFLUX_USER"]
infdbpass = os.environ["INFLUX_PASSWORD"]
influxuri = os.environ["INFLUX_URI"]
while(True):
response = sp.getstatusoutput(f"speedtest --format=json")[1]
response = sp.getstatusoutput(f"speedtest --accept-license --format=json")[1]
print(response)
respjson = json.loads(response.split("\n")[1])
print(response)
downspeed = respjson['download']['bandwidth'] * 8 / 1024 / 1024

View File

@@ -1,4 +1,4 @@
# this file was generated by packagecloud.io for
# this file was generated by packagecloud.io for #
# the repository at https://packagecloud.io/ookla/speedtest-cli
deb [signed-by=/etc/apt/keyrings/ookla_speedtest-cli-archive-keyring.gpg] https://packagecloud.io/ookla/speedtest-cli/debian/ bookworm main