Zeitdarstellung

Dir fehlt das Komma nach der ID.

Da fehlt ein Komma.

Unabhängig davon, das du die Reihenfolge komplett durcheinander geworfen hat.

  1. Wert laden.
  2. Wert bearbeiten.
  3. Wert scheiben.

Bei Dir ist es:

  1. Wert laden.
  2. Wert scheiben ($Timestamp ist noch gar nicht vorhanden!).
  3. Wert bearbeiten.

Michael

PS: Bitte Code in PHP-Tags posten (oben rechts, das Blatt mit ‚php‘)

Hallo , auch dir ein frohes neues jahr ,
danke mit dem komma . geht aber trotzdem nicht
Skriptausgabe :
Array
(
[0] => 20180101002147
)

Notice: Undefined variable: Timestamp in C:\IP-Symcon\scripts\10587.ips.php on line 4

Notice: Undefined variable: Time in C:\IP-Symcon\scripts\10587.ips.php on line 10

Notice: Undefined variable: Time in C:\IP-Symcon\scripts\10587.ips.php on line 11

Notice: Undefined variable: Time in C:\IP-Symcon\scripts\10587.ips.php on line 12

Notice: Undefined variable: Time in C:\IP-Symcon\scripts\10587.ips.php on line 13

Notice: Undefined variable: Time in C:\IP-Symcon\scripts\10587.ips.php on line 14

Notice: Undefined variable: Time in C:\IP-Symcon\scripts\10587.ips.php on line 15

$array = file("http://192.168.1.20/meteograph.cgi?text=year1_th0_tempmax_time");         

SetValueInteger(57498, Timestamp);
print_r($array); 




$array = "";
$Jahr = (int)substr($Time,0,4);
$Monat = (int)substr($Time,4,2);
$Tag = (int)substr($Time,6,2);
$Stunde = (int)substr($Time,8,2);
$Minute = (int)substr($Time,10,2);
$Sekunde = (int)substr($Time,12,2); 





$Timestamp = mktime ($Stunde, $Minute, $Sekunde, $Monat, $Tag, $Jahr);
 

Notice: Use of undefined constant Timestamp - assumed ‚Timestamp‘ in C:\IP-Symcon\scripts\10587.ips.php on line 4

Warning: Cannot auto-convert value for parameter VariableValue in C:\IP-Symcon\scripts\10587.ips.php on line 4
Array
(
[0] => 20180101002147
)

Notice: Undefined variable: Time in C:\IP-Symcon\scripts\10587.ips.php on line 11

Notice: Undefined variable: Time in C:\IP-Symcon\scripts\10587.ips.php on line 12

Notice: Undefined variable: Time in C:\IP-Symcon\scripts\10587.ips.php on line 13

Notice: Undefined variable: Time in C:\IP-Symcon\scripts\10587.ips.php on line 14

Notice: Undefined variable: Time in C:\IP-Symcon\scripts\10587.ips.php on line 15

Notice: Undefined variable: Time in C:\IP-Symcon\scripts\10587.ips.php on line 16

Man, man, man, stehts du aber auf deinem eigenen Schlauch.
Das Thema war mit Post 2 + 5 von Nall-Chan mehr als bestens erklärt, aber du musst das auch nachvollziehen, was da steht:

<?
$array = file("http://192.168.1.20/meteograph.cgi?text=year1_th0_tempmax_time");

$Time = $array[0];
$Jahr = (int)substr($Time,0,4);
$Monat = (int)substr($Time,4,2);
$Tag = (int)substr($Time,6,2);
$Stunde = (int)substr($Time,8,2);
$Minute = (int)substr($Time,10,2);
$Sekunde = (int)substr($Time,12,2);

$Timestamp = mktime ($Stunde, $Minute, $Sekunde, $Monat, $Tag, $Jahr);

SetValueInteger(52454, $Timestamp);  // Variablenprofil ~UnixTimestamp
?>
$array = file("http://192.168.1.20/meteograph.cgi?text=year1_th0_tempmax_time"); 
//print_r($array); 
$Time = $array[0];
$Jahr = (int)substr($Time,0,4);
$Monat = (int)substr($Time,4,2);
$Tag = (int)substr($Time,6,2);
$Stunde = (int)substr($Time,8,2);
$Minute = (int)substr($Time,10,2);
$Sekunde = (int)substr($Time,12,2); 
$Timestamp = mktime ($Stunde, $Minute, $Sekunde, $Monat, $Tag, $Jahr);
SetValueInteger(36855 $Timestamp);

Michael

Edit: Ups… ein paar Sekunden zu langsam :smiley:

Hallo alle, danke geht :mad::banghead: