]> git.basschouten.com Git - openhab-addons.git/commitdiff
Make Markdown code block languages consistent (#17480)
authorJacob Laursen <jacob-github@vindvejr.dk>
Sun, 29 Sep 2024 10:47:18 +0000 (12:47 +0200)
committerGitHub <noreply@github.com>
Sun, 29 Sep 2024 10:47:18 +0000 (12:47 +0200)
* Make Markdown code block languages consistent

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
* Fix indentation

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
---------

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
39 files changed:
bundles/org.openhab.automation.groovyscripting/README.md
bundles/org.openhab.automation.jsscriptingnashorn/README.md
bundles/org.openhab.binding.amazonechocontrol/README.md
bundles/org.openhab.binding.argoclima/README.md
bundles/org.openhab.binding.avmfritz/README.md
bundles/org.openhab.binding.bigassfan/README.md
bundles/org.openhab.binding.daikin/README.md
bundles/org.openhab.binding.dbquery/README.md
bundles/org.openhab.binding.emotiva/README.md
bundles/org.openhab.binding.fenecon/README.md
bundles/org.openhab.binding.flume/README.md
bundles/org.openhab.binding.globalcache/README.md
bundles/org.openhab.binding.growatt/README.md
bundles/org.openhab.binding.hdpowerview/README.md
bundles/org.openhab.binding.hue/README.md
bundles/org.openhab.binding.hue/doc/readme_v1.md
bundles/org.openhab.binding.hue/doc/readme_v2.md
bundles/org.openhab.binding.icloud/README.md
bundles/org.openhab.binding.insteon/README.md
bundles/org.openhab.binding.loxone/README.md
bundles/org.openhab.binding.mercedesme/README.md
bundles/org.openhab.binding.miele/README.md
bundles/org.openhab.binding.nanoleaf/README.md
bundles/org.openhab.binding.network/README.md
bundles/org.openhab.binding.oceanic/README.md
bundles/org.openhab.binding.onkyo/README.md
bundles/org.openhab.binding.pioneeravr/README.md
bundles/org.openhab.binding.pulseaudio/README.md
bundles/org.openhab.binding.radiobrowser/README.md
bundles/org.openhab.binding.solarman/README.md
bundles/org.openhab.binding.telegram/README.md
bundles/org.openhab.binding.velux/README.md
bundles/org.openhab.binding.yamahareceiver/README.md
bundles/org.openhab.transform.jsonpath/README.md
bundles/org.openhab.transform.regex/README.md
bundles/org.openhab.transform.xpath/README.md
bundles/org.openhab.voice.pipertts/README.md
bundles/org.openhab.voice.rustpotterks/README.md
bundles/org.openhab.voice.voskstt/README.md

index 39fa2fd5a097cbe6f825ffe6c2059be26e28ed0a..9164da3a4784096db3c1640b618746b7dba91622 100644 (file)
@@ -15,7 +15,7 @@ If you create an empty file called `test.groovy`, you will see a log line with i
 
 To enable debug logging, use the [console logging]({{base}}/administration/logging.html) commands to enable debug logging for the automation functionality:
 
-```text
+```shell
 log:set DEBUG org.openhab.core.automation
 ```
 
index dec02996e65e43a84fef86f4b4882af5e6d94ab3..9574571e83fdcab3899713aaaaf43c93fd20c1e4 100644 (file)
@@ -21,7 +21,7 @@ If you create an empty file called `test.nashornjs`, you will see a log line wit
 
 To enable debug logging, use the [console logging]({{base}}/administration/logging.html) commands to enable debug logging for the automation functionality:
 
-```text
+```shell
 log:set DEBUG org.openhab.core.automation
 ```
 
index a9cd5da40b68e50299767bb7dcc65c74e456f657..623eca511baa6cb42892c38027c826fd3fd826a0 100644 (file)
@@ -537,7 +537,7 @@ E.g. to read out the history call from an installation on openhab:8080 with an a
 
 1) Create a rule with a trigger of your choice
 
-```php
+```java
 rule "Say welcome if the door opens"
 when
     Item Door_Contact changed to OPEN
