Search found 463 matches

by SpotlightKid
Tue Sep 14, 2021 5:10 pm
Forum: General Discussion and Questions
Topic: [SOLVED] urequests + redirects
Replies: 20
Views: 17334

Re: [SOLVED] urequests + redirects

> since it seems the files are printed as copied to the same directory as I specify as source instead of the device. Sorry, I fail to understand the meaning of this sentence. Can you please rephrase it? Also, please not that I have bundled all my improvements to urequests.py into this library. Pleas...
by SpotlightKid
Thu Aug 12, 2021 5:43 am
Forum: ESP32 boards
Topic: urequests - any way to download files by chunks
Replies: 7
Views: 7686

Re: urequests - any way to download files by chunks

I have updated the link to the mrequests repo above.
by SpotlightKid
Wed Aug 11, 2021 7:39 pm
Forum: ESP32 boards
Topic: urequests - any way to download files by chunks
Replies: 7
Views: 7686

Re: urequests - any way to download files by chunks

Yes, looks good. But instead of setting the Authorization header yourself, you can just pass auth=(username, password) as a keyword parameter to mrequests.get().

Using response.save(filename, chunk_size) should ensure that only as much memory as is needed for chunk_size bytes is allocated.
by SpotlightKid
Wed Aug 11, 2021 6:12 pm
Forum: ESP32 boards
Topic: urequests - any way to download files by chunks
Replies: 7
Views: 7686

Re: urequests - any way to download files by chunks

Please show the actual code that doesn't work (please link to code, or copy and paste it exactly here, no screenshots or incomplete code) and also copy & paste the exact error message, if any.
by SpotlightKid
Sun May 30, 2021 8:26 pm
Forum: Raspberry Pi microcontroller boards
Topic: How to read Map() function in micropython?
Replies: 11
Views: 25650

Re: How to read Map() function in micropython?

It's actually a built-in function (or rather a class acting like a function), which means you can use "map" for identifiers without getting a syntax error. You will then of course shadow the builtin function.
by SpotlightKid
Wed May 26, 2021 5:38 pm
Forum: ESP32 boards
Topic: What the best IDE for ESP32 micro python developing ?
Replies: 13
Views: 15349

Re: What the best IDE for ESP32 micro python developing ?

romeotango wrote:
Wed May 26, 2021 3:18 pm
Real Developers need real IDEs.
I hope this is irony.
by SpotlightKid
Sat May 22, 2021 5:33 pm
Forum: Raspberry Pi microcontroller boards
Topic: help required for a newbie
Replies: 1
Views: 2032

Re: help required for a newbie

Are you sure the "coming" LED is initially off? It could be that is is wired to "active low", i.e. it lights up when the pin value is 0. To test this, just insert a "while True: pass" loop after your setup statements and see whether the LED is already lit up. Another possible reason is that 450 loop...
by SpotlightKid
Sat May 22, 2021 2:53 pm
Forum: General Discussion and Questions
Topic: datetime not working out of the box
Replies: 18
Views: 9755

Re: datetime not working out of the box

johanson wrote:
Sat May 22, 2021 2:40 pm
I could submit some improvements to urequests as well.
There are already about half a dozen of those with no response from the maintainers.

See also: viewtopic.php?f=15&t=10454
by SpotlightKid
Sat May 22, 2021 2:50 pm
Forum: General Discussion and Questions
Topic: datetime not working out of the box
Replies: 18
Views: 9755

Re: datetime not working out of the box

Who manages micropython-lib and why is there so little activity? In theory the micropython maintainers, in practice nobody. The micropython-lib was mainly created by an earlier MicroPython core developer (with many modules taken & adapted from the CPython stdlib), who has since left the project and...
by SpotlightKid
Sat May 22, 2021 2:38 pm
Forum: General Discussion and Questions
Topic: touchPad on Pin 2 (ESP32)
Replies: 3
Views: 3434

Re: touchPad on Pin 2 (ESP32)

The GH issue should be closed then.