![]() Testing and tuning your network can be done in a series of steps: Please note that we're continuously adding to and improving this article. If this does not solve your problem, please get in touch with the support team here (If possible, please let us know some of your test results, it will make the diagnostic process faster) Especially if you have a Gigabit WAN network or faster, here are some tips to get the most meaningful results and to use Firewalla to optimize all your equipment. Wget -q -delete-after " $host /json.htm?type=command¶m=addlogmessage&message=speedtest.Testing the speed of your network is both an art and a science. Wget -q -delete-after " $host /json.htm?type=command¶m=udevice&idx= $idxbb &svalue=0" >/dev/null 2> & 1 # Domoticz logging Wget -q -delete-after " $host /json.htm?type=command¶m=udevice&idx= $idxpng &svalue= $png " >/dev/null 2> & 1 # Reset Broadband switch Wget -q -delete-after " $host /json.htm?type=command¶m=udevice&idx= $idxul &svalue= $upload " >/dev/null 2> & 1 Wget -q -delete-after " $host /json.htm?type=command¶m=udevice&idx= $idxdl &svalue= $download " >/dev/null 2> & 1 ![]() #!/bin/bash #setup host = 'localhost' #idx for download, upload and ping idxdl = 1 idxul = 2 idxpng = 3 idxbb = 4 # speedtest server number # serverst=yyyy # no need to edit # speedtest-cli -simple -server $serverst > outst.txtĭownload = $(cat speedtest.txt | sed -ne 's/^Download: \(*\.*\).*/\1/p' ) upload = $(cat speedtest.txt | sed -ne 's/^Upload: \(*\.*\).*/\1/p' ) png = $(cat speedtest.txt | sed -ne 's/^Ping: \(*\.*\).*/\1/p' ) # output if you run it manually echo "Download = $download Mbps" echo "Upload = $upload Mbps" echo "Ping = $png ms" # Updating download, upload and ping. For automatic reporting you could add a crontab task to run the Bash script speedtest.sh at given intervals (e.g.Set the On action to "script:///home/pi/domoticz/scripts/speedtest.sh" (replace pi with your user and/or correct absolute path).Within Domoticz open the Utility tab and check that data is being recorded.Within Domoticz open the Setup > Log to confirm that Domoticz was informed of this data.Save changes and run the Bash script, if successful after a moment it will display your Download, Upload and Ping.idxbb (the IDX of the Broadband device).host (to match your IP address or localhost).Copy and paste the contents of the Bash script section below.Change the permissions on speedtest.sh to allow it to run from crontab.Create a new file within /domoticz/scripts/ called speedtest.sh.Within Domoticz open the Setup > Devices screen and note the IDX of each new Virtual Sensor added, you'll need this in the Bash script.Create 1 Virtual Sensors with the "Switch" Type named:.Create 3 Virtual Sensors with the "Custom" Type named:. ![]() Within Domoticz open the Setup > Hardware screen.Open a SSH session and install speedtest-cli using.Broadband (Switch to manually trigger Bash script)ĭependencies - hardware / software / operating system.This script will create 4 Virtual Sensors to monitor internet bandwidth and uptime: It is not my script and I do not claim ownership of it (Source: Sander Filius: ). This script uses the Python module speedtest-cli for testing internet bandwidth (Download/Upload/Ping) via. 2 Dependencies - hardware / software / operating system.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |