Skip to content

Commit

Permalink
FIX huepi.prototype.LightSetName
Browse files Browse the repository at this point in the history
FIX huepi.prototype.LightSetName
  • Loading branch information
ArndBrugman committed Oct 4, 2015
1 parent d7be733 commit e0551fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions huepi.js
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ huepi.prototype.LightSetName = function(LightNr, Name)
type: 'PUT',
dataType: 'json',
contentType: 'application/json',
url: 'http://' + this.BridgeIP + '/api/' + this.Username + '/light/' + this.LightGetId(LightNr),
url: 'http://' + this.BridgeIP + '/api/' + this.Username + '/lights/' + this.LightGetId(LightNr),
data: '{"name" : "' + Name + '"}'
});
};
Expand Down Expand Up @@ -1576,8 +1576,10 @@ huepi.prototype.RulesGetData = function()
// this way its transparent and works for both Ids & Indices
// reordered parameters to HelperXYtoRGBforModel = function(x, y, Brightness, Model)
//
//
// using updated Philips hue Wide RGB D65, http://www.developers.meethue.com/documentation/color-conversions-rgb-xy
//
//
// FIX huepi.prototype.LightSetName
//
//

0 comments on commit e0551fd

Please sign in to comment.