feat(forecast): integrate full forecast charts and complete SDL visualization
Tests / test (push) Failing after 52s
Tests / test (push) Failing after 52s
This commit is contained in:
@@ -11,6 +11,7 @@ final class ManagerSDLRuntime
|
||||
public static array $media = [];
|
||||
public static array $writes = [];
|
||||
public static array $hidden = [];
|
||||
public static array $logs = [];
|
||||
private static int $nextID = 10000;
|
||||
|
||||
public static function reset(): void
|
||||
@@ -21,6 +22,7 @@ final class ManagerSDLRuntime
|
||||
self::$media = [];
|
||||
self::$writes = [];
|
||||
self::$hidden = [];
|
||||
self::$logs = [];
|
||||
self::$nextID = 10000;
|
||||
}
|
||||
|
||||
@@ -145,6 +147,16 @@ function IPS_GetProperty(int $instanceID, string $property)
|
||||
return ManagerSDLRuntime::$properties[$instanceID][$property];
|
||||
}
|
||||
|
||||
function IPS_GetConfiguration(int $instanceID): string
|
||||
{
|
||||
return json_encode(ManagerSDLRuntime::$properties[$instanceID] ?? [], JSON_THROW_ON_ERROR);
|
||||
}
|
||||
|
||||
function IPS_LogMessage(string $sender, string $message): void
|
||||
{
|
||||
ManagerSDLRuntime::$logs[] = [$sender, $message];
|
||||
}
|
||||
|
||||
function IPS_SetProperty(int $instanceID, string $property, $value): void
|
||||
{
|
||||
ManagerSDLRuntime::$properties[$instanceID][$property] = $value;
|
||||
|
||||
Reference in New Issue
Block a user