Skip to content
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

Fix color higher than 255 #1

Closed
wants to merge 16 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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';
}
26 changes: 26 additions & 0 deletions library/Phue/LightModel/Lwb007Model.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 Lux
*/
class Lwb007Model extends AbstractLightModel
{

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

/**
* Model name
*/
const MODEL_NAME = 'Hue A19 Lux';
}
Loading