OpenParable
Skip to content
← Back to skills

Device

Apps & Automation
device

Device is an Agent Skill for apps & automation published in the mikeyobrien/rho repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Device controls — vibration, torch, volume, battery status, toast messages. Use for haptic feedback, flashlight, or quick status checks.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/mikeyobrien/rho/blob/HEAD/platforms/android/skills/device/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/device, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Device Controls

Toast (quick popup)

termux-toast "Message"
termux-toast -s "Short message"           # shorter duration
termux-toast -g top "Top message"         # position: top, middle, bottom
termux-toast -b black -c white "Styled"   # background & text color

Vibration

termux-vibrate                     # 1 second default
termux-vibrate -d 500              # 500ms
termux-vibrate -f                  # force even in silent mode

Flashlight

termux-torch on
termux-torch off

Volume

termux-volume                      # show all streams
termux-volume music 10             # set music to 10
termux-volume ring 5               # set ring to 5

Streams: call, system, ring, music, alarm, notification

Battery Status

termux-battery-status

Returns: percentage, status (CHARGING/DISCHARGING), plugged, temperature, etc.

Brightness

termux-brightness 128              # 0-255
termux-brightness auto             # auto brightness

WiFi Info

termux-wifi-connectioninfo         # current connection
termux-wifi-scaninfo               # nearby networks
termux-wifi-enable true/false      # toggle wifi

Sensor Data

termux-sensor -l                   # list available sensors
termux-sensor -s accelerometer     # read specific sensor
termux-sensor -s accelerometer -n 5  # 5 readings then stop