d5f17328bf | ||
---|---|---|
iruway-data | ||
templates | ||
.gitignore | ||
README.md | ||
convert_to_csv.py | ||
cowmesh_constants.py | ||
cowmesh_helpers.py | ||
cowmesh_pi_iperf_test.py | ||
cowmesh_pi_speedtest.py | ||
cowmesh_router_iperf_test.py | ||
cowmesh_scp_test.py | ||
generate_image.py | ||
get_device_info.y.py | ||
moonlight_analytics.py | ||
moonlight_analytics.service | ||
nightly_test.py | ||
requirements.txt | ||
run.md | ||
scatter_plot.py | ||
server.py |
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
-
add the new router to NODES and HOST_TO_IP in cowmesh_constants.py with the host name and IP of the router
-
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
- 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