Skip to content

Commit

Permalink
Merge pull request #1 from neoteknic/patch-2
Browse files Browse the repository at this point in the history
Fix notice if no mac address
  • Loading branch information
neoteknic authored Jan 11, 2018
2 parents e668f9b + 4584292 commit c7ffcdf
Show file tree
Hide file tree
Showing 68 changed files with 500 additions and 139 deletions.
4 changes: 1 addition & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- hhvm

before_install:
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Software License Agreement (The BSD 3-Clause License)

Copyright (c) 2012, Michael K. Squires
Copyright (c) 2017, Michael K. Squires
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ Interested in API docs? You can check out the [Philips API documentation](http:/

## Requirements

* PHP 5.3+
* PHP 5.6+
* cURL extension (optional)

For PHP 5.3 support, please use Phue v1.6.x.

## Installation

The Phue library is available in Packagist. You'll want to include ```sqmk/phue``` as a dependency in your project using composer. If you are not familiar with composer, check it out here: [Composer](http://getcomposer.org)
Expand Down
3 changes: 2 additions & 1 deletion bin/phue-bridge-finder
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ foreach ($bridges as $key => $bridge) {
echo "\tBridge #", ++$key, "\n";
echo "\t\tID: ", $bridge->id, "\n";
echo "\t\tInternal IP Address: ", $bridge->internalipaddress, "\n";
echo "\t\tMAC Address: ", $bridge->macaddress, "\n";
if(isset($bridge->macaddress))
echo "\t\tMAC Address: ", $bridge->macaddress, "\n";
echo "\n";
}
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
}
],
"require": {
"php": ">=5.3.0"
"php": ">=5.6.0"
},
"require-dev": {
"mockery/mockery": "0.8.0",
"phpunit/PHPUnit": "3.7.25",
"squizlabs/php_codesniffer": "1.4.6"
"mockery/mockery": "1.0.0",
"phpunit/PHPUnit": "5.7.25",
"squizlabs/php_codesniffer": "3.1.1"
},
"suggest": {
"ext-curl": "Allows usage of cURL transport adapter"
Expand Down
2 changes: 1 addition & 1 deletion library/Phue/LightModel/Lct001Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ class Lct001Model extends AbstractLightModel
/**
* Model name
*/
const MODEL_NAME = 'Hue bulb A19';
const MODEL_NAME = 'Hue bulb A19 (gamut B)';
}
2 changes: 1 addition & 1 deletion library/Phue/LightModel/Lct007Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ class Lct007Model extends AbstractLightModel
/**
* Model name
*/
const MODEL_NAME = 'Hue Bulb V2';
const MODEL_NAME = 'Hue bulb A19 (gamut B)';
}
26 changes: 26 additions & 0 deletions library/Phue/LightModel/Lct010Model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Phue: Philips Hue PHP Client
*
* @author Michael Squires <[email protected]>
* @copyright Copyright (c) 2012 Michael K. Squires
* @license http://github.com/sqmk/Phue/wiki/License
*/
namespace Phue\LightModel;

/**
* Hue Bulb V3
*/
class Lct010Model extends AbstractLightModel
{

/**
* Model id
*/
const MODEL_ID = 'LCT010';

/**
* Model name
*/
const MODEL_NAME = 'Hue bulb A19 (gamut C)';
}
26 changes: 26 additions & 0 deletions library/Phue/LightModel/Lct011Model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Phue: Philips Hue PHP Client
*
* @author Michael Squires <[email protected]>
* @copyright Copyright (c) 2012 Michael K. Squires
* @license http://github.com/sqmk/Phue/wiki/License
*/
namespace Phue\LightModel;

/**
* Hue BR30
*/
class Lct011Model extends AbstractLightModel
{

/**
* Model id
*/
const MODEL_ID = 'LCT011';

/**
* Model name
*/
const MODEL_NAME = 'Hue BR30';
}
26 changes: 26 additions & 0 deletions library/Phue/LightModel/Lct014Model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Phue: Philips Hue PHP Client
*
* @author Michael Squires <[email protected]>
* @copyright Copyright (c) 2012 Michael K. Squires
* @license http://github.com/sqmk/Phue/wiki/License
*/
namespace Phue\LightModel;

/**
* Hue Bulb V3
*/
class Lct014Model extends AbstractLightModel
{

/**
* Model id
*/
const MODEL_ID = 'LCT014';

/**
* Model name
*/
const MODEL_NAME = 'Hue bulb A19 (gamut C)';
}
26 changes: 26 additions & 0 deletions library/Phue/LightModel/Llm010Model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Phue: Philips Hue PHP Client
*
* @author Michael Squires <[email protected]>
* @copyright Copyright (c) 2012 Michael K. Squires
* @license http://github.com/sqmk/Phue/wiki/License
*/
namespace Phue\LightModel;

