npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ultimate-bot-cli

v1.0.4

Published

CLI that interacts with the Makeblock Ultimate 2.0 Bot via MegaPi

Downloads

4

Readme

ultimate-bot-cli

CLI that interacts with the Makeblock Ultimate 2.0 Bot via MegaPi

oclif Version Downloads/week License

Usage

$ npm install -g ultimate-bot-cli
$ bot COMMAND
running command...
$ bot (-v|--version|version)
ultimate-bot-cli/1.0.4 darwin-x64 node-v10.16.3
$ bot --help [COMMAND]
USAGE
  $ bot COMMAND
...

Commands

bot dc-run

Runs a DC motor

USAGE
  $ bot dc-run

OPTIONS
  -d, --duration=duration  (required) Duration in milliseconds
  -p, --port=port          (required) DC motor port
  -s, --speed=speed        [default: 100] Movement speed.

See code: src/commands/dc-run.js

bot enc-get

Reads encoder motor positions

USAGE
  $ bot enc-get

See code: src/commands/enc-get.js

bot enc-set

Moves an encoder motor to a position

USAGE
  $ bot enc-set

OPTIONS
  -p, --port=port          (required) Encoder motor port
  -s, --speed=speed        [default: 100] Movement speed.
  -t, --position=position  (required) Position to move to.

See code: src/commands/enc-set.js

bot help [COMMAND]

display help for bot

USAGE
  $ bot help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

bot line

Reads line follower sensor

USAGE
  $ bot line

OPTIONS
  -p, --port=port  (required) Port

See code: src/commands/line.js

bot mode

Gets or sets the MegaPi mode

USAGE
  $ bot mode

OPTIONS
  -m, --mode=0|1|2|3|4|6  New mode: 0 = manual mode, 1 = obstacle avoidance, 2 = balance, 3 = IR remote, 4 = line
                          following 6 = arm reset*

See code: src/commands/mode.js

bot mode-speed

Gets or sets the move speed for the following modes: obstacle avoidance, line following

USAGE
  $ bot mode-speed

OPTIONS
  -s, --speed=speed  New speed

See code: src/commands/mode-speed.js

bot move

Move the Ultimate Bot

USAGE
  $ bot move

OPTIONS
  -d, --distance=distance  [default: 500] Distance to move. Use negative values for reverse.
  -s, --speed=speed        [default: 100] Movement speed.

See code: src/commands/move.js

bot reset

This command resets the MegaPi board including motor home positions.

USAGE
  $ bot reset

See code: src/commands/reset.js

bot rotate

Rotates the Ultimate Bot

USAGE
  $ bot rotate

OPTIONS
  -a, --angle=angle  [default: 830] Rotation angle (not a standard unit, 830 is 180 degrees)

See code: src/commands/rotate.js

bot stop

Stops all motors

USAGE
  $ bot stop

See code: src/commands/stop.js

bot ultrasonic

Reads the ultrasonic sensor and returns a distance

USAGE
  $ bot ultrasonic

OPTIONS
  -p, --port=port  (required) Port

See code: src/commands/ultrasonic.js