Device Webform CustomPlugin help

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mstjerna
Normal user
Posts: 10
Joined: 17 Jan 2018, 16:43

Device Webform CustomPlugin help

#1 Post by mstjerna » 15 Mar 2018, 15:00

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

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Device Webform CustomPlugin help

#2 Post by papperone » 16 Mar 2018, 07:38

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!
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

Lockzi
Normal user
Posts: 6
Joined: 07 Oct 2016, 22:27

Re: Device Webform CustomPlugin help

#3 Post by Lockzi » 18 Mar 2018, 14:00

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?

Post Reply

Who is online

Users browsing this forum: No registered users and 18 guests