/**
* Color Light Module
*/
class Llm010Model extends AbstractLightModel
{

/**
* Model id
*/
const MODEL_ID = 'LLM010';

/**
* Model name
*/
const MODEL_NAME = 'Color Temperature Module';
}
26 changes: 26 additions & 0 deletions library/Phue/LightModel/Llm011Model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Phue: Philips Hue PHP Client
*
* @author Michael Squires <[email protected]>
* @copyright Copyright (c) 2012 Michael K. Squires
* @license http://github.com/sqmk/Phue/wiki/License
*/
namespace Phue\LightModel;

/**
* Color Light Module
*/
class Llm011Model extends AbstractLightModel
{

/**
* Model id
*/
const MODEL_ID = 'LLM011';

/**
* Model name
*/
const MODEL_NAME = 'Color Temperature Module';
}
26 changes: 26 additions & 0 deletions library/Phue/LightModel/Llm012Model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Phue: Philips Hue PHP Client
*
* @author Michael Squires <[email protected]>
* @copyright Copyright (c) 2012 Michael K. Squires
* @license http://github.com/sqmk/Phue/wiki/License
*/
namespace Phue\LightModel;

/**
* Color Light Module
*/
class Llm012Model extends AbstractLightModel
{

/**
* Model id
*/
const MODEL_ID = 'LLM012';

/**
* Model name
*/
const MODEL_NAME = 'Color Temperature Module';
}
31 changes: 31 additions & 0 deletions library/Phue/LightModel/Lst002Model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php
/**
* Phue: Philips Hue PHP Client
*
* @author Michael Squires <[email protected]>
* @copyright Copyright (c) 2012 Michael K. Squires
* @license http://github.com/sqmk/Phue/wiki/License
*/
namespace Phue\LightModel;

/**
* Hue LightStrips
*/
class Lst002Model extends AbstractLightModel
{

/**
* Model id
*/
const MODEL_ID = 'LST002';

/**
* Model name
*/
const MODEL_NAME = 'Hue LightStrips Plus';

/**
* Can retain state
*/
const CAN_RETAIN_STATE = true;
}
26 changes: 26 additions & 0 deletions library/Phue/LightModel/Ltw001Model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Phue: Philips Hue PHP Client
*
* @author Michael Squires <[email protected]>
* @copyright Copyright (c) 2012 Michael K. Squires
* @license http://github.com/sqmk/Phue/wiki/License
*/
namespace Phue\LightModel;

/**
* Hue A19 White Ambiance
*/
class Ltw001Model extends AbstractLightModel
{

/**
* Model id
*/
const MODEL_ID = 'LTW001';

/**
* Model name
*/
const MODEL_NAME = 'Hue A19 White Ambiance';
}
26 changes: 26 additions & 0 deletions library/Phue/LightModel/Ltw004Model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Phue: Philips Hue PHP Client
*
* @author Michael Squires <[email protected]>
* @copyright Copyright (c) 2012 Michael K. Squires
* @license http://github.com/sqmk/Phue/wiki/License
*/
namespace Phue\LightModel;

/**
* Hue A19 White Ambiance
*/
class Ltw004Model extends AbstractLightModel
{

/**
* Model id
*/
const MODEL_ID = 'LTW004';

/**
* Model name
*/
const MODEL_NAME = 'Hue A19 White Ambiance';
}
26 changes: 26 additions & 0 deletions library/Phue/LightModel/Ltw013Model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Phue: Philips Hue PHP Client
*
* @author Michael Squires <[email protected]>
* @copyright Copyright (c) 2012 Michael K. Squires
* @license http://github.com/sqmk/Phue/wiki/License
*/
namespace Phue\LightModel;

/**
* Hue GU-10 White Ambiance
*/
class Ltw013Model extends AbstractLightModel
{

/**
* Model id
*/
const MODEL_ID = 'LTW013';

/**
* Model name
*/
const MODEL_NAME = 'Hue GU-10 White Ambiance';
}
26 changes: 26 additions & 0 deletions library/Phue/LightModel/Ltw014Model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php
/**
* Phue: Philips Hue PHP Client
*
* @author Michael Squires <[email protected]>
* @copyright Copyright (c) 2012 Michael K. Squires
* @license http://github.com/sqmk/Phue/wiki/License
*/
namespace Phue\LightModel;

/**
* Hue GU-10 White Ambiance
*/
class Ltw014Model extends AbstractLightModel
{

/**
* Model id
*/
const MODEL_ID = 'LTW014';

/**
* Model name
*/
const MODEL_NAME = 'Hue GU-10 White Ambiance';
}
Loading

0 comments on commit c7ffcdf

Please sign in to comment.