version 2.x.x - Griffin Chapel ()
+ Added TIMEZONE as a new config setting. Please update your config.
See update.txt for more details.
+ + Snapshot json result from Google changed. Fixed.
+ Better logging
+ New home screen layout
if(DEBUG) {
Summoner::sysLog("[DEBUG] Call result data: ".Summoner::cleanForLog($jsonData));
}
- if(!empty($jsonData) && isset($jsonData['lighthouseResult']['audits']['full-page-screenshot']['details']['screenshot']['data'])) {
- $imageData = $jsonData['lighthouseResult']['audits']['full-page-screenshot']['details']['screenshot']['data'];
+ if(!empty($jsonData) && isset($jsonData['lighthouseResult']['fullPageScreenshot']['screenshot']['data'])) {
+ $imageData = $jsonData['lighthouseResult']['fullPageScreenshot']['screenshot']['data'];
$source = fopen($imageData, 'r');
$destination = fopen($filename, 'w');
fclose($source);
fclose($destination);
} elseif(DEBUG) {
- Summoner::sysLog("[DEBUG] invalid json data. Path ['lighthouseResult']['audits']['full-page-screenshot']['details']['screenshot']['data'] not found in : ".Summoner::cleanForLog($jsonData));
+ Summoner::sysLog("[DEBUG] invalid json data. Path ['lighthouseResult']['fullPageScreenshot']['screenshot']['data'] not found in : ".Summoner::cleanForLog($jsonData));
}
} elseif(DEBUG) {
Summoner::sysLog("[DEBUG] curl call failed ".Summoner::cleanForLog($theCall));