top of page

Simple WiFi Signal Version 2

This is a slightly more advanced version of the Simple Wifi Signal Program, that displays a comment next to the Wifi signal reading. The comments are based upon this table:

Strength Meaning
-30 Amazing
-67 Very Good
-70 OK
-80 Not Good
-90 Unusable

It gets the Wifi signal strength from the /s_wifisig system variable and uses the ant statement to apply the correct comment based on the signal.

Program


---

Simple Wifi Signal Program Version 2

This is a slightly more advanced version of the

Simple Wifi Signal Program, that displays a comment

next to the Wifi signal reading.

---


prog_vars =

d/run_no 0

d/signal 0

prog_vars.


prog_start =

"Wifi Signal Program"

prog_start.


prog_loop =


-- Display the Wifi Signal Strength

-- "Run /run_no Wifi signal /s_wifisig"

/signal /wifisig

ant /signal ->

<= -90 -> "Run /run_no /signal Unusable"

<= -80 -> "Run /run_no /signal NOT Good"

<= -70 -> "Run /run_no /signal OK"

<= -67 -> "Run /run_no /signal Very good"

<= -30 -> "Run /run_no /signal Amazing"

-> "NO Signal"

ant.

-- Exit after 100 runs

inc /run_no

any /run_no >= 100 ->

"Run /run_no Time to Exit"

exitprog

enda.


prog_loop.


prog_stop =

print "Prog STOPPED!"

prog_stop.



bottom of page