Chart Color
This commit is contained in:
parent
b158f4a042
commit
3ff5e0d660
2
api.php
2
api.php
@ -161,7 +161,7 @@ if (!DeviceManager::approved($token)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Diagnostic Data Write to DB
|
// Diagnostic Data Write to DB
|
||||||
if (isset($settings)){
|
if ($settings != null || $settings != ""){
|
||||||
$data = ['mac' => $settings["network"]["mac"], 'ip_address' => $settings["network"]["ip"]];
|
$data = ['mac' => $settings["network"]["mac"], 'ip_address' => $settings["network"]["ip"]];
|
||||||
if (array_key_exists("firmware_hash", $settings)) {
|
if (array_key_exists("firmware_hash", $settings)) {
|
||||||
$data .= ['firmware_hash'=>$settings["firmware_hash"]];
|
$data .= ['firmware_hash'=>$settings["firmware_hash"]];
|
||||||
|
@ -56,7 +56,9 @@ class Utilities
|
|||||||
'data' => [
|
'data' => [
|
||||||
'datasets' => [
|
'datasets' => [
|
||||||
[
|
[
|
||||||
'data' => $data
|
'data' => $data,
|
||||||
|
'borderColor' => "#d4def7",
|
||||||
|
'backgroundColor' => "#d4def7"
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user