@@ -548,7 +548,7 @@ end
 
 You can also use [SSML](https://docs.aws.amazon.com/polly/latest/dg/supported-ssml.html) to provide a better voice experience
 
-```php
+```java
 rule "Say welcome if the door opens"
 when
     Item Door_Contact changed to OPEN
@@ -563,7 +563,7 @@ end
 
 Simple:
 
-```php
+```java
 rule "Say welcome if the door opens"
 when
     Item Door_Contact changed to OPEN
@@ -576,7 +576,7 @@ Expert:
 
 You can use a json formatted string to control title, sound and volume:
 
-```php
+```json
 {"sound": true, "speak":"<Speak>", "title": "<Title>", "body": "<Body Text>", "volume": 20}
 ```
 
index 590de6b86bce9bd280b35436b873c3d0654f7072..3da78cb983e3585575210ab47e4ec5eac7986623 100644 (file)
@@ -269,7 +269,7 @@ Switch  ArgoClimaHVACRemote_FilterMode  "Filter Mode"    <switch> (GArgoClimaHVA
 
 ### argoclima.sitemap
 
-```java
+```perl
 // All things in all modes expose the same channels
 Frame label="❄ HVAC Control" {
     Switch item=ArgoClimaHVACRemote_Power
index af2ef941f36241dacc14923eecc532a44fbacbb4..57a5ebdc7aab56eae3eb3afabc78404ac3c34f19 100644 (file)
@@ -126,7 +126,7 @@ To do so
 Auto-discovery is enabled by default.
 To disable it, you can add the following line to `<openHAB-conf>/services/runtime.cfg`:
 
-```text
+```ini
 discovery.avmfritz:background=false
 ```
 
index 26aac3dffe3ea74f4cc0be45622c8ed2ab68f463..27c4699368f29f0d9755926ee242e213c7d04ac2 100644 (file)
@@ -48,7 +48,7 @@ Background discovery polls the network every few minutes for devices.
 Background discovery is **enabled** by default.
 To **disable** background discovery, add the following line to the _conf/services/runtime.cfg_ file:
 
-```text
+```ini
 discovery.bigassfan:background=false
 ```
 
index 95b2d6089323a285b871f1404939613ab40b94ab..d2ed740a1cfbd7df1379dbc94a58055c9ee673c5 100644 (file)
@@ -21,7 +21,7 @@ Background discovery polls the network every minute for devices.
 Background discovery is **enabled** by default.
 To **disable** background discovery, add the following line to the _conf/services/runtime.cfg_ file:
 
-```text
+```ini
 discovery.daikin:background=false
 ```
 
index 1078859d04f338a96a021cada4eca3b8176aca95..74e167b4d9e827de71fce10aefa8c43e95b99d64 100644 (file)
@@ -212,7 +212,7 @@ Create a rule that is fired
 - **When** `calculateParameters` is triggered in `myquery`
 - **Then** executes the following script action (in that example Jython):
 
-```text
+```python
 map = {"time" : "-2h"}
 dbquery = actions.get("dbquery","dbquery:query:myquery")
 dbquery.setQueryParameters(map)
index 62f7ab3d2ccfd6af1c7edc50ddc06735afd1d31b..84d127fcaea74a0ef9d69821bdff32e07fb573ca 100644 (file)
@@ -117,15 +117,15 @@ The Emotiva Processor supports the following channels (some channels are model s
 
 ## Full Example
 
-### `.things` file:
+### `.things` file
 
-```perl
+```java
 Thing emotiva:processor:1 "XMC-2" @ "Living room" [ipAddress="10.0.0.100", protocolVersion="3.0"]
 ```
 
-### `.items` file:
+### `.items` file
 
-```perl
+```java
 Switch                  emotiva-power               "Processor"                     {channel="emotiva:processor:1:general#power"}
 Dimmer                  emotiva-volume              "Volume [%d %%]"                {channel="emotiva:processor:1:main-zone#volume"}
 Number:Dimensionless    emotiva-volume-db           "Volume [%d dB]"                {channel="emotiva:processor:1:main-zone#volume-db"}
@@ -148,7 +148,7 @@ String                  emotiva-menu-tottom-center  ""                      <non
 String                  emotiva-menu-tottom-end     ""                      <none>  {channel="emotiva:processor:1:general#menu-display-bottom-end"}
 ```
 
-### `.sitemap` file:
+### `.sitemap` file
 
 ```perl
 Group item=emotiva-input label="Processor" icon="receiver" {
index 36fbb06a4defb728ed64d9af732fb94aad367c25..09385b4676156ce8d3ce5129129cd07c30f5d855 100644 (file)
@@ -93,7 +93,6 @@ Number:Energy        TotalBuyEnergy                 <energy>       (GF_UtilityRo
 // Examples of items for calculating the energy purchased and sold. Look at the demo.rules section.
 Number:Currency      SoldEnergy "Total sold energy [%.2f €]"           <price> (GF_UtilityRoomSolar)
 Number:Currency      PurchasedEnergy "Total purchased energy [%.2f €]" <price> (GF_UtilityRoomSolar)
-
 ```
 
 ### demo.sitemap
index 6b7d90eb6ba0e7ec9980713eb0fb1d247df9de8b..0a77c426f57404020c60c65349c96355e13251df 100644 (file)
@@ -62,22 +62,20 @@ Note, there is a rate limit of 120 queries per hour imposed by Flume so use caut
 Please note that the device meter ID is only available through the API and not available on the Flume portal.
 When the Bridge device is first created, there will be a log message with the ID of the discovered device which can be used in further configuring the device via the text files.
 
-```
+```java
 Bridge flume:cloud:cloudconnector [ username="xxx", password="xxx", clientId="xxx", clientSecret="xxx" ] {
-
     meter-device meter [ id="xxx" ]
 }
 ```
 
 ### Item Configuration
 
-```
+```java
 Number:VolumetricFlowRate     InstantUsage     "Instant Usage"         { channel = "flume:meter-device:1:meter:instant-usage" }
 Number:Volume                 CumulativeUsed   "Cumulative Used"       { channel = "flume:meter-device:1:meter:cumulative-usage" }
 Number:Dimensionless          BatteryLevel     "Battery Level"         { channel = "flume:meter-device:1:meter:battery-level" }
 DateTime                      LastSeen         "Last Seen"             { channel = "flume:meter-device:1:meter:last-seen" }
 Switch                        LowPower         "Battery Low Power"     { channel = "flume:meter-device:1:meter:low-battery" }
-
 ```
 
 ### Rules
index 149f7d19f72cc5173f3a91ccfcd8774299cdd852..554c76a2207065cb1776111d5fb3e4a73160b2b4 100644 (file)
@@ -127,7 +127,7 @@ The GlobalCache binding will automatically detect those devices, then add them t
 Background discovery is **enabled** by default.
 To disable background discovery, add the following line to the _conf/services/runtime.cfg_ file:
 
-```text
+```ini
 discovery.globalcache:background=false
 ```
 
index 86fd378d8715dbd7fd459191d2ac551f6aec5610..328a2b05097b0db138fe0d719b2cc73c9384edf9 100644 (file)
@@ -139,14 +139,14 @@ The list of all possible channels is as follows:
 This binding includes rule actions, which allow you to setup programs for battery charging and discharging.
 Each inverter thing has a separate actions instance, which can be retrieved as follows.
 
-```php
+```java
 val growattActions = getActions("growatt", "growatt:inverter:home:sph")
 ```
 
 Where the first parameter must always be `growatt` and the second must be the full inverter thing UID.
 Once the action instance has been retrieved, you can invoke the following method:
 
-```php
+```java
 growattActions.setupBatteryProgram(int programMode, @Nullable Integer powerLevel, @Nullable Integer stopSOC, @Nullable Boolean enableAcCharging, @Nullable String startTime, @Nullable String stopTime, @Nullable Boolean enableProgram)
 ```
 
@@ -184,7 +184,7 @@ The permission for passing 'null' parameters, and the effect of such 'null' para
 
 The following is an example program to charge the battery during a night-time low tariff period, and depending on the forecast solar energy for the coming day.
 
-```php
+```java
 // solar power constants
 val Integer programMode = 1 // 0 = Load First, 1 = Battery First, 2 = Grid First
 val Integer powerLevel = 23 // percent
@@ -257,7 +257,7 @@ end
 
 The following is an example program to charge the battery in preparation to avoid importing energy during a coming extra high tariff time window.
 
-```php
+```java
 // solar power constants
 var pauseProgramLastSetupDate
 
@@ -409,7 +409,7 @@ The installation is as follows:
 
 A suggested Grott configuration for openHAB is as follows:
 
-```php
+```ini
 [Generic]
 mode = proxy
 compat = False
@@ -437,7 +437,7 @@ The service configuration for Linux is summarised below:
 - Copy the `grott.service` file to the `/etc/systemd/system/` folder
 - Modify `grott.service` to enter your user name; the Grott settings; the path to Python; and the path to the Grott application:
 
-```php
+```ini
 [Service]
 SyslogIdentifier=grott
 User=<username>  // your username
index 339069015ed18640609490dd3e5762f70d05b31b..fe139765351b988ec666dda79d2355c4bf6b982c 100644 (file)
@@ -323,7 +323,7 @@ Switch Automation_Children_Up_Time "Children Up At 6:30" {channel="hdpowerview:h
 
 ### `demo.sitemap` File
 
-```php
+```perl
 Frame label="Living Room" {
     Switch item=Living_Room_Shades_Scene_Open
     Slider item=Living_Room_Shade_Position
index 47b323b215dd55222cd73dbb19438694a988ef51..68f3f7743ea533fa76a3abd60bc7b160ff8ce257 100644 (file)
@@ -37,7 +37,7 @@ Potentially two types of Bridge will be discovered - namely an API v1 Bridge and
 Auto-discovery is enabled by default.
 To disable it, you can add the following line to `<openHAB-conf>/services/runtime.cfg`:
 
-```text
+```ini
 discovery.hue:background=false
 ```
 
index 6e9bf2fa8f719380ab3dd2a26ff06c4d387d4003..fd118c32f5835404b91b9603bbe140531904399e 100644 (file)
@@ -217,14 +217,14 @@ The `tap_switch_event` can trigger one of the following events:
 This binding includes a rule action, which allows to change a light channel with a specific fading time from within rules.
 There is a separate instance for each light or light group, which can be retrieved e.g. through
 
-```php
+```java
 val hueActions = getActions("hue","hue:0210:00178810d0dc:1")
 ```
 
 where the first parameter always has to be `hue` and the second is the full Thing UID of the light that should be used.
 Once this action instance is retrieved, you can invoke the `fadingLightCommand(String channel, Command command, DecimalType fadeTime)` method on it:
 
-```php
+```java
 hueActions.fadingLightCommand("color", new PercentType(100), new DecimalType(1000))
 ```
 
@@ -335,7 +335,7 @@ sitemap demo label="Main Menu"
 
 ### Events
 
- ```php
+ ```java
 rule "example trigger rule"
 when
     Channel "hue:0820:1:dimmer-switch:dimmer_switch_event" triggered <EVENT>
@@ -349,7 +349,7 @@ If ommited the rule gets triggered by any key action and you can determine the e
 Be aware that the events have a '.0' attached to them, like `2001.0` or `34.0`.
 So, testing for specific events looks like this:
 
-```php
+```java
 if (receivedEvent == "1000.0") {
     //do stuff
 }
index ca6b2cacb0238bc98c267259b7138ab4f3391fd7..d921b994daf238613ddb5afc0607fa6b047d1195 100644 (file)
@@ -207,14 +207,14 @@ openhab> openhab:hue hue:bridge-api2:g24 things > myThingsFile.things
 This binding includes a rule action, which implements dynamic (i.e. gradual) transitions to a new scene or light(s) state.
 Each thing has a separate action instance, which can be retrieved as follows.
 
-```php
+```java
 val hueActions = getActions("hue","hue:device:g24:11111111-2222-3333-4444-555555555555")
 ```
 
 Where the first parameter must always be `hue` and the second must be the full thing UID.
 Once the action instance has been retrieved, you can invoke its `dynamicCommand(String channelId, Command command, Long durationMs)` method as follows.
 
-```php
+```java
 hueActions.dynamicCommand("brightness", new PercentType(100), new Long(10000))
 
 hueActions.dynamicCommand("scene", new StringType("SceneName"), new Long(20000))
index 8a8ad621ebd1ef26c9dce8ec130a04ddda3f58e9..479852be6f51b78193a61720433b4e8ee97b755e 100644 (file)
@@ -67,7 +67,7 @@ The following channels are available (if supported by the device):
 
 ### icloud.things
 
-```php
+```java
 Bridge icloud:account:myaccount [appleId="mail@example.com", password="secure", code="123456", refreshTimeInMinutes=5]
 {
     Thing device myiPhone8 "iPhone 8" @ "World" [deviceId="VIRG9FsrvXfE90ewVBA1H5swtwEQePdXVjHq3Si6pdJY2Cjro8QlreHYVGSUzuWV"]
@@ -79,7 +79,7 @@ The information _@ "World"_ is optional.
 
 ### icloud.items
 
-```php
+```java
 Group    iCloud_Group "iPhone"
 
 String   iPhone_BatteryStatus             "Battery Status [%s]"     <battery>   (iCloud_Group) {channel="icloud:device:myaccount:myiPhone8:batteryStatus"}
@@ -94,7 +94,7 @@ Switch   iPhone_Home                      "Phone Home"              <presence>
 
 ### icloud.sitemap
 
-```php
+```perl
 sitemap icloud label="iCloud" {
     Frame item=iCloud_Group {
         Text item=iPhone_BatteryStatus
@@ -112,7 +112,7 @@ sitemap icloud label="iCloud" {
 
 ### icloud.rules
 
-```php
+```java
 rule "iPhone Home"
 when
     Item iPhone_Location changed
index 869ff6f87a4048a47937dfa04ad6c23b69381a34..e033abe0beb6617e290ea58b32ede333318a5910 100644 (file)
@@ -836,7 +836,7 @@ Insufficient access to the lock directory will result in openHAB failing to acce
 Device types are defined in the file `device_types.xml`, which is inside the Insteon bundle and thus not visible to the user.
 You can however load your own device_types.xml by referencing it in the network config parameters:
 
-```text
+```ini
 additionalDevices="/usr/local/openhab/rt/my_own_devices.xml"
 ```
 
@@ -861,7 +861,7 @@ Avoid duplicate keys by finding the highest fake product key in the `device_type
 
 If you can't build a new device out of the existing device features (for a complete list see `device_features.xml`) you can add new features by specifying a file (let's call it `my_own_features.xml`) with the "additionalDevices" option in the network config parameters:
 
-```text
+```ini
 additionalFeatures="/usr/local/openhab/rt/my_own_features.xml"
 ```
 
index 7cdbc7e1694aafd870aba5b824ff8e96d0c9ee83..ffa989d8d1e4025e5f664962462647c5ed377a6b 100644 (file)
@@ -200,7 +200,7 @@ If a parameter is not explicitly defined, binding will use its default value.
 
 To define a parameter value in a .things file, please refer to it by parameter's ID, for example:
 
-```text
+```ini
 keepAlivePeriod=120
 ```
 
index 804e80ce5a563ddb956b2f09f3556f703ea6a33d..3c8dd61e4f96f4553bfb48c681644d0749c98395 100644 (file)
@@ -615,7 +615,6 @@ The Mercedes ECO Score is aimed to improve your driving behavior.
 - Constant Score: drive at constant speed e.g. use *cruise control*
 - Bonus Range: assumed bonus range vs. a *very sportive driver*
 
-
 ### Position
 
 Group name: `position`
@@ -740,7 +739,7 @@ Send lock/unlock or temperatures in a short period of time will result in failur
 
 ## Vehicle Actions
 
-Actions for `vehicle` [thing}(#vehicle) are provided.
+Actions for `vehicle` [thing](#vehicle) are provided.
 
 ### `sendPOI`
 
@@ -760,16 +759,16 @@ This POI can be used as navigation destination.
 
 Required information
 
-```
-        val mercedesmeActions = getActions("mercedesme","mercedesme:bev:4711:eqa")
-        mercedesmeActions.sendPOI("Eiffel Tower",48.85957476434348,2.2939068084684853)
+```java
+val mercedesmeActions = getActions("mercedesme","mercedesme:bev:4711:eqa")
+mercedesmeActions.sendPOI("Eiffel Tower",48.85957476434348,2.2939068084684853)
 ```
 
 Full information
 
-```
-        val mercedesmeActions = getActions("mercedesme","mercedesme:bev:4711:eqa")
-        mercedesmeActions.sendPOI("Eiffel Tower",48.85957476434348,2.2939068084684853,"Paris","Av. Gustave Eiffel", "75007")
+```java
+val mercedesmeActions = getActions("mercedesme","mercedesme:bev:4711:eqa")
+mercedesmeActions.sendPOI("Eiffel Tower",48.85957476434348,2.2939068084684853,"Paris","Av. Gustave Eiffel", "75007")
 ```
 
 ## Discover your Vehicle
@@ -797,14 +796,14 @@ Vehicle Identification Number (VIN) isn't part of data.
 GPS data which is showing your location is anonymized.
 Please double check yourself no critical data is inside.
 The content of these items shall be used to create a problem report.
-During development the `proto-update`  contains an entry with binding version information.
+During development the `proto-update` contains an entry with binding version information.
 
-```
-    "bindingInfo": {
-        "oh-bundle": "4.1.0.202309241814",
-        "version": "2.2-alpha",
-        "vehicle": "mercedesme:bev"
-    }
+```json
+"bindingInfo": {
+    "oh-bundle": "4.1.0.202309241814",
+    "version": "2.2-alpha",
+    "vehicle": "mercedesme:bev"
+}
 ```
 
 Keep these 3 channels disconnected during normal operation.
@@ -896,7 +895,7 @@ DateTime                EQA_CommandTimestamp        {channel="mercedesme:bev:471
 
 ### POI ruleExample
 
-```
+```java
 // send POI from JSON String item
 rule "Send POI"
     when
index 4100aa5deae76ba47ae528d1d4789e288daac8c0..8d29af74449756cd2454872ae213779e9bf16a99 100644 (file)
@@ -37,7 +37,7 @@ To avoid this, there is a discovery configuration parameter `removalGracePeriod`
 The default value is 15 seconds.
 If you want to change this value just add the following line to your `$OPENHAB_CONF/services/runtime.cfg` file.
 
-```text
+```ini
 discovery.miele:removalGracePeriod=30
 ```
 
index e5f9e64748bc95e77dc201e799ccaaad08b6da19..60db6d0618a64cbae57ab9cfc51e89d80add8f09 100644 (file)
@@ -137,15 +137,16 @@ It is therefore recommended to disable IPv6 on the openHAB server.
 
 This can e.g. be achieved on openHABian the following way:
 
-```text
+```shell
 sudo nano /etc/sysctl.conf`
+```
 
 Add the following at the bottom of the file:
 
+```ini
 net.ipv6.conf.all.disable_ipv6 = 1
 net.ipv6.conf.default.disable_ipv6 = 1
 net.ipv6.conf.lo.disable_ipv6 = 1
-
 ```
 
 Reboot your server after the change.
index 663504e0bcad45ed068bad261cf1b27394cb53e9..7fc819372dfb29a5e0524dbc33458760589f0933 100644 (file)
@@ -17,7 +17,7 @@ The binding has the following configuration options:
 
 Create a `<openHAB-conf>/services/network.cfg` file and use the above options like this:
 
-```text
+```ini
 binding.network:allowSystemPings=true
 binding.network:allowDHCPlisten=false
 binding.network:arpPingToolPath=arping
index 92bf1f986708927ee56cbd539a5947fb2b658672..ea9c25b09e918ecc02397321dda2ee8e29d8ab1a 100644 (file)
@@ -107,7 +107,7 @@ Within the Oceanic binding two routes are provided:
 
 Both workarounds can be implemented using a systemd system manager script, for example:
 
-```text
+```ini
 [Install]
 WantedBy=multi-user.target
 
index fa4aa6cd9255dd8d3f1d985ca8626dbe454269ab..f0c724da5970b63fdb05cf3bf2c8f2136614469c 100644 (file)
@@ -56,7 +56,7 @@ The binding can auto-discover the Onkyo AVRs present on your local network.
 The auto-discovery is enabled by default.
 To disable it, you can create a file in the services directory called onkyo.cfg with the following content:
 
-```text
+```ini
 org.openhab.onkyo:enableAutoDiscovery=false
 ```
 
@@ -82,7 +82,7 @@ In the thing file, this looks e.g. like
 
 Model specific
 
-```text
+```java
 onkyo:TX-NR818:avr-livingroom [ipAddress="192.168.1.100", port=60128]
 ```
 
@@ -90,20 +90,20 @@ or
 
 Generic model
 
-```text
+```java
 onkyo:onkyoAVR:avr-livingroom [ipAddress="192.168.1.100", port=60128]
 ```
 
 Optionally you can specify the refresh interval by `refreshInterval` parameter.
 
-```text
+```java
 onkyo:onkyoAVR:avr-livingroom [ipAddress="192.168.1.100", port=60128, refreshInterval=30]
 ```
 
 Maximum volume level can also be configured by `volumeLimit` parameter.
 This prevent setting receiver volume level too high, which could damage your speakers or receiver.
 
-```text
+```java
 onkyo:onkyoAVR:avr-livingroom [ipAddress="192.168.1.100", port=60128, volumeLimit=50]
 ```
 
@@ -123,7 +123,7 @@ See below for a few examples:
 
 Note that this is applied after the volume limiting took place.
 
-```text
+```java
 onkyo:onkyoAVR:avr-livingroom [ipAddress="192.168.1.100", port=60128, volumeScale=2]
 ```
 
index 40b5d6cfc5006722e17ba1337d8d9b425bb6ed33..5d6af85ad9648f614c45a1fd46dcd42ed954b0ff 100644 (file)
@@ -8,7 +8,7 @@ The binding can auto-discover the Pioneer AVRs present on your local network.
 The auto-discovery is enabled by default.
 To disable it, you can create a file in the services directory called pioneeravr.cfg with the following content:
 
-```text
+```ini
 #Put your configuration here
 org.openhab.pioneeravr:enableAutoDiscovery=false
 ```
index 410cda133b016fe5ad7a5f627c0bbf89418a1a38..204bf2b661e3ef05dc48b0cd44d4db8833d01d01 100644 (file)
@@ -29,7 +29,7 @@ The Pulseaudio binding can be customized to handle different devices. The Sink a
 
 You can use the GUI on the bindings page (click on the pulseaudio binding then "Expand for details"), or create a `<openHAB-conf>/services/pulseaudio.cfg` file and use the above options like this:
 
-```text
+```ini
 binding.pulseaudio:sink=true
 binding.pulseaudio:source=true
 binding.pulseaudio:sinkInput=false
index e1d4ad748cc04dbaa769a046167e998b4b50ec88..4bb9294cfaeda7f971f5df5edc7a091d2ba2da8a 100644 (file)
@@ -64,21 +64,20 @@ Searches can be done in a few different ways and since the binding will auto sel
 
 Examples on how to do searches from rules, or you can also change an item to take input by using `oh-input-item` using metadata called `Default list item widget`.
 
-
 Search for all stations that contain `hit` in their name, and auto select the first result.
 
-```
+```java
 Radio_Station.sendCommand("hit")
 ```
 
 Search and auto select the station if you know the UUID from the website.
 
-```
+```java
 Radio_Station.sendCommand("b6a490e8-f498-4a7c-b024-607b3d997614")
 ```
 
 Clear any manual search results using the above two methods, and `REFRESH` back to using the normal filter channels.
 
-```
+```java
 Radio_Station.sendCommand(REFRESH)
 ```
index 5c6d5939659faf07773daf7d910a80473bc1cc46..8762f6cda75ec69e81dafdece39bf8ee839b2473 100644 (file)
@@ -158,7 +158,7 @@ Thing solarman:logger:local [hostname="x.x.x.x",inverterType="deye_sg04lp3",seri
 
 Items file example for a SUN-12K-SG04LP3-EU inverter
 
-```text
+```java
 Number:Temperature        AC_Temperature                  "AC Temperature [%.1f °C]"             (solarman)  {channel="solarman:logger:local:inverter-ac-temperature", unit="°C"}
 Number                    Alert                           "Alert [%s]"                           (solarman)  {channel="solarman:logger:local:alert-alert"}
 Number:ElectricPotential  Battery_Absorption_V            "Battery Absorption V [%.2f V]"        (solarman)  {channel="solarman:logger:local:battery-battery-absorption-v", unit="V"}
index 00b82b7cd120e2742c6111c9155a17095d3c4c63..fb0302b82767f3265c5ac31f61641e8c2720c9d0 100644 (file)
@@ -354,7 +354,7 @@ To receive a message and react on that:
 
 telegram.items
 
-```php
+```java
 String telegramMessage "Telegram Message" { channel = "telegram:telegramBot:2b155b22:lastMessageText" }
 ```
 
@@ -373,7 +373,7 @@ To send a question with two alternatives and have the bot handle the reply:
 
 telegram.items
 
-```php
+```java
 String telegramReplyId "Telegram Reply Id" { channel = "telegram:telegramBot:2b155b22:replyId" }
 ```
 
index 074d46f04700139b519498688f0be45c2d6d1eae..ed37d227073e805c6e2a324c18be4165b549687e 100644 (file)
@@ -439,21 +439,21 @@ For those who are interested in more detailed insight of the processing of this
 
 With Karaf you can use the following command sequence:
 
-```text
+```shell
 log:set TRACE org.openhab.binding.velux
 log:tail
 ```
 
 This, of course, is possible on command line with the commands:
 
-```text
+```shell
 % openhab-cli console log:set TRACE org.openhab.binding.velux
 % openhab-cli console log:tail org.openhab.binding.velux
 ```
 
 On the other hand, if you prefer a textual configuration, you can append the logging definition with:
 
-```text
+```xml
     <logger name="org.openhab.binding.velux" level="TRACE">
         <appender-ref ref="FILE" />
     </logger>
index dbc6337e2f5ebddc24a706ec8cbdbe5a51ac5ca4..7c3084516f2c718133ccba5c4201993a1e1752de 100644 (file)
@@ -234,7 +234,7 @@ Enabling detailed logging may help troubleshoot your configuration (or trace bug
 
 Add the following lines to the logger configuration file (`userdata\etc\org.ops4j.pax.logging.cfg`):
 
-```text
+```ini
 log4j2.logger.yamaha.name = org.openhab.binding.yamahareceiver
 log4j2.logger.yamaha.level = TRACE
 ```
index 8fb5d85025bcf7f09f664ab0ded53b931337dbae..a6b079127bb4b55dba65dc2cc321a3f32bd8ab2f 100644 (file)
@@ -4,7 +4,9 @@ Extracts values from a JSON string using a [JsonPath](https://github.com/jayway/
 
 Given the following JSON string:
 
-`[{ "device": { "location": "Outside", "status": { "temperature": 23.2 }}}]`
+```json
+[{ "device": { "location": "Outside", "status": { "temperature": 23.2 }}}]
+```
 
 The expression `$.device.location` extracts the string `Outside`.
 The JsonPath expression `$.device.status.temperature` extracts the string `23.2`.
@@ -13,29 +15,28 @@ The JsonPath expression `$.device.status.temperature` extracts the string `23.2`
 
 ### Items
 
-```
+```java
 String  Temperature_json "Temperature [JSONPATH($.device.status.temperature):%s °C]" {...}
 Number  Temperature "Temperature [%.1f °C]"
 ```
 
 ### Rules
 
-```php
+```java
 rule "Convert JSON to Item Type Number"
-  when
+when
     Item Temperature_json changed
- then
+then
     // use the transformation service to retrieve the value
     val newValue = transform("JSONPATH", "$.device.status.temperature", Temperature_json.state.toString)
 
     // post the new value to the Number Item
     Temperature.postUpdate( newValue )
- end
+end
 ```
 
 Now the resulting Number can also be used in the label to [change the color](https://docs.openhab.org/configuration/sitemaps.html#label-and-value-colors) or in a rule as a value to compare.
 
-
 ## Differences to standard JsonPath
 
 Compared to standard JsonPath, the transformation returns single values instead of arrays.
index 24e0c422a0396eb468679b0d8cb936616fa5b9cd..d423049478a65cd88e8d6b89f2425f787df5df26 100644 (file)
@@ -39,7 +39,7 @@ the regex transformation can be used to extract the value to display it on the l
 
 **.items**
 
-```csv
+```java
 String  Temperature_str "Temperature [REGEX(.*=(\\d*\\.\\d*).*):%s °C]" {...}
 Number  Temperature "Temperature [%.1f °C]"
 ```
@@ -62,17 +62,17 @@ Thus the value `44.0` would be saved as a number.
 
 **.rules**
 
-```php
+```java
 rule "Convert String to Item Number"
-  when
+when
     Item Temperature_str changed
- then
+then
     // use the transformation service to retrieve the value
     val newValue = transform("REGEX", ".*=(\\d*\\.\\d*).*", Temperature_str.state.toString)
 
     // post the new value to the Number Item
     Temperature.postUpdate( newValue )
- end
+end
 ```
 
 Now the resulting Number can also be used in the label to [change the color](https://docs.openhab.org/configuration/sitemaps.html#label-and-value-colors) or in a rule as value for comparison.
index 2ac87120645f501afdd9693344cfb28e49882e19..10dc1ba16b9e70f63813a7d44cea7c0988a85fee 100644 (file)
@@ -73,11 +73,11 @@ Number  Temperature "Temperature [%.1f °C]"
 
 ### .rules
 
-```php
+```java
 rule "Convert XML to Item Type Number"
-  when
+when
     Item Temperature_xml changed
-  then
+then
     // use the transformation service to retrieve the value
     // Simple
     val mytest = transform("XPATH", "/*[name()='PTZStatus']
index f2f3eaadf049f4fdd0b0bddce380b90073d49016..e51ddb5f6fec16e1cf73ffa932d4ed3ac37c9156 100644 (file)
@@ -45,7 +45,7 @@ In case you would like to setup the service via a text file, create a new file i
 
 Its contents should look similar to:
 
-```text
+```ini
 org.openhab.voice.pipertts:preloadModel=true
 ```
 
@@ -60,6 +60,6 @@ You can setup your preferred default Speech-to-Text in the UI:
 
 In case you would like to set up these settings via a text file, you can edit the file `runtime.cfg` in `$OPENHAB_ROOT/conf/services` and set the following entries:
 
-```text
+```ini
 org.openhab.voice:defaultTTS=pipertts
 ```
index 112b4e82ad0382e3c319bc138d6ac34c3dab3408..5dd71e089094d7247e9d23379badd49f7a83d3d6 100644 (file)
@@ -40,7 +40,7 @@ In case you would like to setup the service via a text file, create a new file i
 
 Its contents should look similar to:
 
-```
+```ini
 org.openhab.voice.rustpotterks:threshold=0.5
 org.openhab.voice.rustpotterks:averagedthreshold=0.2
 org.openhab.voice.rustpotterks:scoreMode=max
@@ -79,7 +79,7 @@ You can setup your preferred default keyword spotter and default magic word in t
 
 In case you would like to setup these settings via a text file, you can edit the file `runtime.cfg` in `$OPENHAB_ROOT/conf/services` and set the following entries:
 
-```
+```ini
 org.openhab.voice:defaultKS=rustpotterks
 org.openhab.voice:keyword=hey openhab
 org.openhab.voice:listeningItem=myItemForDialog
index 964c84afa6dcc9f37c6110bffea7d5db2a1cf5f7..f9b3837a4d96ef53696964bddfc96010091603d9 100644 (file)
@@ -49,7 +49,7 @@ In case you would like to setup the service via a text file, create a new file i
 
 Its contents should look similar to:
 
-```
+```ini
 org.openhab.voice.voskstt:preloadModel=false
 org.openhab.voice.voskstt:singleUtteranceMode=true
 org.openhab.voice.voskstt:maxTranscriptionSeconds=60