From 98c603494d2818ab076235583d10da95a097f294 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Tue, 28 Jul 2020 11:33:32 +0200 Subject: [PATCH] Update of Config --- config/config_sample.php | 90 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 83 insertions(+), 7 deletions(-) diff --git a/config/config_sample.php b/config/config_sample.php index a142791..7398d64 100644 --- a/config/config_sample.php +++ b/config/config_sample.php @@ -1,31 +1,73 @@ '', 'temp' => "°C", + 'temp_cont' => "°C", 'humi' => "%", 'light' => "", - 'on/off' => "" + 'on/off' => "", + 'doot' => "", + 'battery' => "V", + 'water' => "", + 'wifi' => "Bpm", + 'media_state' => "", + 'media_cont' => "", + 'vol_cont' => "", + 'media_apps' => "", + 'media_input' => "", + +]; + +//Notifications +define('SERVERKEY',''); +define('SERVERVAIPKEY',''); + +//TODO: Po registraci vzít výchozí hodnoty +//Default network Setting +const NETWORK = [ + 'subnet' => '', + 'gateway' => '', + 'dns' => '', ]; //Graph Setting @@ -33,27 +75,61 @@ const RANGES = [ '' => [ 'min' => 0, 'max' => 100, - 'scale' =>20, + 'scale' => 20, + 'graph' => 'line', ], 'temp' => [ 'min' => 10, 'max' => 45, 'scale' =>20, + 'graph' => 'line', ], 'humi' => [ 'min' => 0, 'max' => 100, 'scale' =>20, + 'graph' => 'line', ], 'light' => [ 'min' => 0, 'max' => 1, 'scale' =>1, + 'graph' => 'bar', ], 'on/off' => [ 'min' => 0, 'max' => 1, 'scale' =>1, + 'graph' => 'bar', + ], + 'door' => [ + 'min' => 0, + 'max' => 1, + 'scale' =>1, + 'graph' => 'bar', + 'fallBack' => 1, + 'fallBackTime' => 2, //in Minutes + ], + 'battery' => [ + 'min' => 0, + 'max' => 4.7, + 'scale' =>0, + 'graph' => 'line', + ], + 'temp_cont' => [ + 'min' => 0, + 'max' => 30, + 'scale' => 0,5, + 'graph' => 'line', + ], + 'wifi' => [ + 'min' => 0, + 'max' => 30, + 'scale' => 0,5, + 'graph' => 'line', ], ]; + + + ?>