Go to file
notplants d5f17328bf local changes 2023-07-17 16:30:52 +02:00
iruway-data internet node 2023-07-17 15:10:15 +02:00
templates nightly analytics 2023-04-27 14:16:42 +05:30
.gitignore lineplot 2023-06-16 17:34:55 +02:00
README.md local changes 2023-07-17 16:30:52 +02:00
convert_to_csv.py lineplot 2023-06-16 17:34:55 +02:00
cowmesh_constants.py internet node 2023-07-17 15:10:15 +02:00
cowmesh_helpers.py cleanup 2023-05-04 22:37:48 +05:30
cowmesh_pi_iperf_test.py tests 2023-05-01 21:56:45 +05:30
cowmesh_pi_speedtest.py fix messages 2023-05-01 22:08:22 +05:30
cowmesh_router_iperf_test.py syntax 2023-07-17 15:24:00 +02:00
cowmesh_scp_test.py tests 2023-05-01 21:56:45 +05:30
generate_image.py initial scp test 2023-04-18 16:12:20 +05:30
get_device_info.y.py tests 2023-05-01 21:56:45 +05:30
moonlight_analytics.py lineplot 2023-06-16 17:34:55 +02:00
moonlight_analytics.service systemd service 2023-04-27 14:47:13 +05:30
nightly_test.py cleanup 2023-05-04 22:37:48 +05:30
requirements.txt add requirements.txt 2023-04-27 14:23:08 +05:30
run.md iperf test 2023-04-20 16:30:28 +05:30
scatter_plot.py internet node 2023-07-17 15:10:15 +02:00
server.py nightly analytics 2023-04-27 14:16:42 +05:30

README.md

to install required dependencies

pip install -r requirements.txt

to run the telegram bot and listen for commands

python3 moonlight_analytics.py

to run the nightly iperf test

python3 nightly_test.py

to install a systemd service file for the telegram bot

  • update moonlight_analytics.service with correct paths
  • cp moonlight_analytics.service /etc/systemd/system/
  • sudo systemctl enable moonlight_analytics.service
  • systemctl status moonlight_analytics.service (to see it running)

to add a new router to the test

the code for this project is on janastunuc in the following folder: /datadrive/apps/moonlight_analytics/cowmesh-network-test

in that folder is a file cowmesh_constants.py

  1. add the new router to NODES and HOST_TO_IP in cowmesh_constants.py with the host name and IP of the router

  2. ensure that iperf2 is installed on the new router

as documented here https://pad.commoninternet.net/p/cowmesh-report, there was an issue we were observing with installing packages via opkg (which would be the easiest way to install iperf, if it works)

alternatively, I was able to avoid the opkg issue by downloading iperf2 directly from here https://downloads.openwrt.org/releases/18.06.9/packages/mips_24kc/base/ and then installing the binary directly on the router, by passing a path to the local downloaded file to install directly via opkg

  1. on janastunuc, run: sudo systemctl restart moonlight_analytics

ideally, any changes you make to cowmesh_constants.py can also be pushed to the gitea repository (https://git.coopcloud.tech/notplants/cowmesh-network-test), so that gitea and the local code stay in in sync