Re: Upload to meteotemplate
Posted: Sun Apr 07, 2019 1:20 pm
I think it is the harsh SSL encryption enforced by your sever, which results into may rounds of trying until an agreement has been reached.
Code: Select all
End time for database update based on timestamp of first cache data: 2019-04-19 17:10:47
Rounded end time for database update: 2019-04-19 17:15:00
Time to update the database, preparing query.
Timestamp first cached record: 2019-04-19 17:10:47
Timestamp last cached record: 2019-04-19 17:14:55
Timestamp last received record: 2019-04-19 17:15:56
Timestamp new database record: 2019-04-19 17:15:00
No new day, currentRain=0.00
The database is updated with the following query:
INSERT INTO alldata
(DateTime,T,Tmax,Tmin,H,P,W,G,B,R,RR,D,A)
values ('2019-04-19 17:15:00',62.1,62.2,61.9,78.0,29.89,6.0,14.1,314,0.00,0.00,55.1,60.3
)
Cache file deleted.
Saving first new data to cache/apiCache.txt, timestamp=2019-04-19 17:15:56
Generating log file cache/apiLog.txtCode: Select all
2019-04-19 17:16:10 Error: 2019-04-19 17:15:56 Read error (Operation timed out) in headers. (no more tries)Code: Select all
CREATE TABLE `$dbName`.`alldata` ( `DateTime` datetime NOT NULL ,
`T` decimal( 4, 1 ) DEFAULT NULL ,
`Tmax` decimal( 4, 1 ) DEFAULT NULL ,
`Tmin` decimal( 4, 1 ) DEFAULT NULL ,
`H` decimal( 4, 1 ) DEFAULT NULL ,
`D` decimal( 4, 1 ) DEFAULT NULL ,
`W` decimal( 4, 1 ) DEFAULT NULL ,
`G` decimal( 4, 1 ) DEFAULT NULL ,
`B` decimal( 4, 1 ) DEFAULT NULL ,
`RR` decimal( 7, 3 ) DEFAULT NULL ,
`R` decimal( 7, 3 ) DEFAULT NULL ,
`P` decimal( 7, 3 ) DEFAULT NULL ,
`S` decimal( 5, 1 ) DEFAULT NULL ,
`A` decimal( 4, 1 ) DEFAULT NULL ,
PRIMARY KEY ( `DateTime` ) ,
UNIQUE KEY `DateTime` ( `DateTime` )
) ENGINE = MyISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci;