From aad09b7527489fe940837f1d7734ed136f41c47a Mon Sep 17 00:00:00 2001 From: Admin Date: Wed, 11 Nov 2015 11:28:41 -0600 Subject: [PATCH] More updates to readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fc6eb89..81c0036 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ httpVerb | string | This is used for "custom" calls that the user would like to contentType | string | This is an http type string such as "application/text" or "application/xml" or "application/json". | Optional contentBody | string | This is the content body that you would like to send when executing an "on" request. | Optional contentBodyOff | string | This is the content body that you would like to send when executing an "off" request. | Optional -#### Basic Example +#### Basic example ``` { "name" : "bedroom light", @@ -69,7 +69,7 @@ contentBodyOff | string | This is the content body that you would like to send w "offUrl" : "http://192.168.1.201:3480/data_request?id=action&output_format=json&serviceId=urn:upnp-org:serviceId:SwitchPower1&action=SetTarget&newTargetValue=0&DeviceNum=41" } ``` -#### Dimming and value passing control Example +#### Dimming and value passing control example Dimming is also supported by using the expressions ${intensity.percent} for 0-100 or ${intensity.byte} for 0-255 or custom values using ${intensity.math()} i.e. "${intensity.math(X/4)}". e.g. ``` @@ -82,7 +82,8 @@ e.g. ``` See the echo's documentation for the dimming phrase. -#### POST/PUT support Example +#### POST/PUT support example +``` This will allow control of any other application that may need more then GET. You can also use the dimming and value control commands within the URLs as well. e.g: {