Skip to content

List of available commands (UART telnet GET POST)

e2002 edited this page Sep 5, 2022 · 5 revisions

UART/Telnet


CLI (each command has multiple ways of writing)

cli.prev
prev        : previous station
-------------
cli.next
next        : next station
-------------
cli.toggle
toggle      : start/stop
-------------
cli.stop
stop        : stop
-------------
cli.start
start
cli.play
play        : start
-------------
cli.vol
vol         : display the current value of volume (0-254)
-------------
cli.vol-
vol-        : volume down one step
-------------
cli.vol+
vol+        : volume up one step
-------------
cli.vol("x")
vol(x)
vol x       : set volume to x (0-254)
-------------
cli.audioinfo
audioinfo   : current value of debug information display
-------------
cli.audioinfo("x")
audioinfo(x)
audioinfo x : on (1)/off (0) display debug information
-------------
cli.smartstart
smartstart  : current smart start value
-------------
cli.smartstart("x")
smartstart(x)
smartstart x : x=2 - x=2 - disable smart start, x=0 or 1 - enable smart start
-------------
cli.list
list        : display list of stations
-------------
cli.play("x")
play(x)
play x      : start playback of station number x
-------------
cli.info
info        : display information about the current state
-------------
cli.dspon("x")
dspon(x)
dspon x     : display on/off (0/1)
-------------
cli.dim("x")
dim(x)
dim x       : display brightness (0-100) (if supported)
-------------
cli.sleep("x,y")
sleep(x,y)
sleep x y   : sleep for x minutes after y minutes
-------------
cli.sleep("x")
sleep(x)
sleep x     : sleep for x minutes right now

SYS (each command has multiple ways of writing)

sys.tzo
tzo         : current timezone value
-------------
sys.tzo("h:m")
tzo(h:m)
tzo h:m     : set timezone value
-------------
sys.tzo("h")
tzo(h)
tzo h       : set timezone value (hours only)
-------------
sys.date
date
time        : current date and time
-------------
sys.version
version     : firmware version
-------------
sys.heap
heap        : free heap space
-------------
sys.boot
boot
reboot      : reboot

WIFI (each command has multiple ways of writing)

wifi.list
wifi        : list of available networks
-------------
wifi.con
conn        : list of saved networks (# ssid password)
-------------
wifi.station
station
ssid        : current wifi connection (# ssid password)
-------------
wifi.con("ssid","pass")
wifi.con(ssid,pass)
wifi.con(ssid pass)
wifi ssid pass  : connect to ssid with pass password. This command will overwrite all saved connections, only one will be deleted. Reboot - immediately
-------------
wifi.status
status      : current connection state
-------------
wifi.rssi
rssi        : received signal strength indicator (dBm, decibel re 1 milliwatt)
-------------
wifi.discon
disconnect
discon      : reconnect to wifi

POST/GET

http://<yoradioip>/?command

start           : start
stop            : stop
toggle          : start/stop
prev            : previous station
next            : next station
volm            : volume down one step
volp            : volume up one step
vol=x           : set volume to x (0-254)
trebble=x&middle=x&bass=x : equalizer, x from -16 to 16 (three parameters together)
ballance=x      : balance, x from -16 to 16
playstation=x
play=x          : start playback of station number x
dspon=x         : display on/off, x=0 - off, x=1 - on
dim=x           : display brightness x=(0-100) (if supported)
sleep=x&after=y : sleep for x minutes after y minutes
sleep=x         : sleep for x minutes right now