bmscott
Occasional Visitor
We have a remote (rural) site using a TP-Link TL-MR100 4G router and it's going offline more often than usual lately. Since it comes back online without intervention, I am assuming it's a problem with the 4G coverage/signal in the area.
The only way I can think of to begin troubleshooting this is to put a Pi in the system and have it run a script of some kind to log into the router periodically and record the 4G signal strength. Before I go create one from scratch, is there an existing similar project I can adapt - or is there another way to go?
I've done some basic searches and found the "routerscraper" library but my coding is rusty enough that I'm having trouble wrapping my head around it. From scratch, I'd probably just figure out how to send a POST to log in, and then suss out the command sent by the "Advanced" tab button, then bring in the whole HTML page and search for the Signal Strength field, then save the number to a file with a timestamp.
Obviously I'm only going to be able to retrieve the log when it's able to connect. (I'm mentioning this in case anyone thinks I've overlooked the obvious...)
The only way I can think of to begin troubleshooting this is to put a Pi in the system and have it run a script of some kind to log into the router periodically and record the 4G signal strength. Before I go create one from scratch, is there an existing similar project I can adapt - or is there another way to go?
I've done some basic searches and found the "routerscraper" library but my coding is rusty enough that I'm having trouble wrapping my head around it. From scratch, I'd probably just figure out how to send a POST to log in, and then suss out the command sent by the "Advanced" tab button, then bring in the whole HTML page and search for the Signal Strength field, then save the number to a file with a timestamp.
Obviously I'm only going to be able to retrieve the log when it's able to connect. (I'm mentioning this in case anyone thinks I've overlooked the obvious...)