Skip to content

Commit 79d4103

Browse files
committed
Updated README
1 parent 8046b32 commit 79d4103

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
#domoticz-php
2-
Library for connecting to Domoticz
1+
DomoticzPHP
2+
===========
3+
PHP Library for connecting to Domoticz
34

45
With this library you can control lights, switches, thermostats and other home automation devices with PHP by connecting to [Domoticz](http://domoticz.com), the open-source Home Automation System.
56

@@ -13,7 +14,7 @@ With this library you can control lights, switches, thermostats and other home a
1314
// If you didn't set login credentials, you can leave the username and password
1415
// attributes empty.
1516

16-
$client = new \rutgerkirkels\DomoticzPHP\Client('http://192.168.20.204:8080');
17+
$client = new \rutgerkirkels\DomoticzPHP\Client('http://YOUR_DOMOTICZ_MACHINE:PORT', <USERNAME>, <PASSWORD>);
1718

1819
// Get all lights and switches
1920
$lightsAndSwitches = $client->getDevices('light');
@@ -33,5 +34,4 @@ $dimmerController->turnOn();
3334

3435
// and off again...
3536
$dimmerController->turnOff();
36-
```
37-
Domoticz-php also offers the ability to pre-define home automation appliances through a YAML-config file, so that you can use appliances that consist of multiple sensors and switches, like a Nest Thermostat.
37+
```

0 commit comments

Comments
 (0)