chilipeppr / workspace-nodemcu

A ChiliPeppr workspace that lets you interact with the NodeMCU device.
8 stars 5 forks source link

Ability lo load files from computer is missing #3

Closed pastukhov closed 8 years ago

pastukhov commented 8 years ago

I can't find the way to upload a file from computer to board. Please add ability to load files from computer to MCU.

chilipeppr commented 8 years ago

That is a core feature already there. Maybe it's just confusing.

[image: Inline image 1]

You have to just hit [image: Inline image 2]

You need to make sure your device is connected and working though, where it's taking commands correctly. The nodemcu can tend to get stuck so just hit Reset.

[image: Inline image 3]

On Wed, Feb 17, 2016 at 1:10 AM, Artem Pastukhov notifications@github.com wrote:

I can't find the way to upload a file from computer to board. Please add ability to load files from computer to MCU.

— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/workspace-nodemcu/issues/3.

pastukhov commented 8 years ago

Imsges is lost?

chilipeppr commented 8 years ago

image

pastukhov commented 8 years ago

Upload button is uploading currently open file (unnamed1.lua). But not a file from the host computer. To be clear. I have a set of files on PC:

configNetSmart.lua
ds3231.lua
gpioInit.lua
init.lua
initTime.lua
settime.lua
syncTime.lua

Usualy i'm uploading my files to MCU with Makfile:

######################################################################
# User configuration
######################################################################
# Path to nodemcu-uploader (https://github.com/kmpm/nodemcu-uploader)
NODEMCU-UPLOADER=python ../nodemcu-uploader/nodemcu-uploader.py --start_baud 9600 --baud 115200
# Serial port
PORT=/dev/ttyUSB0

######################################################################
# End of user config
######################################################################
LUA_FILES := $(wildcard *lua)

# Upload all
all: $(LUA_FILES)
    @$(NODEMCU-UPLOADER) -p $(PORT) upload $(foreach f, $^, $(f))
chilipeppr commented 8 years ago

That's how it works. You'd have to paste in a file to a new window to get the upload button to upload other files.

On Wed, Feb 17, 2016 at 11:06 PM, Artem Pastukhov notifications@github.com wrote:

Upload button is uploading currently open file (unnamed1.lua). But not a file from the host computer.

— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/workspace-nodemcu/issues/3#issuecomment-185571769 .

pastukhov commented 8 years ago

Ok, but this is uncomfortable.

chilipeppr commented 8 years ago

Please feel free to fork the workspace and modify any way you'd like. That's the beauty of ChiliPeppr. If you have any changes you think are compelling and want to do a pull request to the core workspace I'm more than happy to add great features.

On Thu, Feb 18, 2016 at 12:19 AM, Artem Pastukhov notifications@github.com wrote:

Ok, but this is uncomfortable.

— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/workspace-nodemcu/issues/3#issuecomment-185593441 .

chilipeppr commented 8 years ago

Artem, check out the video I made to help you understand the workflow. Perhaps you'll find my approach makes more sense if you start all of your development inside the workspace as opposed to externally where you have files on your local hard drive.

https://www.youtube.com/watch?v=gudsZeGGoBM

On Thu, Feb 18, 2016 at 12:20 AM, John Lauer jlauer12@gmail.com wrote:

Please feel free to fork the workspace and modify any way you'd like. That's the beauty of ChiliPeppr. If you have any changes you think are compelling and want to do a pull request to the core workspace I'm more than happy to add great features.

On Thu, Feb 18, 2016 at 12:19 AM, Artem Pastukhov < notifications@github.com> wrote:

Ok, but this is uncomfortable.

— Reply to this email directly or view it on GitHub https://github.com/chilipeppr/workspace-nodemcu/issues/3#issuecomment-185593441 .

pastukhov commented 8 years ago

Thanks for the video. What if i want to develop on top of existing project? Look at https://github.com/marcoskirsch/nodemcu-httpserver. It contain about 10 core lua files and variable amount of different files on it http root folder. Not only lua, but html, js, images ...