erinzm / esp8266-luaupload Goto Github PK
View Code? Open in Web Editor NEWRun or upload code to a ESP8266 running NodeMCU Lua
License: GNU General Public License v2.0
Run or upload code to a ESP8266 running NodeMCU Lua
License: GNU General Public License v2.0
Due to #1, it might be nice to write a GUI.
Can not upload scripts via Telnet.
As you can see my Telnetserver is working, but the upload script can't connect.
Tilmans-MacBook-Pro:esp8266-luaupload Tilman$ telnet 192.168.1.7 2323
Trying 192.168.1.7...
Connected to 192.168.1.7.
Escape character is '^]'.
Welcome to NodeMcu world.
^]
telnet> close
Connection closed.
Tilmans-MacBook-Pro:esp8266-luaupload Tilman$ sudo python luaupload.py telnetupload init.lua -u 192.168.1.7:2323
Could not connect to 192.168.1.7:2323
Traceback (most recent call last):
File "luaupload.py", line 89, in <module>
cli()
File "/Library/Python/2.7/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/Library/Python/2.7/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/Library/Python/2.7/site-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Python/2.7/site-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Python/2.7/site-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "luaupload.py", line 53, in telnetupload
esp.upload(f.read(), {'filename': filename})
File "/Users/Tilman/Documents/Programme/Python/esp8266-luaupload/luaupload/esp8266.py", line 41, in upload
self.send('file.remove("{file}")\r\n'.format(file=espoptions['filename']))
File "/Users/Tilman/Documents/Programme/Python/esp8266-luaupload/luaupload/esp8266.py", line 36, in send
self.connection.send(data)
socket.error: [Errno 57] Socket is not connected
Can you please help me out, to fix this.
Thanks Til
There is an assumption with many of these programs that people somehow "know" Python. I've installed it on my PC and it seems to work. I only know that because one of the loader programs works that allows us to send binary firmware to the WIFI boards. In this case, I'm getting some gripe about a DLL missing... it's there, where it should be in System32... which seems a little odd as it's the 64 bit version of Python... can't get passed the missing dll issue. Any chance of a Windows visual version which will allow us to simply paste in any amount of code and have it prefix and suffix?
python luaupload.py
Traceback (most recent call last):
File "luaupload.py", line 23, in
import click
ImportError: No module named click
python3 luaupload.py
Traceback (most recent call last):
File "luaupload.py", line 30, in
@click.group()
AttributeError: 'module' object has no attribute 'group'
Hey all, I just wanted to ask: what new features would you like?
Currently when run with Python 3, this happens:
Traceback (most recent call last):
File "./luaupload.py", line 89, in <module>
cli()
File "/usr/lib/python3.4/site-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3.4/site-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/usr/lib/python3.4/site-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3.4/site-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3.4/site-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "./luaupload.py", line 86, in upload
esp.upload(f.read(), {'filename': filename})
File "/home/liam/github/archimedespi/esp8266-luaupload/luaupload/esp8266.py", line 41, in upload
self.send('file.remove("{file}")\r\n'.format(file=espoptions['filename']))
File "/home/liam/github/archimedespi/esp8266-luaupload/luaupload/esp8266.py", line 34, in send
self.connection.write(data)
File "/usr/lib/python3.4/site-packages/serial/serialposix.py", line 491, in write
d = to_bytes(data)
File "/usr/lib/python3.4/site-packages/serial/serialutil.py", line 76, in to_bytes
b.append(item) # this one handles int and str for our emulation and ints for Python 3.x
TypeError: an integer is required
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.