From the Terminal try clearing the quarantine bit from the extended file attributes:
Code: Select all
- Code:
sudo xattr -rd com.apple.quarantine /Library/Application\ Support/Perceptive\ Automation/Indigo\ 7.4/Plugins
You'll need to enter your macOS password for the command to complete.
sudo xattr -rd com.apple.quarantine /Library/Application\ Support/Perceptive\ Automation/Indigo\ 7.4/Plugins\ \(Disabled\)
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HPiLO.indigoPlugin/Contents/Server Plugin/hpilo.py", line 406, in _communicate
sock = self._get_socket()
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/HPiLO.indigoPlugin/Contents/Server Plugin/hpilo.py", line 403, in _get_socket
raise IloCommunicationError("Cannot establish ssl session with %s:%d: %s" % (self.hostname, self.port, str(exc)))
IloCommunicationError: Cannot establish ssl session with 192.168.1.199:443: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:727)
sudo diskutil resetUserPermissions / `id -u`
<?php
// Example php page to download image and then cycle through images
// at all times looking like a simple direct url image to requesting program
// compatible with indigoTouch
// GlennNZ
// 2018
// Can use session details below to save information between sessions
// Unfortunatly does not work with Indigo and within IndigoTouch so moved to
// saving locale file for persistent information
// session_start();
// if( empty($_SESSION['image']) ) {
// $_SESSION['image'] = 1;
// }
// Checks to see whether index file exists - if exists reads it for image number_format
if (file_exists('imageupto.txt') )
{
$imagenumber = file_get_contents('imageupto.txt');
} else {
$imagenumber = 1;
}
// send the request appearing like a Ipad - over coming the 403 errors for bom.gov.au website
$options = array(
'http'=>array(
'method'=>"GET",
'header'=>"Accept-language: en\r\n" .
"Cookie: foo=bar\r\n" . // check function.stream-context-create on php.net
"User-Agent: Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.102011-10-16 20:23:10\r\n" // i.e. An iPad
)
);
// if png files don't exist or age of files more than 1/2hr redownload....
if ( !file_exists('1.png') || (time()-filemtime('1.png') > 0.5 * 3600))
{
// create the background from the various transparent layers from bom.gov.au
$context = stream_context_create($options);
$backgroundurl = 'ftp://ftp.bom.gov.au/anon/gen/radar_transparencies/IDR714.background.png';
$topourl = 'ftp://ftp.bom.gov.au/anon/gen/radar_transparencies/IDR714.topography.png';
$locations = 'ftp://ftp.bom.gov.au/anon/gen/radar_transparencies/IDR714.locations.png';
$url = 'ftp://ftp.bom.gov.au/anon/gen/radar/IDR714.gif';
$ftpradar = 'ftp.bom.gov.au';
$img = 'radar714.gif';
file_put_contents($img, file_get_contents($url, false, $context));
$image_1 = imagecreatefrompng($backgroundurl);
$image_2 = imagecreatefrompng($topourl);
$image_3 = imagecreatefrompng($locations);
imagealphablending($image_1, true);
imagesavealpha($image_1, true);
imagecopy($image_1, $image_2, 0, 0, 0, 0, 512, 512);
imagecopy($image_1, $image_3, 0, 0, 0, 0, 512, 512);
imagepng($image_1, 'background.png');
// Above: Background image created.
// Below: Login to ftp server and download the directory
$conn_id = ftp_connect($ftpradar);
$login_result = ftp_login($conn_id, 'Anonymous', 'Anonymous');
ftp_pasv($conn_id,true);
$contents = ftp_nlist($conn_id, "/anon/gen/radar/");
$IDR714 = array();
$index = 0;
foreach ($contents as $subarray)
{
if (stristr( $subarray,'IDR714.T.') !== FALSE) { // Yoshi version
//create a new array with just Radar images for Radar IDR714
$index++;
array_push($IDR714,$subarray);
$image_4 = imagecreatefrompng('ftp://ftp.bom.gov.au/'.$subarray);
$background = imagecreatefrompng('background.png');
imagealphablending($background, true);
imagesavealpha($background, true);
imagecopy($background, $image_4, 0, 0, 0, 0, 512, 512);
// Create new png files of all the radar images renamed to 1-18.png
// So overwritten when updated.
imagepng($background, $index.'.png');
//imagepng($background, str_replace('/anon/gen/radar/','',$subarray));
}
}
}
// Abandoned Session usage as doesn't work with Indigo
//$imagetouse = $_SESSION['image'].'.png';
// $_SESSION['image'] = $_SESSION['image']+1;
// if ($_SESSION['image'] == 17){
// $_SESSION['image'] = 1;
// }
if ($imagenumber >=19){
$imagenumber = 1;
}
$file = $imagenumber.'.png';
$imagenumber++;
// Write new index number to file to use new image
file_put_contents("imageupto.txt",$imagenumber ) ;
$type = 'image/png';
header('Content-Type:'.$type);
readfile($file);
?>