× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

file Sito Internet

More
7 years 4 months ago #7401 by skatman84
Sito Internet was created by skatman84
Ciao a tutti. Volevo chiedervi se esiste un'anima pia che può darmi il codice del proprio sito internet. Purtroppo non sono un'esperto e non sarei in grado di fare un bel sito meteo. Grazie in anticipo!!!

Please Log in to join the conversation.

More
7 years 4 months ago #7405 by Roberto Vaccaro
Replied by Roberto Vaccaro on topic Sito Internet
Non credo sia possibile, troppe personalizzazioni e diversi maintainer.

Perche non scarichi dai download i files relativi alla Parte server e inizi da lì.

Please Log in to join the conversation.

More
7 years 3 months ago - 7 years 3 months ago #7522 by skatman84
Replied by skatman84 on topic Sito Internet
ho seguito il tuo consiglio :-)

Sono arrivato alla visualizzazione delle immagini inviate dalla raspicam. Le stesse vengono salvate correttamente sul server nella cartella swpi/img ma lanciando lo script "swpi_camera1.php" non succede nulla...dove sbaglio? occorre modificare qualcosa nello script? nello stesso ho inserito correttamente la cartella da cui andare a pescare

questo il mio codice

<?php
$data = date("dmY");
$files = glob("./img/raspi_".$data."*.jpg");
rsort ($files);
if (sizeof($files) > 0 ) {
$theimg= '"'.$files[0].'"';
}
else {
$theimg = '"./img/raspi_01012015-174001.jpg"';
}
$type = 'image/jpeg';
header('Content-Type:'.$type);
header('Content-Length: ' . filesize($theimg));
readfile($theimg);
// echo '<A HREF='; echo $theimg; echo '><IMG SRC=';
echo $theimg; //echo ' WIDTH="650px" >' ; //echo '</A>' ;
// echo "\n";
?>
Last edit: 7 years 3 months ago by skatman84.

Please Log in to join the conversation.

More
7 years 3 months ago #7529 by skatman84
Replied by skatman84 on topic Sito Internet
AGGIORNAMENTO:

SOno riuscito a visualizzare l'ultima immagine della Webcam. Nuova sfida: La dashboard :-)

Suggerimenti? :-)

Please Log in to join the conversation.

Time to create page: 0.939 seconds