Community discussions

MikroTik App
 
moahmmed93
just joined
Topic Author
Posts: 1
Joined: Tue Jan 21, 2025 1:44 am

python signal strength code

Tue Jan 21, 2025 1:47 am

Hi guys I need a python code that will query the signal strength, tx rx signal and cable status
 
ConnyMercier
Forum Veteran
Forum Veteran
Posts: 777
Joined: Tue Dec 17, 2019 1:08 pm

Re: python signal strenght code

Tue Jan 21, 2025 11:12 pm

Good Evening,

an easy solution, is to use the REST API to access the Data.
https://help.mikrotik.com/docs/spaces/R ... 2/REST+API

I can`t really help you with the "Python" implementation,
but you can easely test it via CMD in windows

Wireless Connection Information
curl -k -u "USER":"PASSWORD" http://XXX.XXX.XXX.XXX/rest/interface/wifi/registration-table
Wireless Interface Information (e.g. wifi1)
curl -k -u "USER":"PASSWORD" http://XXX.XXX.XXX.XXX/rest/interface/wifi1
Ether Interface Information (e.g. ether1)
curl -k -u "USER":"PASSWORD" http://XXX.XXX.XXX.XXX/rest/interface/ether1