plugins icon indicating copy to clipboard operation
plugins copied to clipboard

All plugins: Update plugin documentation: readme.md --> user_doc.rst

Open bmxp opened this issue 4 years ago • 22 comments

It would be great to inspect the plugin documentation if there are old readme.md present. In this case they should be converted from English readme.md which is deprecated to a German user_doc.rst.


Copied from the contribution of Morg42 (9. March 2023):

The following plugins need to be worked on as they have an existing README but no user_doc.rst:

  • [x] alexa -> marked deprecated
  • [x] apcups
  • [x] appletv
  • [x] artnet
  • [x] asterisk
  • [x] blockly
  • [ ] bsblan
  • [ ] buderus
  • [ ] co2meter
  • [ ] comfoair
  • [x] dashbutton -> not marked deprecated, but dashbuttons are not sold by Amazon any more
  • [x] datalog -> marked deprecated
  • [x] deebot_ozmo -> not marked deprecated, but the underlying Python module is not maintained any more
  • [x] easymeter -> marked deprecated
  • [ ] ebus
  • [x] ecmd -> marked deprecated
  • [x] elro -> marked deprecated
  • [ ] enigma2
  • [ ] eta_pu
  • [ ] harmony
  • [ ] helios
  • [ ] homeconnect
  • [ ] hue
  • [x] iaqstick -> retired
  • [ ] indego
  • [x] influxdata -> marked deprecated
  • [x] influxdb
  • [ ] intercom_2n
  • [x] join
  • [x] jvcproj
  • [ ] kathrein
  • [ ] kostal
  • [ ] kostalmodbus
  • [ ] ksemmodbus
  • [ ] logo
  • [ ] luxtronic2
  • [x] mailrcv
  • [x] mailsend
  • [x] memlog -> marked deprecated
  • [ ] miflora
  • [ ] milight
  • [ ] mlgw
  • [ ] mvg_live
  • [ ] nuki
  • [x] nut
  • [ ] odlinfo
  • [x] operationlog -> marked deprecated
  • [ ] plex
  • [ ] pushbullet
  • [ ] pushover
  • [x] raumfeld -> marked deprecated
  • [ ] raumfeld_ng
  • [ ] rcswitch
  • [ ] robonect
  • [ ] roomba
  • [ ] roomba_980
  • [ ] rrd
  • [ ] rtr
  • [ ] russound
  • [ ] slack
  • [ ] sma
  • [ ] sma_em
  • [ ] smarttv
  • [ ] sml
  • [x] snom -> retired
  • [x] sqlite_visu2_8 -> marked deprecated
  • [ ] systemair
  • [ ] thz
  • [ ] traffic
  • [ ] trovis557x
  • [x] unifi
  • [ ] volkszaehler
  • [x] vr100 -> retired
  • [ ] wettercom
  • [x] withings_health
  • [ ] xmpp
  • [x] zwave -> not marked deprecated, but the underlying Python module is not maintained any more

bmxp avatar Apr 23 '21 17:04 bmxp

Thanks for the corrections in the neato and casambi plugin docs. By the way, how can I locally build the user documentation to check if there are formal errors in those user_doc.rst files?

aschwith avatar Apr 24 '21 09:04 aschwith

To build the documentation locally, you need to install the requirements from doc/requirements.txt to get Sphinx going. Afterwards simply run build_doc_local.sh from the doc directory. The completed documentation is put under doc/user/build/html. Just load the index.html in a browser.

msinn avatar Apr 24 '21 11:04 msinn

