30 Web Command Line Applications
From Waveshare Wiki
To make the configuration of product parameters easier and allow users to add custom functionalities conveniently, we have designed command-line parameter functionality for the product. You can achieve corresponding functionalities by inputting commands into the command-line tool on the web page. This chapter will detail these functionalities.
Sending Information via ESP-NOW
Add Broadcast MAC Address to Peer
- send -a -b
- send --add --broadcast
- send -a FF:FF:FF:FF:FF:FF
- send --add FF:FF:FF:FF:FF:FF
Add Specific MAC Address to Peer
- send -a AA:BB:CC:DD:EE:FF
- send -add AA:BB:CC:DD:EE:FF
Remove Broadcast MAC Address from Peer
- send -rm -b
- send --remove --boardcast
- send -rm FF:FF:FF:FF:FF:FF
- send --remove FF:FF:FF:FF:FF:FF
Remove Specific MAC Address from Peer
- send -rm AA:BB:CC:DD:EE:FF
- send --remove AA:BB:CC:DD:EE:FF
Broadcast Sending (Broadcast MAC should be added to peer before first use)
- send -b what's up bro
- send --broadcast what's up bro
Unicast Sending (Target MAC should be added to peer before first use)
- send AA:BB:CC:DD:EE:FF what's up bro
Multicast Sending (Target MAC should be added to peer before first use, multiple targets can be added, and cannot include broadcast MAC address: FF:FF:FF:FF:FF:FF)
- send -g what's up bro
- send --group what's up bro
Audio Playback
Text-to-Speech (TTS, initialization takes longer for the first use)
- audio -s what's up bro
- audio --say what's up bro
Set Volume Level (Range between 0 and 1.0)
- audio -v 0.9
- audio --volume 0.9
Play Audio File from the 'sounds' Directory (.mp3 .wav formats, can play files from other directories)
- audio -p file.mp3
- audio --play_file file.mp3
- audio -p others/file.mp3
Chassis
- base -c {'T':1,'L':0,'R':0}
- base --cmd {'T':1,'L':0,'R':0}
Enable Displaying Information from Chassis on Screen
- base -r on
- base --recv on
Disable Displaying Information from Chassis on Screen
- base -r off
- base --recv off
Default Display Time for Command Line/ESP-NOW Information is 10 seconds
- info
OpenCV
Set Target Color Range
- cv -r [90,120,90] [120,255,200]
- cv -range [90,120,90] [120,255,200]
Select Color (Default colors are red, green, and blue only)
- cv -s red
- cv --select red
Set Pan-tilt Tracking Parameters
Color Tracking Iteration Ratio
- track -c 0.023
Face/Gesture Tracking Iteration Ratio
- track -f 0.068
Tracking Speed
- track -s 60
Action Acceleration Ratio
- track -a 0.4