Skip to content

Commit

Permalink
fix get info
Browse files Browse the repository at this point in the history
  • Loading branch information
Исупов Андрей Николаевич committed Jun 30, 2020
1 parent f27cdbf commit 5122a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/devices/SWLED_getInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

//get information
$url = 'http://'. $this->getProperty("ip")."/json";
$content = file_get_contents($url);
$content = getUrl($url);
$json = json_decode($content, true);
$this->setProperty("effects", json_encode($json["effects"]));
$this->setProperty("palettes", json_encode($json["palettes"]));
Expand Down

0 comments on commit 5122a32

Please sign in to comment.