Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
speedtest-to-influxdb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
speedtest-to-influxdb
Commits
829905d2
Commit
829905d2
authored
4 years ago
by
Josh Smith
Browse files
Options
Downloads
Patches
Plain Diff
fixed typos, errors with packetloss data
parent
61e60fb1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
.dockerignore
+3
-3
3 additions, 3 deletions
.dockerignore
.gitignore
+128
-128
128 additions, 128 deletions
.gitignore
Dockerfile
+27
-27
27 additions, 27 deletions
Dockerfile
LICENSE
+21
-21
21 additions, 21 deletions
LICENSE
README.md
+47
-47
47 additions, 47 deletions
README.md
main.py
+101
-102
101 additions, 102 deletions
main.py
with
327 additions
and
328 deletions
.dockerignore
+
3
−
3
View file @
829905d2
This diff is collapsed.
Click to expand it.
.gitignore
+
128
−
128
View file @
829905d2
This diff is collapsed.
Click to expand it.
Dockerfile
+
27
−
27
View file @
829905d2
FROM
python:3.8-slim-buster
LABEL
maintainer="
Aiden Gilmartin
" \
description="Speedtest to InfluxDB data bridge"
LABEL
maintainer="
Josh Smith
" \
description="
Original by Aiden Gilmartin.
Speedtest to InfluxDB data bridge"
#wget "https://ookla.bintray.com/download/$(wget https://ookla.bintray.com/download/ -q -O - | grep x86_64-linux.tgz\" | grep -Po "(?<=href=\")[^^\"]*" | cut -d ":" -f 2)"
# Install dependencies
ENV
DEBIAN_FRONTEND=noninteractive
RUN
apt-get update
...
...
This diff is collapsed.
Click to expand it.
LICENSE
+
21
−
21
View file @
829905d2
This diff is collapsed.
Click to expand it.
README.md
+
47
−
47
View file @
829905d2
This diff is collapsed.
Click to expand it.
main.py
+
101
−
102
View file @
829905d2
...
...
@@ -2,7 +2,6 @@ import time
import
json
import
subprocess
import
os
from
influxdb
import
InfluxDBClient
# InfluxDB Settings
...
...
@@ -29,7 +28,7 @@ def init_db():
else
:
influxdb_client
.
switch_database
(
DB_DATABASE
)
# Switch to if does exist.
def
pkt_loss
(
data
):
if
data
[
'
packetLoss
'
]:
if
'
packetLoss
'
in
data
.
keys
():
return
data
[
'
packetLoss
'
]
else
:
return
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment