Page 1 of 1

Device Webform CustomPlugin help

Posted: 15 Mar 2018, 15:00
by mstjerna
Help wanted in how to setup input on the Device webform.

I'm developing a plugin for a stepper motor and have the code running for my application.
I want to port this to the ESPEasy but facing some issues in understanding how to setup the"Device Form input"

This is what I need to do:

4 GPIO Selection. I only found a "DEVICE_TYPE_TRIPLE"
2 Text inputs. PositionTop, PositionBottom
1 Dropdown, Speed with a 5-8 different values
1 checkbox, Use acceleration[/list][/list]

I would highly appreciate all help or tips i could get!

Br
Michael Stjerna

Re: Device Webform CustomPlugin help

Posted: 16 Mar 2018, 07:38
by papperone
For the 4 pins you can use custom web coding and store manually the values.
Please pay attention not to use "blocking code" within your plugin. If your stepper command takes several seconds to be executed should not be done blocking all the core functions of ESPEasy to avoid issues and eventually crashes!

Re: Device Webform CustomPlugin help

Posted: 18 Mar 2018, 14:00
by Lockzi
Hey Michael,

you seem to be doing exactly what I am looking into.
In addition to your post on this forum I saw your raised issue on Github.

How far along are you? Do you have any kind of proof of concept?