The following plugins need to be worked on as they have an existing README but no user_doc.rst:

  • [x] alexa -> marked deprecated
  • [ ] apcups
  • [x] appletv
  • [ ] artnet
  • [ ] asterisk
  • [ ] blockly
  • [ ] bsblan
  • [ ] buderus
  • [ ] co2meter
  • [ ] comfoair
  • [x] dashbutton -> not marked deprecated, but dashbuttons are not sold by Amazon any more
  • [ ] datalog
  • [x] deebot_ozmo -> not marked deprecated, but the underlying Python module is not maintained any more
  • [x] easymeter -> marked deprecated
  • [ ] ebus
  • [x] ecmd -> marked deprecated
  • [x] elro -> marked deprecated
  • [ ] enigma2
  • [ ] eta_pu
  • [ ] harmony
  • [ ] helios
  • [ ] homeconnect
  • [ ] hue
  • [ ] iaqstick
  • [ ] indego
  • [x] influxdata -> marked deprecated
  • [ ] influxdb
  • [ ] intercom_2n
  • [ ] join
  • [ ] jvcproj
  • [ ] kathrein
  • [ ] kostal
  • [ ] kostalmodbus
  • [ ] ksemmodbus
  • [ ] logo
  • [ ] luxtronic2
  • [ ] mailrcv
  • [x] mailsend
  • [ ] memlog
  • [ ] miflora
  • [ ] milight
  • [ ] mlgw
  • [ ] mvg_live
  • [ ] nuki
  • [x] nut
  • [ ] odlinfo
  • [ ] plex
  • [ ] pushbullet
  • [ ] pushover
  • [ ] raumfeld
  • [ ] raumfeld_ng
  • [ ] rcswitch
  • [ ] robonect
  • [ ] roomba
  • [ ] roomba_980
  • [ ] rrd
  • [ ] rtr
  • [ ] russound
  • [ ] slack
  • [ ] sma
  • [ ] sma_em
  • [ ] smarttv
  • [ ] sml
  • [ ] snom
  • [x] sqlite_visu2_8 -> marked deprecated
  • [ ] systemair
  • [ ] thz
  • [ ] traffic
  • [ ] trovis557x
  • [ ] unifi
  • [ ] volkszaehler
  • [ ] vr100
  • [ ] wettercom
  • [ ] withings_health
  • [ ] xmpp
  • [x] zwave -> not marked deprecated, but the underlying Python module is not maintained any more

Morg42 avatar Mar 09 '23 06:03 Morg42

We should exclude deprecated plugins from the need of translation an conversion, see https://github.com/smarthomeNG/smarthome/issues/230

bmxp avatar Mar 09 '23 12:03 bmxp

I have added deprecated comments and two comments, where the plugin is not deprecated but it might not be worth the effort to update the plugin

msinn avatar Mar 09 '23 13:03 msinn

I copied Morg's list to the first post (to make the counters visible in the issue list).

The only changes since 9. of march are three plugins that have been retired.

msinn avatar Aug 29 '23 10:08 msinn

Ich habe mal geschaut aber nirgends eine explizite Anweisung gefunden:

Wenn user_doc.rst erstellt wurde dann readme.md löschen.

Aktuell ist z.B. im DLMS Plugin beides drin und das würde IMHO eigentlich doppelt sein, oder?

bmxp avatar Aug 29 '23 11:08 bmxp

Wenn readme.md deprecated ist, könnte man es dann löschen ;)

Die Informationen aus readme.md sollen ja "eingedeutscht" und in RST-Format überführt werden. Wenn also alles in user_doc.rst ist, kann die readme weg.

Morg42 avatar Aug 29 '23 11:08 Morg42

Dann sollten wir das ggf. auch irgendwo (z.B. hier) so dokumentieren...

bmxp avatar Aug 29 '23 11:08 bmxp

Ist der Hinweis inder Doku nicht ausreichend?

msinn avatar Aug 29 '23 11:08 msinn

Nein, da sollten wir dann schon reinschreiben das die alte Readme.md gelöscht werden soll finde ich

bmxp avatar Aug 29 '23 11:08 bmxp

Das war von meinem Verständnis her in "überführen" impliziert.

Kann ich aber gerne noch mal explizit rein schreiben, damit es jeder merkt.

