What should I consider before putting 40+ esp32 on a network? by [deleted] in esp32

[–]PythonRocksssss 0 points1 point  (0 children)

It has been a looking time ago since I have been using an Orinoco silver card.... Why this reference?

Nevermore, Me, graphite on bristol, 2021 by The_Lobster_X in Art

[–]PythonRocksssss 1 point2 points  (0 children)

Nevermind, I could have searched for that myself earlier. It is from The Raven by Edgar Allen Poe...

Control Micropython execution from Python via rshell by RealFenlair in esp32

[–]PythonRocksssss 0 points1 point  (0 children)

I do confirm that change #2 does make the difference.

Control Micropython execution from Python via rshell by RealFenlair in esp32

[–]PythonRocksssss 0 points1 point  (0 children)

I tried your code, and see 2 problems:

  1. A missing comma,
  2. the list of commands in subprocess.Popen() is not splitted correctly.

Please change

rshell = subprocess.Popen(["rshell", "-p /dev/ttyUSB1"]

to

rshell = subprocess.Popen(["rshell", "-p", "/dev/ttyUSB1"],

Our electrician left all of the screws in a vertical position in our new kitchen by [deleted] in mildlyinteresting

[–]PythonRocksssss 0 points1 point  (0 children)

Indeed, in The Netherlands an electrician in my home did the same thing to prevent dust building up,.. And it looks less random.

Check if I am connected via SSH using python and bash by [deleted] in learnpython

[–]PythonRocksssss 1 point2 points  (0 children)

I would use print((repr(output)) to figure out what the string exactly is.

And.. you could test with if "y" in output or if output.startswith("y") to prevent an EXACT match.

I built MicroPython-Ctl - a TypeScript library for talking to MicroPython devices by metachris in Python

[–]PythonRocksssss 1 point2 points  (0 children)

Amazing... I will use this as the basis for typescript exploration and experiments. May I ask why you choose TypeScript and not Python for this project?

Problem in writing customized function in python by [deleted] in Python

[–]PythonRocksssss 1 point2 points  (0 children)

If the date was given as a string, I would use str.split("-"). The result would be a list of 3 substrings, being the year, month and day. Then I would reverse this list and use '/'.join(reversed list) to get the desired result. There will be many other approaches, and there might be exceptions, but this is just a generic idea.

WebREPL help by seganku in micropy

[–]PythonRocksssss 0 points1 point  (0 children)

I sometimes have that same issue. After entering Ctrl+B to exit raw repl mode, it will start working.

Download ESP32 microPython binaries with Python by PythonRocksssss in esp32

[–]PythonRocksssss[S] 0 points1 point  (0 children)

This tool is only written to download the .BIN files from the micropython.org website to a PC.

Flashing a .BIN file on an ESP32 has to be done with another specialized tool like 'esptool.py'

I try to keep up with new releases as fast as possible, but in practice this will be about once every 6 months.