Skip to content
This repository was archived by the owner on Jan 26, 2025. It is now read-only.
This repository was archived by the owner on Jan 26, 2025. It is now read-only.

I wrote a nice script to go along with this #65

@taybart

Description

@taybart
#!/bin/bash

if hash nodemcu-uploader 2>/dev/null; then
  if [[ -z $1 ]]; then
    echo "Usage: [sudo] ./esp_tool.sh DEVICE"
  else
    port=$1
    clear
    while IFS="" read -r -e -d $'\n' -p '$ ' commands; do
      history -s "$commands"
      nodemcu-uploader --port $port $commands
    done
  fi
else
  echo "Please install nodemcu-uploader to use this script."
  echo "$ pip install nodemcu-uploader"
fi

It just is run one time and allows you to run commands multiple times. It has history so you can use ^P or the up/down arrows to scroll through your history.

If you like it, maybe put it in the repo! 😄

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions