Skip to content

Commit

Permalink
trim på ip-adress
Browse files Browse the repository at this point in the history
Github lägger in oönskade radbrytningar på slutet, vilket gör att data från konfigurationsfilerna behöver trimmas på slutet
  • Loading branch information
Harald-Rr authored Nov 20, 2019
1 parent 957034b commit 8999b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spela.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//if(!$port) $ip='192.168.1.223';
//$kamera_adr = "http://$ip:8088";

$RoboCam_adr = "http://".file_get_contents('status/robot_ip').":8088/";
$kamera_adr = "http://".file_get_contents('status/robot_ip').":8088/cam";
$RoboCam_adr = "http://".trim(file_get_contents('status/robot_ip')).":8088/";
$kamera_adr = "http://".trim(file_get_contents('status/robot_ip')).":8088/cam";

function webcamklient($typ) {
global $kamera_adr;
Expand Down

0 comments on commit 8999b49

Please sign in to comment.