Nachtrag: Für mich besteht das Problem aber vorwiegend darin, dass keine user_doc.rst geschrieben wird und nur in Ausnahmefällen darin, dass die README.md nicht geklöcht wird nachdem alle Informationen übertragen wurden.

msinn avatar Aug 29 '23 12:08 msinn

Versuchen wirs (nochmals) mit einem Aufruf im Forum? Oder wie wärs wenn wir ChatGPT mal darauf ansetzen (mit File-Uploads oder notfalls Copy-Paste)?

onkelandy avatar Aug 29 '23 13:08 onkelandy

Das mit dem nochmal versuchen wird wohl wenig fruchten. Viele der betrofenen Plugins sind so alt, dass sie keinen richtigen Mainainer mehr haben.

Die Doku umzustellen macht auch am meisten Sinn, wenn an dem jeweiligen Plugin sowieso geschraubt wird.

Ich habe die Hinweise ergänzt.

msinn avatar Aug 29 '23 15:08 msinn

Ich kann mir das eine oder andere Plugin noch mal vornehmen.. Asterisk habe ich in der Firma im Einsatz und apcups auch. Beim dlms und smlx schaue ich ob eine readme wegkann...

bmxp avatar Aug 29 '23 17:08 bmxp

apcups hab ich mal angefangen gehabt, glaub das user_doc ist fertig, ich schau später nochmals. Bin da irgendwo hängengeblieben.. Geiler Name des Plugins übrigens.. bei mir waren das immer die ap Tassen ;)

onkelandy avatar Aug 29 '23 18:08 onkelandy

ok, dann spare ich mir das ;-)

bmxp avatar Aug 29 '23 18:08 bmxp

Sollen wir in dem Zusammenhang mal noch ein bisschen mehr ausmisten..? Ich denke, gerade operationlog und memlog sind (beinahe?) obsolet. Ist es eurer Meinung nach den Aufwand wert, die Docu entsprechend anzupassen und zu erklären, wie die Funktionen mit Bordmitteln umsetzbar sind..? Oder einfach mal 1:1 README ins user_doc und gut ist..

onkelandy avatar Sep 22 '23 15:09 onkelandy

Das Datalog Plugin ist auch beinahe ersetzbar durch Bordmittel.. Was zB fehlt wären diese "Variablen"

  • time - the string representation of the time
  • stamp - the unix timestamp of the time

onkelandy avatar Sep 22 '23 16:09 onkelandy

Also wenn man das mit Bordmitteln auch kann dann wäre es ja gut das mal 1:1 nebeneinader darzustellen. Dann können die auf deprecated gesetzt werden und irgendwann ml verschwinden.

bmxp avatar Sep 22 '23 19:09 bmxp

Ich hab mir mal das memlog genauer angesehen. Theoretisch ermöglicht es, über Items den Loglevel, Threadname, Zeit und Message anzugeben. De facto funktioniert bei mir aber nur die Message. Der Rest wird im smartvisu widget ohnehin nicht angezeigt. Insofern erschließt sich mir der Rest nicht ganz. Das Logging aus Logiken habe ich irgendwie nicht hinbekommen, aber auch hier wäre das soweit über logging.yaml problemlos möglich, behaupte ich.

Einziger Benefit so far - man kann den Inhalt der Message über ein Item definieren. Um das abzubilden müsste im aktuellen log_change möglich sein, den Wert aus einem Item auszulesen, also zB

log_text: sh.item_d.property.value

oder vielleicht sogar in Form von {eval(sh.item())}

onkelandy avatar Sep 22 '23 21:09 onkelandy

Ich hab bezüglich Logging hier ein Update erstellt: https://github.com/smarthomeNG/smarthome/pull/605 Werde dann nochmals direkt die drei erwähnten Plugins operationlog, datalog und memlog gegenüber stellen, aber ich denke, somit wären alle Features abgedeckt.

onkelandy avatar Nov 02 '23 15:11 onkelandy