Search found 8 matches

by rguillon
Sat Feb 27, 2021 7:33 am
Forum: Programs, Libraries and Tools
Topic: rshell - Remote Shell
Replies: 89
Views: 110191

Re: rshell - Remote Shell

Hello, rsync and cp commands don't seems to work with symlinks. I have several devices with different configurations, each device has it's own source dir with the specifics and symlinks to the common sources, in my case DIR1 and DIR2 : $ rshell cp -r * /pyboard Using buffer-size of 32 Connecting to ...
by rguillon
Fri Feb 19, 2021 5:13 pm
Forum: ESP32 boards
Topic: A little Home Assistant Mqtt integration using mqtt_as
Replies: 4
Views: 3399

Re: A little Home Assistant Mqtt integration using mqtt_as

I'm now using pysmartnode, thanks.

I ported my code into a new ComponentBase that was pretty easy to understand.

https://github.com/rguillon/pysmarttank
by rguillon
Tue Feb 09, 2021 7:42 pm
Forum: ESP32 boards
Topic: A little Home Assistant Mqtt integration using mqtt_as
Replies: 4
Views: 3399

Re: A little Home Assistant Mqtt integration using mqtt_as

Thanks, that looks way more advanced than mine, I will definitely have a look.
by rguillon
Mon Feb 08, 2021 7:47 pm
Forum: ESP32 boards
Topic: A little Home Assistant Mqtt integration using mqtt_as
Replies: 4
Views: 3399

A little Home Assistant Mqtt integration using mqtt_as

Hi all, I've made a little library allowing me to interface a esp32 with home assistant using Peter Hinch's mqtt_as. I have implemented switches, basic lights, lights with brightness and RGB lights. Devices are automatically registered into home assistant with mqtt discovery, allowing to create auto...
by rguillon
Thu Aug 25, 2016 9:31 pm
Forum: General Discussion and Questions
Topic: Question about unix/utime.
Replies: 5
Views: 4811

Re: Question about unix/utime.

Sorry if I misunderstand something but it seems to me that this only exposes the C function. Would it not need some wrapping to make it usable like the python localtime?
by rguillon
Thu Aug 25, 2016 7:20 pm
Forum: General Discussion and Questions
Topic: Question about unix/utime.
Replies: 5
Views: 4811

Question about unix/utime.

I need the functions mktime and localtime but they are missing on the unix port.

Are they left out on purpose or is it something I could be working on?
by rguillon
Sat Aug 13, 2016 2:13 pm
Forum: Programs, Libraries and Tools
Topic: A simple port of the module random
Replies: 0
Views: 2909

A simple port of the module random

I have a simple lfsr based implementation of the module random, ported from the cpython one:

https://github.com/rguillon/micropython ... dom/random

It provides all the services and only depends on the math module.
by rguillon
Thu Aug 11, 2016 12:11 pm
Forum: General Discussion and Questions
Topic: crlf troubles on linux
Replies: 2
Views: 3114

crlf troubles on linux

I just cloned a fresh copy of micropython and gets a lots of files marked as modified in the stmhal and lib directories, all are CRLF inconsistency. Do I need to configure git? I've tried to play with "autocrlf" in my .gitconfig but it's not helping. edit: I had an old git (v1.7.10.4) who did not ha...