-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up of Features from S Rutter #6
Open
jonnywilliamson
wants to merge
36
commits into
master
Choose a base branch
from
develop
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5c22c57
Auto Discovery of TPLinkDevices on network
shanerutter 43a40be
Stopped stream_socket_client from giving off warning messages
shanerutter c2ea0ee
Faster querying of network devices by allowing config to support a ti…
shanerutter dab8bcb
Expose devices config via getConfig
shanerutter 9efbc7f
Checking auto discovery for empty responses and null json_decodes
shanerutter ac1c507
PSR-2 compliance changes
shanerutter 7a897f8
Exclude .idea dev folder
shanerutter b7d3d57
Updated readme.md
shanerutter 64b4fa2
Updated readme.md
shanerutter e3faa21
Merge branch 'feature/auto_discovery' of github.com:shanerutter/tplin…
shanerutter bfb0fe3
Laravel config updated with timeout setting
shanerutter a9c457c
Added missing bit from readme
shanerutter d7d3efe
Added missing bit from readme
shanerutter 81f6bb4
Merge branch 'feature/auto_discovery' of github.com:shanerutter/tplin…
shanerutter 6de9fb7
Merge branch 'feature/auto_discovery' of github.com:shanerutter/tplin…
shanerutter 94200f4
Merge branch 'feature/auto_discovery' of github.com:shanerutter/tplin…
shanerutter f0ed9de
Read me edit for deviceList
shanerutter 8b750c7
Added jonnywilliamson changes with some bug fixes
shanerutter 4f73c27
Merge branch 'feature/power_control_methods' into feature/auto_discovery
shanerutter 0030c64
Removed error supression
shanerutter 4f30033
Changed requirement for ip lib to use latest
shanerutter d3f2f2b
Made newDevice public to allow manually adding new items to existing …
shanerutter ca5a794
Ability to set TPLinkDevice encryption key on construct
shanerutter ba2f253
Fix for hs105
shanerutter 8485ca9
- Added stream timeout capabilities as some devices cause the stream …
shanerutter 63487bf
Updated readme
shanerutter 830c016
Auto discovery added callback function when a new device is discovered
shanerutter aa9f2cd
Added laravel 5.5 auto package discovery support
shanerutter 8bad2b3
Added alias to auto package discovery
shanerutter e20c416
Added support for a "deviceType" field against the device to allow di…
shanerutter fc2c5e6
Added max discover limit to the autoDiscoverTPLinkDevices function, t…
shanerutter e0c165e
Added ability to control smart light bulbs on / off with colour contr…
shanerutter b348685
First review fixes.
jonnywilliamson fb8252c
Code re-formatted and some extra info added to readme.
jonnywilliamson 0545c39
Fix center paragraph
jonnywilliamson be391a8
Use original laravel collections package
jonnywilliamson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
composer.phar | ||
composer.lock | ||
vendor/ | ||
build/ | ||
build/ | ||
.idea/ |
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 @@ | ||
language: php | ||
|
||
php: | ||
- 7.2 | ||
- 7.1 | ||
- 7.0 | ||
- 5.6 | ||
|
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 |
---|---|---|
|
@@ -2,15 +2,16 @@ | |
"name": "williamson/tplinksmartplug", | ||
"description": "A PHP library to control and receive information from a TP-Link smartplug.", | ||
"license": "MIT", | ||
"keywords": ["TPLink", "PHP", "HS110", "HS100", "Timer", "SmartPlug", "Laravel"], | ||
"keywords": ["TPLink", "PHP", "HS110", "HS100", "Timer", "SmartPlug", "Laravel", "SmartBulbs", "Bulbs"], | ||
"authors": [ | ||
{ | ||
"name": "Jonathan Williamson", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"tightenco/collect": "^5.3" | ||
"illuminate/collections": ">5.0", | ||
"s1lentium/iptools": "^1.1" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^5.7" | ||
|
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,18 +1,27 @@ | ||
<?php | ||
return [ | ||
'heater' => [ | ||
'ip' => '192.168.1.100', //Or hostname eg: home.example.com | ||
'port' => '9999', | ||
'ip' => '192.168.1.100', //Or hostname eg: home.example.com | ||
'port' => '9999', | ||
'timeout' => 5, // Optional, timeout setting (how long we will try communicate with device before giving up) | ||
'timeout_stream' => 3, // Optional, timeout setting for stream (how long to wait for the response from the device) | ||
'deviceType' => 'IOT.SMARTPLUGSWITCH', // Smart Bulbs are also supported: 'IOT.SMARTBULB' | ||
], | ||
|
||
// 'bedroom' => [ | ||
// 'ip' => '192.168.1.100', //Or hostname | ||
// 'port' => '9999', | ||
// 'ip' => '192.168.1.101', | ||
// 'port' => '9999', | ||
// 'timeout' => 5, | ||
// 'timeout_stream' => 3, | ||
// 'deviceType' => 'IOT.SMARTPLUGSWITCH', | ||
// ], | ||
|
||
// 'livingroom' => [ | ||
// 'ip' => '192.168.1.101', //Or hostname | ||
// 'port' => '9999', | ||
// 'ip' => '192.168.1.102', | ||
// 'port' => '9999', | ||
// 'timeout' => 10, | ||
// 'timeout_stream' => 3, | ||
// 'deviceType' => 'IOT.SMARTBULB', | ||
// ], | ||
|
||
]; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest commit in this library has been tagged at 1.1.1 so using * previously here isn't necessary/a great practice