[Documentation] Markdown improvements f to m (#13866)

Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
This commit is contained in:
Jerome Luckenbach
2022-12-08 21:36:05 +01:00
committed by GitHub
parent 3c236b3103
commit 0e68936663
122 changed files with 3490 additions and 3662 deletions

View File

@@ -4,7 +4,6 @@
With the openHAB MPD binding you can control Music Player Daemons.
## Supported Things
This binding supports one ThingType: mpd
@@ -13,7 +12,6 @@ This binding supports one ThingType: mpd
If zeroconf is enabled in the Music Player Daemon, it is discovered. Each Music Player daemon requires a unique zeroconf_name for correct discovery.
## Thing Configuration
The ThingType mpd requires the following configuration parameters:
@@ -24,7 +22,6 @@ The ThingType mpd requires the following configuration parameters:
| Port | port | Port number on which the Music Player Daemon is listening. Default: 6600 | yes |
| Password | password | Password to access the Music Player Daemon | no |
## Channels
The following channels are currently available:
@@ -42,18 +39,17 @@ The following channels are currently available:
| currenttitle | String | Current title |
| currenttrack | Number | Current track |
## Full Example
#### Thing
### Thing
```
```java
mpd:mpd:music [ ipAddress="192.168.1.2", port=6600 ]
```
#### Items
### Items
```
```java
Switch morning_music "Morning music"
Player mpd_music_player "Player" { channel = "mpd:mpd:music:control" }
@@ -68,9 +64,9 @@ String mpd_music_title "Title [%s]" { channel = "mpd:mpd:music:currenttitle" }
Number mpd_music_track "Track [%d]" { channel = "mpd:mpd:music:currenttrack" }
```
#### Sitemap
### Sitemap
```
```perl
Frame label="Music" {
Default item=mpd_music_player
Slider item=mpd_music_volume
@@ -85,9 +81,9 @@ Frame label="Music" {
}
```
#### Rule
### Rule
```
```java
rule "turn on morning music"
when
Item morning_music changed to ON