uPyEasy

Moderators: Voyager, BertB, grovkillen, Stuntteam, LisaM

Message
Author
karl222
Normal user
Posts: 90
Joined: 23 Aug 2017, 17:18
Location: Vienna

Re: uPyEasy

#121 Post by karl222 » 11 Jan 2018, 14:51

Thx!

waspie
Normal user
Posts: 127
Joined: 09 Feb 2017, 19:35

Re: uPyEasy

#122 Post by waspie » 17 Jan 2018, 01:55

when might there be support for MQTT for openhab?

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: uPyEasy

#123 Post by LisaM » 22 Jan 2018, 14:16

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?

BertB
Normal user
Posts: 1049
Joined: 25 Apr 2015, 14:39

Re: uPyEasy

#124 Post by BertB » 22 Jan 2018, 19:40

Yes, I think it is great.

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: uPyEasy

#125 Post by LisaM » 24 Jan 2018, 11:20


LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: uPyEasy

#126 Post by LisaM » 24 Jan 2018, 11:23

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 52476 times

leel1967l
Normal user
Posts: 73
Joined: 30 Nov 2017, 18:29

Re: uPyEasy

#127 Post by leel1967l » 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

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: uPyEasy

#128 Post by LisaM » 20 Feb 2018, 16:15

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

uweklaus
New user
Posts: 7
Joined: 28 Feb 2018, 09:33

Re: uPyEasy

#129 Post by uweklaus » 28 Feb 2018, 12:04

Hi LisaM,

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

roondar
New user
Posts: 1
Joined: 08 Jan 2018, 23:08

Re: uPyEasy

#130 Post by roondar » 07 May 2018, 16:51

@LisaM

Really great work :p

dony71
Normal user
Posts: 16
Joined: 25 Apr 2018, 20:01

Re: uPyEasy

#131 Post by dony71 » 07 Sep 2018, 22:00

any version for ESP8266 to try yet?

iiot
New user
Posts: 1
Joined: 30 Mar 2019, 06:01

Re: uPyEasy

#132 Post by iiot » 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

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: uPyEasy

#133 Post by LisaM » 29 May 2019, 00:24

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

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests