![]() Read API Key to post the data you'll add to the widget.Ĥ - Then just use 's instruction to add the URL for your chosen Thingspeak graphs and to create the widget you can load from the FW homepage.ĥ- You can DL the html file from the Thingspeak forum post and edit it in a text editor to make it useful for your data. Format them in the style/colors as you wish. ![]() Run some tests from the shell to get a feel for it.Ģ - Setup a account and do the edits to the speedtest.py file (make 's edits for Mbps instead of MB if you wish).ģ - Now you should be able to send the data to Thinkspeak to generate the graphs. I then put the command in my crontab: */30 * * * * /usr/local/bin/python2.7 speedtest.py -server 1234 -csv >/dev/null 2>&1Īnd now every 30 minutes my firewall does a speed test and updates ThingSpeak, which I can check the lovely graphs and make sure I'm relatively consistently getting decent I run the speedtest every 30 minutes now, but it's just me, so who cares? You pretty much need everything in this thread to do what I did.ġ - Install speedtest-cli on the FW. Now run speedtest.py –server 1234 -csv and wait for it to finish, now check on ThingSpeak and check your three fields now have data. > f = urllib2.urlopen(baseURL + "&field1=%s&field2=%s&field3=%s" % (self.ping, self.download, self.upload)) ![]() Row =, data,ĭata, data,ĭata, data, data, ![]() Writer = csv.writer(out, delimiter=delimiter, lineterminator='') Then go down to around line 700 and look for the CSV output section, add the lines with -> below def csv(self, delimiter=','):
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |