Commit 79546772 authored by Florence Guitton's avatar Florence Guitton

add Meteospace IHM

parent ad1035b2
<?php
function getState () {
system('df -h', $test);
$keywords = preg_split("/[\s,]+/", $test);
return $test;
}
?>
CCD61.png

926 KB

CCD71.png

770 KB

CCD81.png

492 KB

<?php
///////////////////////////////////////////////////////////
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ERROR | E_WARNING | E_PARSE);
// Reporte toutes les erreurs PHP (Voir l'historique des modifications)
error_reporting(E_ALL);
///////////////////////////////////////////////////////////
//Afficher l'entête de la page
$entete = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'.
'<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >'.
'<head>'.
'<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />'.
//chargement du css du calendrier
'<link rel="stylesheet" media="screen" type="text/css" title="Design" href="calendrier.css" />'.
//chargement des ressources JS du calendrier
'<script type="text/javascript" src="cal.js"></script>'.
'</head>'.
'<body>' ;
echo ($entete);
///////////////////////////////////////////////////////////
// formulaire calendrier
echo "<center>CATS (Calern Atmospheric Turbulence Station) <br>Affichage archives GDIMM par JOUR<br><br><br>";
//date_default_timezone_set("Europe/Paris"); fait dans php.ini
$dd=date("d/m/Y",time()-3600*24);
$formulaire = '<form method="post" action="procv2.php">'.
'<input type="text" name="date" value='.$dd.' id="date" class="calendrier" size="10" />'.
'<input type="submit" value="AFFICHER" />'.
'</form>';
echo ($formulaire);
echo "</center>";
$footer = '</body>'.
'<html>';
echo ($footer);
?>
allsky.jpg

49.8 KB

<?php include "graph_data.php"; ?>
<p><?php echo $graph ?> </p>
<head>
<meta charset="UTF-8" />
<!-- Des choses -->
<meta name="viewport" content="width=device-width"/>
<link rel="stylesheet" type="text/css" href="cats.css">
<link rel="stylesheet" type="text/css" href="cats_gdimm.css">
<link rel="stylesheet" type="text/css" href="cats_allsky.css">
</head>
<body>
<center>
<table>
<td><br>
<center>Meteo Data
<div id=<?php $graph ?> style="width: 340px; height: 210px"></div>
<?php
echo 'data: '.$_GET['data'] ;
echo $graphLast;
if ($_GET['data']=="temp"){
?>
<div id="graph_temp" style="width: 350px; height: 210px"></div>
<?php }
elseif ($_GET['data']=="humidity"){
?>
<div id="graph_humidity" style="width: 350px; height: 210px"></div>
<?php }
elseif ($_GET['data']=="wind"){
?>
<div id="graph_windspeed" style="width: 350px; height: 210px"></div>
<?php } ?>
</center>
</td>
</table>
</body>
<?php include "graph_data.php"; ?>
<p><?php echo $graph ?> </p>
<head>
<meta charset="UTF-8" />
<!-- Des choses -->
<meta name="viewport" content="width=device-width"/>
<link rel="stylesheet" type="text/css" href="cats.css">
<link rel="stylesheet" type="text/css" href="cats_gdimm.css">
<link rel="stylesheet" type="text/css" href="cats_allsky.css">
</head>
<body>
<center>
<table>
<td><br>
<center>Meteo Data
<div id=<?php $graph ?> style="width: 340px; height: 210px"></div>
<?php
echo 'data: '.$_GET['data'] ;
echo $graphLast;
if ($_GET['data']=="temp"){
?>
<div id="graph_temp" style="width: 350px; height: 210px"></div>
<?php }
elseif ($_GET['data']=="humidity"){
?>
<div id="graph_humidity" style="width: 350px; height: 210px"></div>
<?php }
elseif ($_GET['data']=="wind"){
?>
<div id="graph_windspeed" style="width: 350px; height: 210px"></div>
<?php } ?>
</center>
</td>
</table>
</body>
This diff is collapsed.
.calendar
{
background-color:#f7f6f3;
position:absolute;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
border:1px solid #0099cc;
-moz-opacity:0;
filter:alpha(opacity=0);
}
.calendar a
{
text-decoration:none;
color:#ffffff;
font-weight:bold;
}
.ListeDate
{
background-color:#FFFFFF;
}
#Contenant_Calendar
{
float:left;
width:100%;
overflow:hidden;
position:relative;
}
#Contenant_Calendar span
{
float:left;
display:block;
width:30px;
height:30px;
line-height:30px;
text-align:center;
}
.DayDate:hover
{
background-color:#8CD1EC;
cursor:pointer;
}
.DayDatemissing
{
cursor:pointer;
color: grey;
font-weight:lighter;
}
.DayDateBold
{
font-weight:bolder;
cursor:pointer;
color: blue;
# background-color:#DCDCDC;
}
#curentDateString
{
width:100%;
text-align:center;
}
.titleMonth
{
width:100%;
background-color:#08a1d4;
color:#FFFFFF;
text-align:center;
border-bottom:1px solid #666;
margin:0px;
padding:0px;
padding-bottom:2px;
margin-top:0px;
margin-bottom:0px;
font-weight:bold;
}
.separator
{
float:left;
display:block;
width:25px;
}
.currentDay
{
font-weight:bold;
background-color:#FFB0B0;
}
body{
background-color: lightblue;
}
gdimm1
{
margin-left: 170px;
border: 1px solid blue;
}
\ No newline at end of file
#entete {
background-color:#FF9900;
text-align:center;
max-with:250px;
margin:auto;
/*
exemples
margin-left:245px;
margin:auto;
position:relative;
position:absolute;
*/
}
#cont_link{
background-color:#FF9900;
text-align:center;
max-with:350px;
width: 350px;
}
#gdimm_status{
text-align:center;
max-with:350px;
width: 350px;
}
#cont_graph_r0L {
width: 350px;
max-with:350px;
height: 210px
}
#cont_graph_r0T{
width: 350px;
max-with:350px;
height: 210px
}
\ No newline at end of file
<?php
include "config.php";
$vide=empty($_POST);
if ( ! $vide) {
$wm=$_POST['wind_max'];
$cm=$_POST['cloudy_max'];
$rm=$_POST['rainrate_max'];
$hm=$_POST['humidity_max'];
$dm=$_POST['dewpoint_max'];
$db =mysqli_connect($host,$login, $pass,'cats');
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query ($db, "select * from cats_weather_pref where 1 ");
while ($row = mysqli_fetch_assoc($result)) {
$rm2=$row['rainrate_max'];
$wm2=$row['wind_max'];
$hm2=$row['humidity_max'];
$cm2=$row['cloudy_max'];
$dm2=$row['dewpoint_max'];
}
////////////////////////////////
if (($wm == $wm2 ) && ($cm == $cm2 ) && ($rm == $rm2 ) && ($hm == $hm2 ) && ($dm == $dm2 )){
$vide='true';
mysqli_close($db);
//echo '<br>pas de changement demande<br>';
}
if( ! $vide) {
// Le formulaire a ete envoye, on va tester les valeurs
$maj='oui';
if ($wm < 0) {
echo "wind max =".$wm." ".$wm2."<br>";
echo "wind max doit etre > 0 , pas de changement!</br>";
$maj='non';
}
if ($cm < 0) {
echo "cloudy max =".$cm." ".$cm2."<br>";
echo "wind max doit etre > 0 , pas de changement!</br>";
$maj='non';
}
if ($hm < 0) {
echo "humidity max =".$hm." ".$hm2."<br>";
echo "humidity max doit etre > 0 , pas de changement!</br>";
$maj='non';
}
if ($rm < 0) {
echo "rainrate max =".$rm." ".$rm2."<br>";
echo "rainrate max doit etre > 0 , pas de changement!</br>";
$maj='non';
}
if (! is_numeric($dm)) {
echo $dm." n'est pas de type numérique (exemples acceptes:2 ou 2.2)<br>";
$maj='non';
}
////////////////////////
if ($maj == 'oui'){
$query="UPDATE cats_weather_pref SET cloudy_max='$cm', humidity_max='$hm', rainrate_max='$rm', wind_max='$wm', dewpoint_max='$dm' WHERE 1";
$result=true;
$result=mysqli_query($db,$query);
if (!$result) {
die('Requête invalide : ' . mysqli_error());
}
else {
echo "<br>Updated<br>";
}
}
mysqli_close($db);
// trace du query dans fichier log
$file = '/home/LOG/cats_config.log';
$dd= gmdate("Ymj H:i:s");
$txt="(TU)";
if ($wm != $wm2 ) {
$txt=$txt." wind_max='$wm'";
}
if ($cm != $cm2 ){
$txt=$txt." cloudy_max='$cm'";
}
if ($rm != $rm2 ) {
$txt=$txt." rainrate_max='$rm'";
}
if ($hm != $hm2 ) {
$txt=$txt." humidity_max='$rm'";
}
if ($dm != $dm2 ) {
$txt=$txt." dewpoint_max='$dm'";
}
file_put_contents($file, $dd.$txt."\r\n",FILE_APPEND);
echo "<br>". $dd.$txt."<br>";
}
}
else {
$db =mysqli_connect($host,$login, $pass,'cats' );
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query ($db,"select * from cats_weather_pref where 1 limit 0,30");
while ($row = mysqli_fetch_assoc($result)) {
$cm=$row['cloudy_max'];
$hm=$row['humidity_max'];
$rm=$row['rainrate_max'];
$wm=$row['wind_max'];
$dm=$row['dewpoint_max'];
}
mysqli_free_result($result);
mysqli_close($db);
// Entete de la page HTML
echo '<html><head>';
echo '<center>C A T S<br>Mises &agrave; jour des parametres de config METEO</center>';
echo '<form action="cats_config_v1.php" method="post">';
echo ' cloudy max :<input type="number" name="cloudy_max" value='.$cm.' ><br>';
echo ' humidity max :<input type="number" name="humidity_max" value='.$hm.' ><br>';
echo ' rainrate max :<input type="number" name="rainrate_max" value='.$rm.' ><br>';
echo ' wind max :<input type="number" name="wind_max" value='.$wm.' ><br>';
echo ' dewpoint :<input type="text" name="dewpoint_max" value='.$dm.' ><br>';
echo ' <input type="submit" value="Update" ><br>';
echo '</form> ';
echo '</body></html>';
}
?>
#entete {
background-color:#FF9900;
text-align:center;
max-with:250px;
margin:auto;
/*
exemples
margin-left:245px;
margin:auto;
position:relative;
position:absolute;
*/
}
#cont_link{
background-color:#FF9900;
text-align:center;
max-with:350px;
width: 350px;
}
#gdimm_status{
text-align:center;
max-with:350px;
width: 350px;
}
#curve1 {
width: 350px;
max-with:350px;
height: 210px
}
#curve2{
width: 350px;
max-with:350px;
height: 210px
}
\ No newline at end of file
File added
<?php
# Pour la database mysql allsky
#$host = "10.154.1.42";
# transfert de la database dans cats-frontal
# $host = "concordia1";
#$host = "192.134.16.148";
#$login = "allsky";
#$pass = "lagrange";
$host = "meteospace-c";
$login = "root";
$pass = "meteo;calern!";
# Pour la database meteo
$host_meteo = "10.154.1.42";
$login_meteo = "cats";
$pass_meteo = "lagrange";
# Pour la connexion par socket
###$host_tcp = "10.154.1.42"; //"192.134.16.150";
$host_tcp = "192.134.16.148";
$port_tcp = "5555";
###$host_tcp_gdimm = "10.154.1.42"; //"192.134.16.150";
$host_tcp_gdimm = "192.134.16.148";
$port_tcp_gdimm = "5555";
# configuration ftp pour recuperation des images:
$ftp_server = "10.154.1.42"; //"192.134.16.150";
$ftp_login = "cats"; //"ALLSKY";
$ftp_pass = "lagrange";
?>
<?php
# Pour la database mysql allsky
#$host = "10.154.1.42";
# transfert de la database dans cats-frontal
# $host = "concordia1";
$host = "192.134.16.148";
$login = "allsky";
$pass = "lagrange";
# Pour la database meteo
$host_meteo = "10.154.1.42";
$login_meteo = "cats";
$pass_meteo = "lagrange";
# Pour la connexion par socket
###$host_tcp = "10.154.1.42"; //"192.134.16.150";
$host_tcp = "192.134.16.148";
$port_tcp = "5555";
###$host_tcp_gdimm = "10.154.1.42"; //"192.134.16.150";
$host_tcp_gdimm = "192.134.16.148";
$port_tcp_gdimm = "5555";
# configuration ftp pour recuperation des images:
$ftp_server = "10.154.1.42"; //"192.134.16.150";
$ftp_login = "cats"; //"ALLSKY";
$ftp_pass = "lagrange";
?>
<?php
function getDates()
{global $datedeb;// format "yyyy-mm-jj hh:mn:ss"
global $datefin;// format "yyyy-mm-jj hh:mn:ss"
global $jour;// format "yyyy-mm-jj"
global $now_hour; //=date('G'); // hour (0 to 23)
//////////////////////////
include "ephemerides.php"; // tables lever/coucher du soleil
//date_default_timezone_set("Europe/Paris"); fait dans php.ini
//$jour="2018-04-26";
if (isset($jour)){
$numjour=date('z',strtotime($jour)); // day of the year (from 0 through 365)
// On cherche les heures de lever et coucher du soleil qui dependent du jour dans l'annee:
$heurelever=$hlever[$numjour]+1; //1H avant
$heurecoucher=$hcoucher[$numjour];//1H apres
$datedeb = date( 'Y-m-d ',strtotime($jour));
$datedeb = $datedeb.' '. $heurecoucher .':00:00';
$datefin = date( 'Y-m-d ',(strtotime($jour)+3600*24));
$datefin = $datefin.' '. $heurelever .':00:00';
} else {
$numjour=date('z'); // day of the year (from 0 through 365)
// heure locale
//$now_hour=date('G'); // hour (0 to 23)
//////////////////////////////////////
// On cherche les heures de lever et coucher du soleil qui dependent du jour dans l'annee:
$heurelever=$hlever[$numjour]+1; //1H avant
$heurecoucher=$hcoucher[$numjour];//1H apres
// On observe entre $heurelever et $heurecoucher (heures locales)
if ($now_hour < $heurecoucher) { // acq terminee pour le jour en cours ou 2nde partie de la nuit
//echo " acq terminee pour le jour en cours ou 2nde partie de la nuit"."<br>";
//
$dd = date('Y-m-d',time()-3600*24);
$datedeb=$dd.' '.$heurecoucher.':00:00';
//
$dd = date('Y-m-d',time());
$datefin = $dd.' '.$heurelever.':00:00';;
//
} else { // affiche 1ere partie de la nuit
$dd = date('Y-m-d',time());
$datedeb=$dd.' '.$heurecoucher.':00:00';
//
$dd = date('Y-m-d',time()+3600*24*1);
$datefin = $dd.' '.$heurelever.':00:00';;
//
}
}
}
//$datedeb="";
//$datefin="";
//$jour=$yy.'-'.$mm.'-'.$jj;
//$jour="2018-02-03";
//getDates();
//echo $datedeb."<br>";
//echo $datefin."<br>";
?>
<html><head>
<center>C A T S - UTILITAIRES<br><br><br>
<u>Affichage/ mises &agrave; jour des seuils:</u> <a href="https://cats-frontal.oca.eu/cats/admin/cats_config_v1.php"> ici </a><br><br>
<u>Gestion des domes</u> (uniquement sur Calern)<br>
<a href="https://cats-dome-gdimm.oca.eu/dome.html"> GDIMM </a><br>
<a href="https://cats-dome-pbl.oca.eu/dome.html"> PBL </a><br>
<br>
<u>R&eacute;cup&eacute;ration de donn&eacute;es</u><br>
<a href="https://cats-frontal.oca.eu/gdimm_data/gmeteo.php"> station m&eacute;t&eacute;o </a><br>
<a href="https://cats-frontal.oca.eu/gdimm_data/gdimm_v2.php"> donn&eacute;es GDIMM par jour </a><br>
<a href="https://cats-frontal.oca.eu/gdimm_data/gdimm_v1.php"> donn&eacute;es GDIMM </a><br>
<br><br>
<a href="https://cats-frontal.oca.eu/cats/get_seeing.php">Dernier seeing mesur&eacute; </a><br><br><br>
<a href="https://cats-frontal.oca.eu/cloudy/cloudy.php">Donn&eacute;es ALLSKY </a><br>
</center>
</body></html>
<?php
// 366 valeurs pour eviter d'atteindre fin de tableau pour les annees bissextiles
$hlever=array (8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8,8,8,8,8,8,8);
$mnlever=array (4,4,4,4,4,4,4,4,3,3,3,2,2,1,1,0,0,59,59,58,57,56,56,55,54,53,52,51,50,49,48,47,46,45,44,42,41,40,39,37,36,35,33,32,30,29,28,26,25,23,22,20,18,17,15,14,12,10,9,7,5,4,2,0,58,57,55,53,51,50,48,46,44,43,41,39,37,35,34,32,30,28,26,25,23,21,19,17,16,14,12,10,8,7,5,3,1,0,58,56,54,53,51,49,48,46,44,43,41,39,38,36,35,33,32,30,29,27,26,24,23,21,20,19,17,16,15,13,12,11,10,9,7,6,5,4,3,2,1,0,59,58,58,57,56,55,55,54,53,53,52,52,51,51,50,50,50,49,49,49,49,48,48,48,48,48,48,48,48,48,49,49,49,49,50,50,50,51,51,52,52,53,53,54,54,55,56,56,57,58,58,59,0,1,2,3,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,30,32,33,34,35,36,37,38,39,41,42,43,44,45,46,47,48,50,51,52,53,54,55,56,57,59,0,1,2,3,4,5,6,7,9,10,11,12,13,14,15,17,18,19,20,21,22,23,25,26,27,28,29,30,31,33,34,35,36,37,39,40,41,42,43,45,46,47,48,50,51,52,53,55,56,57,59,0,1,2,4,5,6,8,9,10,12,13,14,16,17,18,19,21,22,23,25,26,27,29,30,31,32,34,35,36,37,38,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,56,57,58,59,59,0,0,1,1,2,2,3,3,3,4,4,4,4,4);
$hcoucher=array (17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,19,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,17,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,17,17,17,17,17,17);
$mncoucher=array (04,5,6,7,8,9,10,11,12,13,14,16,17,18,19,20,22,23,24,25,27,28,29,31,32,33,35,36,37,39,40,42,43,44,46,47,48,50,51,52,54,55,57,58,59,1,2,3,5,6,7,9,10,11,13,14,15,17,18,19,20,22,23,24,26,27,28,29,31,32,33,34,35,37,38,39,40,42,43,44,45,46,48,49,50,51,52,54,55,56,57,58,0,1,2,3,4,6,7,8,9,10,12,13,14,15,16,18,19,20,21,22,24,25,26,27,28,29,31,32,33,34,35,37,38,39,40,41,42,43,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,0,1,2,3,4,5,5,6,7,8,8,9,10,10,11,12,12,13,13,14,14,14,15,15,15,16,16,16,16,16,16,16,16,16,16,16,16,16,15,15,15,15,14,14,13,13,12,12,11,10,10,9,8,8,7,6,5,4,3,2,1,0,59,58,57,56,55,53,52,51,50,48,47,46,44,43,41,40,39,37,36,34,33,31,29,28,26,25,23,21,20,18,16,15,13,11,9,8,6,4,2,1,59,57,55,53,52,50,48,46,44,42,41,39,37,35,33,31,30,28,26,24,22,20,19,17,15,13,11,10,8,6,4,2,1,59,57,55,54,52,50,49,47,45,44,42,40,39,37,36,34,33,31,30,28,27,25,24,22,21,20,18,17,16,15,14,12,11,10,9,8,7,6,5,4,3,2,1,1,0,59,59,58,57,57,56,56,55,55,55,54,54,54,54,53,53,53,53,53,53,53,54,54,54,54,55,55,55,56,56,57,57,58,59,59,0,1,1,2,3,3);
?>
\ No newline at end of file
<?php
# Pour la database mysql
$host = "pc-allsky.oca.eu"; //"localhost";
$login = "root";
$pass = "lagrange";
$db_host = "pc-allsky.oca.eu"; //"localhost";
$db_login = "root";
$db_pass = "lagrange";
# Pour la connexion par socket
$host_tcp = "pc-allsky.oca.eu"; //"localhost"; //192.134.16.150
$port_tcp = "5555";
?>
<?php
/**
* @class cats_Allsky
* @details connect by tcp/ip on AllSky software and display
* status in webpage
* Note: You must have extension=php_sockets.dll actived in php.ini (version wamp)
* usage:
exemple for index.php
include "status_allsky.php";
$allsky = new cats_allSky("192.134.16.150",5555,true);