Page 3 of 3

Re: uPyEasy

Posted: 11 Jan 2018, 14:51
by karl222
Thx!

Re: uPyEasy

Posted: 17 Jan 2018, 01:55
by waspie
when might there be support for MQTT for openhab?

Re: uPyEasy

Posted: 22 Jan 2018, 14:16
by LisaM
LisaM wrote: 22 Oct 2017, 12:55
BertB wrote: 22 Oct 2017, 09:40 Thank you LisaM.
Do you think there will be room for something as easy as Rules?
I can imagine scripting is much more powerfull, but it looks like learning a new complex-ish language.
How about an example script that resembles the old rules script as close as possible? It will basically act as a template for rule based scripting, simple but leaving the option open of making it complex. Will something like that help you?

For example this old rule part:

Code: Select all

On TurnOn do
    gpio,12,1
EndOn
will be turned into this:

Code: Select all

if TurnOn:
    gpio (12,1)
endif
Scripts have grown to become almost normal, but changeable, micropython programs. Despite it's great benefit, everything is now possible with scripts, it has a big downside: you'll need to program Python.

So... i've kept Scripts, but re-introduced rules.
Rule example:

Code: Select all

if event['test#temperature'] > 15 :
     gpio('d12',1)
     event['timer1'] = 60   # seconds
 

Code: Select all

if timer1:
     gpio('d12',0)

Code: Select all

if turnon:
    gpio('d12',1)
    event['timer1'] = 60   # seconds
Since rules are way slower then scripts, i'm limiting it to one code block per file and each code block must still be correct Python. That will save some performance, since each file can then be parsed on demand instead of all of them.

Is that still exceptable?

Re: uPyEasy

Posted: 22 Jan 2018, 19:40
by BertB
Yes, I think it is great.

Re: uPyEasy

Posted: 24 Jan 2018, 11:20
by LisaM

Re: uPyEasy

Posted: 24 Jan 2018, 11:23
by LisaM
uPyEasy beta-1 is also having the menu's Scripts, Rules and Notifications hidden by default to make the menu bar less complex. They can be enabled in the advanced menu:
upyeasy menu hidden.JPG
upyeasy menu hidden.JPG (26.21 KiB) Viewed 53558 times

Re: uPyEasy

Posted: 20 Feb 2018, 10:35
by leel1967l
Hi Lisa,
very nice work.

Is there an alpha version compatible with Wemos D1 Mini with ESP 8266 and/or D1 Mini Lite ESP 8285?

thanks

Re: uPyEasy

Posted: 20 Feb 2018, 16:15
by LisaM
leel1967l wrote: 20 Feb 2018, 10:35 Hi Lisa,
very nice work.

Is there an alpha version compatible with Wemos D1 Mini with ESP 8266 and/or D1 Mini Lite ESP 8285?

thanks
Hi leel1967l,

Not yet, i'm planning on a beta version for the ESP8266 to be released soon.

Cheers,

Lisa

Re: uPyEasy

Posted: 28 Feb 2018, 12:04
by uweklaus
Hi LisaM,

I would also love to test it on a WeMOS D1 mini ... :)

Re: uPyEasy

Posted: 07 May 2018, 16:51
by roondar
@LisaM

Really great work :p

Re: uPyEasy

Posted: 07 Sep 2018, 22:00
by dony71
any version for ESP8266 to try yet?

Re: uPyEasy

Posted: 30 Mar 2019, 06:03
by iiot
Lisa what ever happened to this? Will you be releasing an ESP8266 version? I think this firmware would be perfect for a project i have

Re: uPyEasy

Posted: 29 May 2019, 00:24
by LisaM
iiot wrote: 30 Mar 2019, 06:03 Lisa what ever happened to this? Will you be releasing an ESP8266 version? I think this firmware would be perfect for a project i have
Hi iiot,

The source code has grown to such a size that it's using to much heap memory to be able to use it on a ESP8266, so minimal requirements is still the ESP32.

Cheers,

Lisa