Community discussions

MikroTik App
 
User avatar
neogoth
just joined
Topic Author
Posts: 17
Joined: Mon Mar 22, 2021 5:17 pm

Save ROS Values in Variables (GPS + LTE)

Fri Sep 24, 2021 11:37 pm

Hi,

i was doing a project with a LtAP mini that sends Variables to an ESP8266 with an OLED screen for information of the Signal Stats and Speed for the train driver.

For that to work I need to get Values like GPS Speed, LTE SNR and RSSI saved in local or global variables to send them.
Other Variables like Temperature, Voltage or something just works fine but reading that with a script from the LTE and GPS Menu is a nightmare.

Is there an easy way to do this with scripts?

Thanks in advance for your help.
 
User avatar
SiB
Forum Guru
Forum Guru
Posts: 1888
Joined: Sun Jan 06, 2013 11:19 pm
Location: Poland

Re: Save ROS Values in Variables (GPS + LTE)  [SOLVED]

Sun Sep 26, 2021 8:48 pm

before scripts you should could get this data just by terminal.

ros7: put [interface/lte monitor lte1 once as-value ]
ros6: put [interface lte info lte1 once as-value ]

put ([interface/lte monitor lte1 once as-value ]->"rsrp")

about gps, search at forum or read manual.
 
User avatar
neogoth
just joined
Topic Author
Posts: 17
Joined: Mon Mar 22, 2021 5:17 pm

Re: Save ROS Values in Variables (GPS + LTE)

Mon Sep 27, 2021 12:22 pm

before scripts you should could get this data just by terminal.

ros7: put [interface/lte monitor lte1 once as-value ]
ros6: put [interface lte info lte1 once as-value ]

put ([interface/lte monitor lte1 once as-value ]->"rsrp")

about gps, search at forum or read manual.
Thank you very much, i tried that and it worked. I found it 2 days ago at another post.

Who is online

Users browsing this forum: infabo, JDF, UkRainUa and 26 guests