What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Script to periodically log 4G signal strength?

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...)
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top