forked from MiniMeOSc/phpTradfri
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from strfl89/testing
Update to Version 2.1
- Loading branch information
Showing
6 changed files
with
75 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# phpTradfri - Version History | ||
## Version 2.1 | ||
* Add Subclass for Trådfri Gateway | ||
* defines.php | ||
+ defines for gateway | ||
* general.php | ||
* extend function action() for Gateway Class (reboot command has no payload to transmit) | ||
* include.php | ||
+ add gateway.php for including gateway Sublcass | ||
* ReadMe | ||
+ Gateway functions | ||
* Release Notes | ||
* create Release Notes | ||
## Version 2.0 - 11th Sep 2019 | ||
* general.php | ||
* Move from Constants to Parameters for Gateway Config | ||
* to initialize new object parameters User, Secret and Gateway IP must enterd. Example: | ||
``` | ||
$groups = new tradfrigroups("<user>", "<secret>", "<ip>"); | ||
``` | ||
* cleaning up file | ||
* Update ReadMe File | ||
## Version 1.1 - 09th Sep 2019 | ||
* devices | ||
+ Output of Firmware Version at statusremotecontrol() | ||
+ Add Motion Sensor to statusremotecontrol() | ||
## Version 1.0 - 30th Aug 2019 | ||
* Initial Commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
require_once('general.php'); | ||
|
||
class tradfrigateway extends tradfri | ||
{ | ||
|
||
function reboot(){ | ||
|
||
$this->action("post", "", "15011/9030"); | ||
|
||
// Response | ||
// v:1 t:CON c:POST i:3bb9 {} [ ] | ||
// decrypt_verify(): found 24 bytes cleartext | ||
// decrypt_verify(): found 4 bytes cleartext | ||
|
||
} | ||
|
||
function statusgateway(){ | ||
|
||
$details = $this->getDetails(GATEWAY."/15012"); | ||
|
||
$output = array('setup' => $details[GATEWAY_SETUP_TIME], 'ntp' => $details['GATEWAY_NTP'], 'time' => $details[GATEWAY_TIME_UNIX], 'firmware' => $details[GATEWAY_FIRMWARE], 'alexa' => $details[GATEWAY_ALEXA_STATUS], 'google' => $details[GATEWAY_GOOGLE_STATUS]); | ||
} | ||
|
||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
<?php | ||
|
||
require_once('devices.php'); | ||
require_once('gateway.php'); | ||
require_once('groups.php'); | ||
|
||
?> |