Coder Social home page Coder Social logo

breitbandmessung's Introduction

Breitbandmessung.de automated

A script to enable customers of lazy ISPs to perform measurement campaigns of the connection speed as described here in an automated way.

Usage

Create a configuration folder with the command mkdir config and inside the configuration folder a file config.cfg.

Example config.cfg:

[Docker Config]
timezone=Europe/Berlin
crontab=* */2 * * *
run_once=true
run_on_startup=true

[Measurement]
min-upload=600
min-download=30

[Telegram]
token=4927531485:lchtmxgr6sm7ia4g0fvbtoslruvgtway6uf
ID=42681397

[MAIL]
username=firstname.lastname
password=supersecret
maildomain=gmail.com
[email protected]

[Twitter]
consumerkey=T1JJ3T3L2
consumersecret=A1BRTD4JD
accesstoken=TIiajkdnlazkcOXrIdevi7F
accesssecret=FDVJaj4jcl8chG3

[influxdb]
host=influxdb
port=8086
dbname=breitbandmessung

[influxdbv2]
host=influxdb
port=8086
dbname=breitbandmessung
orgname=MyOrganizationName
token=SOYW1RRCbL6j0m5I6_UE6SMG3LHOirIhov2Y7NkPUcVHbaWIJZfdJT0h7geEaY5z42bz9SyuSjQ7GtTIsD43ev==

Create a folder for the measurement results with mkdir messprotokolle.

For the cronjob you can use this website. By default, the measurement is performed every 2nd full hour.

Timezone name from this list. The default timezone is UTC.

The broadband measurement can run once or automated via cron. For a one-time measurement set the value in the config to true.

Just run:

git clone https://github.com/shneezin/breitbandmessung.git && cd breitbandmessung
sudo ./create.sh

or

docker run -d -v $PWD/config/:/usr/src/app/config:rw -v $PWD/messprotokolle:/export/ --name "breitbandmessung" shneezin/breitbandmessung

To merge the csv files into one, run merge.sh or:

wget -O - https://raw.githubusercontent.com/shneezin/breitbandmessung/master/merge.sh | bash

Thanks to shiaky for the idea on this project. You can find his repo here

License

Feel free to use and improve the script as you like. I take no responsibility for the script.

breitbandmessung's People

Contributors

qdlmcfresh avatar shnezzin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.