letscontrolit / ESPEasy

Easy MultiSensor device based on ESP8266/ESP32
http://www.espeasy.com
Other
3.26k stars 2.21k forks source link

Documentation of Plugins #326

Closed Grovkillen closed 1 year ago

Grovkillen commented 7 years ago

I just started this page: https://www.letscontrolit.com/wiki/index.php/Device_Plugins

We need to start documenting each (official) plugin and link to their pages: https://www.letscontrolit.com/wiki/index.php/Plugin

On the specific page we need to link to devices/sensors etc. that might be needed to use the plugin and or other explanations.

krikk commented 7 years ago

don't understand why another list, if we have already a list of supported devices, because 2 lists, more work to keep it updated, and developers are lazy... so no redundant info...

krikk commented 7 years ago

wouldn't it be better to add another column to the supported devices list?

Grovkillen commented 7 years ago

Please elaborate on the "one list fits all". My thought is that since multiple devices/sensors/actuators can work with one or more plugins the matrix table will be hard to read. The list I just made would be the go-to list for the plugin information (pure info, only links to the devices that is confirmed to work). How they are installed and how to setup the plugin belong to the device page.

Just my thought... :)

krikk commented 7 years ago

if multiple devices are supported by one plugin i would add it multiple times to the supported devices list, i did an example with dht11 and dht22, 2 entrys in the supported devices list, link to one wiki page...

because every supported device should be in the supported devices list, not only the "main" device

Grovkillen commented 7 years ago

I will populate the list I started and see if it is unnecessary. I can easily migrate it to the other list later. (I do all big tables in Notepad++ so it is no big deal to fix.)

Thanks for the input.

psy0rz commented 7 years ago

@Grovkillen https://www.letscontrolit.com/wiki/index.php/ESPEasy#Hardware_page is gone?

That used to point to the "hardware page" of the ESPEasy webinterface. (the place where you configure GPIO bootstates and wifi status leds)

Grovkillen commented 7 years ago

https://www.letscontrolit.com/wiki/index.php/ESP_Easy_web_interface#Hardware_page

It is moved to the sub page of "ESP web interface".

krikk commented 7 years ago

not good, we should not break links that are in the firmware! http://www.letscontrolit.com/wiki/index.php/ESPEasy#Hardware_page is linked from hardware page, can we do a redirect??

Grovkillen commented 7 years ago

Well we needed to clean up the main page and since "Hardware page" was a section of that main page a redirect is not possible (as far as I know).

Pages can be redirected by setting this code "#REDIRECT [[pagename]]" on the old page....

More on redirects is found here.

Grovkillen commented 7 years ago

This is the best I can do.... :/ Sorry for any inconvenience but it was a much needed clean-up of the main page. https://www.letscontrolit.com/wiki/index.php/ESPEasy#Hardware_page

krikk commented 7 years ago

ok, then i will correct the link in the source code

Grovkillen commented 7 years ago

Okay, I now have a new idea. I will hear your argument about not using a new list and remove it. But since we need to be better to link to the wiki from the firmware i suggest that we start using the approach with:

https://www.letscontrolit.com/wiki/index.php/Plugin

from within the web gui of ESP Easy. The plugin number can then be automatically fetched from the plugin number within the code (but without the prefix 0? we have created a bunch of empty plugin-pages already?). But we will not add ANY information on those pages except a redirect to whatever page is most suitable for the plugin. Please see how I redirected this page.

Hardcoded no redirect. https://www.letscontrolit.com/wiki/index.php?title=Plugin52&redirect=no

The link https://www.letscontrolit.com/wiki/index.php/Plugin52 just bounce you to https://www.letscontrolit.com/wiki/index.php/S8 which is the best unit to describe the plugin....

What do you think? This could be use for all links from within the firmware, because pages can redirect into sub sections it seems.

krikk commented 7 years ago

we already have this links to this plugin pages, this is even a feature in R120 :)

krikk commented 7 years ago

see here: https://github.com/letscontrolit/ESPEasy/blob/mega/src/WebServer.ino#L1432

Grovkillen commented 7 years ago

Sorry, didn't realize that! Then I should only care about the redirects working then. :)

Grovkillen commented 7 years ago

We can then close this issue since I thought it was needed to have a cross reference from the web interface and the wiki. I now see that the redirect from plugin-number-page is sufficient!

Grovkillen commented 7 years ago

Shouldn't we explain the indicators more in detail on each plugin? I just made this example for the "sysinfo" plugin:

https://www.letscontrolit.com/wiki/index.php/SysInfo

krikk commented 7 years ago

good idea 👍

psy0rz commented 7 years ago

indeed nice!

tonhuisman commented 1 year ago

This issue is no longer relevant, and can be closed.