Search found 11 matches

by nodepythoner
Mon May 13, 2019 12:52 pm
Forum: Programs, Libraries and Tools
Topic: webrepl in mobile phone
Replies: 0
Views: 2154

webrepl in mobile phone

hello, i cant access to webrepl from my phone
password is correct, but access denied
at my computer works well, but with phone i have bug
may be different charsets?
how to fix it
(i tryed to change the password)
by nodepythoner
Mon May 13, 2019 12:44 pm
Forum: Programs, Libraries and Tools
Topic: memory error in picoweb
Replies: 2
Views: 1927

Re: memory error in picoweb

i think that sockets are more useful
by nodepythoner
Thu May 09, 2019 6:23 pm
Forum: Programs, Libraries and Tools
Topic: memory error in picoweb
Replies: 2
Views: 1927

memory error in picoweb

all libraries was compiled my mpy-cross and i changed some files in libraries(i added gc.collect lines) i wrote try: import picoweb except MemoryError: import micropython micropython.mem_info(1) and i got stack: 2864 out of 8192 GC: total: 37952, used: 37856, free: 96 No. of 1-blocks: 129, 2-blocks:...
by nodepythoner
Thu May 09, 2019 2:11 pm
Forum: Programs, Libraries and Tools
Topic: utemplate - Lightweight template engine for MicroPython
Replies: 8
Views: 13461

Re: utemplate - Lightweight template engine for MicroPython

hello, how to use utemplate? i cant find documentation. and i want to send variables to template, like here: python code import picoweb gc.collect() app = picoweb.WebApp(__name__) @app.route('/') def index(req, resp): data='hello' yield from picoweb.start_response(resp) yield from app.render_templat...
by nodepythoner
Thu May 09, 2019 12:50 pm
Forum: Programs, Libraries and Tools
Topic: how to install packages correctly(without upip,manually)
Replies: 2
Views: 2151

Re: how to install packages correctly(without upip,manually)

thank you, it works well
but i dont understand what sdist_upip.py and setup.py files are doing
by nodepythoner
Thu May 09, 2019 8:21 am
Forum: Programs, Libraries and Tools
Topic: how to install packages correctly(without upip,manually)
Replies: 2
Views: 2151

how to install packages correctly(without upip,manually)

I installed picoweb package to sd card. i just copyed files from github to sd card. but i can access to this package only in directory where is my package i want to make package global also i found sdist_upip.py and setup.py files. what they are doing? i think that i installed packages incorrectly, ...
by nodepythoner
Mon Apr 22, 2019 6:22 am
Forum: Programs, Libraries and Tools
Topic: os.walk('.') in micropython
Replies: 2
Views: 2408

Re: os.walk('.') in micropython

THANKS! :) i wrote changed code: import uos files=[] dirs=[] def S_ISDIR(fname): try: f = open(fname, "r") exists = True f.close() except OSError: exists = False return(exists) def walk(top): for dirent in uos.ilistdir(top): #print(dirent) mode = dirent[1] << 12 fname = dirent[0] if S_ISDIR(fname): ...
by nodepythoner
Sun Apr 21, 2019 7:28 pm
Forum: Programs, Libraries and Tools
Topic: os.walk('.') in micropython
Replies: 2
Views: 2408

os.walk('.') in micropython

how to realize os.walk() command in micropython
i need to take all content in flash(files in other directories)
but os has not that command :(
by nodepythoner
Sat Apr 20, 2019 2:34 pm
Forum: ESP8266 boards
Topic: very strange behavior with sd and nodemcu
Replies: 3
Views: 2371

Re: very strange behavior with sd and nodemcu

with 4 gb card works well. i used 3.3v but this module working from 5 volts(it is module for arduino)
but with 2 gb card also EIO