GeorgetownMakerHubOrg / air-quality

An Open Source Platform For Georgetown's STIA Air Quality Courses
https://www.coursicle.com/georgetown/courses/STIA/436/
Other
4 stars 0 forks source link

upgrade upload to call esptool and upgrade script #24

Closed fpgirard closed 4 years ago

fpgirard commented 5 years ago

I'm going to suggest that we have 2 bash scripts in the /bin directory:

  1. upload - which calls esptool to erase and reflash the esp and then calls upgrade
  2. upgrade - calls ampy and uploads all the guaq files. Upgrade takes /dev/tty... as an argument.

This will allow us to minimally disrupt our field sites by requiring that they install ampy only. Until we can get the WebREPL tested and documented better.

Pas

cmpadden commented 5 years ago

Something that I'm also curious about, that we should look into, is if we can include a distribution of ampy in the repository. I've seen other projects do this for small utilities.

fpgirard commented 5 years ago

For upload.py, change the --device argument to --port. This will make it consistent with most serial port utilities (like ampy and esptool) that used --port. Easy fix

cmpadden commented 5 years ago

For upload.py, change the --device argument to --port. This will make it consistent with most serial port utilities (like ampy and esptool) that used --port. Easy fix

Completed in #33.