× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

map-pin Telecamere IP

More
9 years 1 month ago - 9 years 1 month ago #5143 by pierpis
Replied by pierpis on topic Telecamere IP
:( :( :(
Niente, non sono riuscito a mettere la cam sul sito... e non ho idea come fare, mi hanno dato un sofware per l'installazione e dal pc e cellulare vedo... ma non sò come trasportare sul sito :( :(
Oltretutto avendo in casa vari collegamenti LAN, mi cambia anche l'IP del swpi.... (a proposito, si può mettere fisso il numero ip che dà il router?)che confusione, scoppio :( :( :( :(

Sensori PCE-FWS20, DVB-T 820T2 SDR, BMP085, Raspberry Pi mod. B www.meteoportocervo.it (Abbiadori Porto Cervo - Arzachena - OT) 108 m s.l.m.)
Last edit: 9 years 1 month ago by pierpis.

Please Log in to join the conversation.

More
9 years 1 month ago #5144 by Ciaschini
Replied by Ciaschini on topic Telecamere IP
ciao pier
per impostare l'ip statico al raspberry con putty digita
sudo nano /etc/network/interfaces

al posto di
iface eth0 inet dhcp

devi mettere
iface eth0 inet static
address 192.168.1.x <--- qui metti l'ip fisso per il raspberry
gateway 192.168.1.1 <--- qui l'ip del modem
netmask 255.255.255.0

e poi salvi e riavvi

Please Log in to join the conversation.

More
9 years 1 month ago - 9 years 1 month ago #5153 by pierpis
Replied by pierpis on topic Telecamere IP
Ho configurato SWPI come descritto da RAGUGO anche grazie alle istruzioni passo passo in formato testo :) :)
Ho anche configurato l'FTP della webcam e al test ha restituito "Sucesso" quindi presumo che sia andato tutto a buon fine..... ma poi il buio, non ho idea se SWPI realizzi un file o una cartella dove sono gli scatti :( :( :( insomma, da qui, non so muovermi.... mi potete dare una dritta?
Condiderando che dovrei prendere il risultato di tutto ciò e metterlo nel sito con un iframe in Joomla :blink: :blink:

Sensori PCE-FWS20, DVB-T 820T2 SDR, BMP085, Raspberry Pi mod. B www.meteoportocervo.it (Abbiadori Porto Cervo - Arzachena - OT) 108 m s.l.m.)
Attachments:
Last edit: 9 years 1 month ago by pierpis.

Please Log in to join the conversation.

More
9 years 1 month ago #5173 by pierpis
Replied by pierpis on topic Telecamere IP
In attesa di qualcuno che ha avuto le mie stesse esperionze e mi dia una dritta..... ho smanettato, sono arrivato alla conclusione che effettivamente con la camera IP è molto problematico farla funzionare con swpi.... anzi meglio, sono io che non riesco :(
però configurando in FTP la webcam ho inviato i fotogrammi al server del sito...ma... le foto si posizionano nella Home, creano una cartella giornaliera ( es 20150209) poi un'altra cartella col modello della cam e infine un'altra cartella "picture", nella quale vi sono le foto con nominazione strana tipo " 00_A1_A1_11_10_76_MEYE-116755-BFABF_0_20150209234933_8.jpg". E non c'è verso o possibilità di indirizzare ad una cartella a mio piacimento..... son azz.... :( :(
Anche perchè tutto questo lo devo mettere su Joomla scegliendo la cartella giornaliera in automatico e poi l'ultima foto.... a rotazione (vorrei) di circa 10 minuti. Miiiiiii.....

Sensori PCE-FWS20, DVB-T 820T2 SDR, BMP085, Raspberry Pi mod. B www.meteoportocervo.it (Abbiadori Porto Cervo - Arzachena - OT) 108 m s.l.m.)

Please Log in to join the conversation.

More
9 years 1 month ago #5174 by tony
Replied by tony on topic Telecamere IP
Purtroppo non ti posso aiutare. Il driver delle IP non l'ho scritto io e non l'ho mai testato ....

Please Log in to join the conversation.

More
9 years 1 month ago #5253 by Bigo
Replied by Bigo on topic Telecamere IP
Ciao a tutti , ho impostato la IPCam con la versione di swpi 01.22.17 , altrimenti confermo che c'è il problema che non funziona l'RFM01 , tuttavia mi rimane il problema che le immagini vengono uploadate in altervista sotto /swpi e non /swpi/img , tale problema non mi permette di usare i vari script per richiamare e vedere le immagini .
Mi indicate quali file di configurazione devo modificare senza fare danni :unsure: ??
Grazie

Please Log in to join the conversation.

More
9 years 1 month ago #5261 by tony
Replied by tony on topic Telecamere IP
come cartella credo devi impostare in ftpserverDestFolder :

Altervista : /swpi/img
Aruba : tuosito.it/swpi/img

TT

Please Log in to join the conversation.

More
9 years 1 month ago - 9 years 1 month ago #5271 by pierpis
Replied by pierpis on topic Telecamere IP
???? Volevo mettere l'IP fisso al Raspy con Putty, ho eseguito i primi comandi e mi chiede password, metto quella che ho nella schermata rosa .... e non la accetta, perchè?
Che password vuole oltre questa della configurazione?

Sensori PCE-FWS20, DVB-T 820T2 SDR, BMP085, Raspberry Pi mod. B www.meteoportocervo.it (Abbiadori Porto Cervo - Arzachena - OT) 108 m s.l.m.)
Last edit: 9 years 1 month ago by pierpis.

Please Log in to join the conversation.

More
9 years 1 month ago #5273 by Ciaschini
Replied by Ciaschini on topic Telecamere IP
Non devi mettere nome utente e password di swpi ma del raspberry, ovvero nome utente "pi" e password "raspberry"

Please Log in to join the conversation.

More
9 years 1 month ago #5274 by pierpis
Replied by pierpis on topic Telecamere IP
E' la prima volta che uso Putty.... quindi sono letteralmente a digiuno dei suoi vari comandi
dopo il quadratino verde?? che ci metto per farlo partire? :(

scusatemi ma tolto da windows sò muovermi poco :(

Sensori PCE-FWS20, DVB-T 820T2 SDR, BMP085, Raspberry Pi mod. B www.meteoportocervo.it (Abbiadori Porto Cervo - Arzachena - OT) 108 m s.l.m.)

Please Log in to join the conversation.

More
9 years 1 month ago #5275 by Ciaschini
Replied by Ciaschini on topic Telecamere IP
partendo capo fai così, apri putty, su host name scrivi l'indirizzo ip del raspberry (esempio 192.168.1.101) e controlla che sia scelto ssh sotto connection type, poi in fondo premi Open
a questo punto ti si aprirà una finesta a prompt di comandi, con scritto Login as: e li scrivi pi e premi invio
nella password scrivi raspberry e premi invio, ora compariranno delle informazioni, attendi la comparsa di pi@swpi ~ $ quindi devi scrivere sudo nano /etc/network/interfaces, puoi anche fare copia del testo qui e incollarlo con il tasto destro, una volta scritto premi invio, si aprirà il file, dove basterà semplicemente cancellare la riga
iface eth0 inet dhcp

al suo posto scrivi
iface eth0 inet static
address 192.168.1.x <--- qui metti l'ip fisso per il raspberry
gateway 192.168.1.1 <--- qui l'ip del modem
netmask 255.255.255.0

una volta fatto chiudi il file con ctrl+x e dai la conferma con S e poi invio

ora scrivi sudo reboot, questo è il comando per riavviare il raspberry, comparirà il messaggio di reboot e dopo qualche secondo putty non raggiungerà più il raspberry, il tempo di riavviarsi e il raspberry sarà reperibile all'ip impostato
The following user(s) said Thank You: pierpis

Please Log in to join the conversation.

More
9 years 1 month ago #5276 by pierpis
Replied by pierpis on topic Telecamere IP
YESSSSSSS.... ho il mio IP fisso!!!

:) :) :) :)
Grazie

Sensori PCE-FWS20, DVB-T 820T2 SDR, BMP085, Raspberry Pi mod. B www.meteoportocervo.it (Abbiadori Porto Cervo - Arzachena - OT) 108 m s.l.m.)

Please Log in to join the conversation.

More
9 years 1 month ago #5277 by pierpis
Replied by pierpis on topic Telecamere IP
Grazie a voi e con piccoli passi alla volta stò raggiungendo il traguardo...ora, ho trovato in rete questo script PHP e stò tentando di acquisire automaticamente gli scatto sella mia IPCAM, ma fino ad ora buio!!

gli date uno sguardo?

<?php
// prepara l'array per i nomi dei file
$directory = array();

// prepara l'handler per la directory
$handler = opendir('../ipcam/20150217/MEYE-116755-BFABF/picture');

// apre la directory e legge i singoli nomi dei file
while ($file = readdir($handler)) {

// se il nome del file contiene il testo iniziale imposto dalla ipcamera lo mette nell'array
if (substr("$file", 0, 38) == "00_A1_A1_11_10_76_MEYE-116755-BFABF_0_") {
$directory[] = $file;
}

}

// chiude l'handler
closedir($handler);

// ordina la lista dei file per nome (il piu' nuovo sara' l'ultimo)
sort($directory);

// conta i file
$fileCount = count($directory);

// copia il file piu' nuovo in webcam.jpg
// $index corrispondera' all'ultimo elemento dell'array (il primo e' 0)
$index = $fileCount - 1;
$fileDaCopiare = $directory[$index];
copy($fileDaCopiare, 'webcam.jpg');

// cancella tutti i file i cui nomi sono nell'array
for($index=0; $index < $fileCount; $index++) {
$fileDaCancellare = $directory[$index];
unlink($fileDaCancellare);
}

$nome_immagine="webcam.jpg"; // file contenente l'immagine
$nome_testo="testo.txt"; // file contenente le scritte

$fp = fopen($nome_testo,"r")
or die("impossibile aprire il file testo.txt.");
$testo_sinistra=fgets($fp,100); // nella prima riga la scritta allineata a sinistra
$testo_destra=fgets($fp,100); // nella seconda riga la scritta allineata a destra
if ( $testo_destra = "data" )
{
setlocale(LC_TIME,"it_IT");
$testo_destra=strftime ("%a %d %b %Y %H:%M:%S", filemtime($nome_immagine));
}
fclose($fp);

header("Content-type: image/png");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");

$im = imagecreatefromjpeg($nome_immagine);
//$black = imagecolorallocate($im, 0, 0, 0);
//$white = imagecolorallocate($im, 255, 255, 255);
$colore_barra = imagecolorallocate($im, 1, 0, 128); // colore della barra formato RGB
$colore_testo = imagecolorallocate($im, 255, 255, 255); // idem per testo
$x=imagesx($im);
$y=imagesy($im);

$font = "VeraBd.ttf";
$size = 8; // dimensione del testo
$altezza_barra = 20; // dimensione della barra


imagefilledrectangle($im, 0, $y-$altezza_barra, $x-1, $y-1, $colore_barra);

$bbox = imagettfbbox ($size, 0, $font, $testo_sinistra);
$dy = (($bbox[1] - $bbox[7]) / 2);
imagettftext($im, $size, 0, 5, $y-($altezza_barra / 2) + $dy - 1, $colore_testo, $font, $testo_sinistra);

$bbox = imagettfbbox ($size, 0, $font, $testo_destra);
$dx = ($bbox[2] - $bbox[0]);
imagettftext($im, $size, 0, $x-5-$dx, $y-($altezza_barra / 2) + $dy - 1, $colore_testo, $font, $testo_destra);
imagepng($im);
imagedestroy($im);

?>

Sensori PCE-FWS20, DVB-T 820T2 SDR, BMP085, Raspberry Pi mod. B www.meteoportocervo.it (Abbiadori Porto Cervo - Arzachena - OT) 108 m s.l.m.)

Please Log in to join the conversation.

More
9 years 1 month ago #5278 by Bigo
Replied by Bigo on topic Telecamere IP
Grazie Tony , ora le foto sono tutte sotto /swpi/img , ma i vari camera1.php , swpi_camera1.php , webcam_stiker.html , swpi_photoslide.php , non ne vogliono minimamente sapere di funzionare .... dove sbaglio??

Please Log in to join the conversation.

More
9 years 1 month ago #5287 by Bigo
Replied by Bigo on topic Telecamere IP
Mi rispondo da solo , ho modificato il file swpi_camera.php cosi:
<?php
$namecamera = 'webcam1';
$data = date("dmY");
$files = glob("./img/".$namecamera."_".$data."*.jpg");
//$files = glob("../img/webcam1_".$data.""-"*.jpg");
rsort ($files);
if (sizeof($files) > 0 ) {
$theimg= '"'.$files[0].'"';
}
else {
$theimg = '"../webcam/no-immagine.jpg"';
}

echo '<A HREF=';    echo $theimg;    echo '><IMG SRC='; echo $theimg; echo '  WIDTH="650px" >' ; echo '</A>' ;
echo "\n";
?>
ora funziona perfettamente .

Please Log in to join the conversation.

More
9 years 2 weeks ago #5362 by pirimpero
Replied by pirimpero on topic Telecamere IP
Buongiorno a tutti, ho da poco cambiato l'esposizione dei dati meteo e webcam da Cumulus a Swpi, per i dati grazie ad un amico frequentatore assiduo di questo forum ho configurato più o meno tutto. Ma la nota dolente, è la cattura delle immagini tramite swpi con camera su IP. potete darmi una mano, partendo da come configurare swpi. Hoseguito la guida in doc ma nulla da fare. Grazie Luca

Stazione PCE-FWS20 + Raspberry www.lucapaci.altervista.org (Pontasserchio Pisa) 12 m s.l.m.)

Please Log in to join the conversation.

More
9 years 2 weeks ago #5380 by Bigo
Replied by Bigo on topic Telecamere IP
Ciao , prima di tutto è importante avere swpi versione 01.22.17 a me con le versioni più aggiornate non trasferiva le immagini, poi se leggi attentamente questa discussione troverai tutto quello che ti serve.

Please Log in to join the conversation.

More
9 years 1 week ago #5416 by linxis
Replied by linxis on topic Telecamere IP
Buongiorno a tutto il forum e complimenti.
Vorrei chiedere a voi del forum , per un problema nella configurazione della mia IPcam Foscam FI9805.
Dopo aver settato come da varie istruzioni descritte nei vari post il Sint Wind PI la schermata relativa alla ipcam non funziona più l' invio del file meteo .TXT e mi compaiono degli errori che ho prelevato nel file log.

______________________________________________________________________
mer 18 mar 2015, 21.36.05, CET
[18/03/2015-21:36:05] System time adjusted from NPT server : europe.pool.ntp.org
[18/03/2015-21:36:31] Calculating Meteo data and statistics
Traceback (most recent call last):
File "swpi.py", line 904, in <module>
bipcam1 = IPCam1.IPCamCapture(img1FileName,1)
File "/home/pi/swpi/IPCam.py", line 107, in IPCamCapture
os.system(posCommand)
UnboundLocalError: local variable 'posCommand' referenced before assignment
[18/03/2015-21:36:50] Logging data to Database
[18/03/2015-21:36:50] Dir: W - Spd: 5.04 - Gst: 7.2 - Tout: 11.3 - Tin: 16.5 - Hout: 59.0 - Hin: 57.0 - P: 1024 - Rtot: 51.6 - RDay: 0.0 - R1h: 0.0 - R24h: 0.0 - CB: 978
Come vedete rileva i dati meteo ma non li invia al server....
Qualcuno per cortesia mi puo' aiutare?
Attachments:

Please Log in to join the conversation.

More
8 years 11 months ago #5573 by Andreano
Replied by Andreano on topic Telecamere IP
Salve, vorrei un aiuto per configurare la IP-CAM con Sint Wind PI.
Ho una IP-CAM Foscam e penso di aver capito come configurare il tutto, il mio problema è che nel menu "Logo-Resolution-Capture Program" posso sceglire solo tra: ffmpeg, uvccapture e fswebcam, non mi appare ipcam. :(
Come mai?
Saluti a tutti.
Raffaele.

Please Log in to join the conversation.

More
8 years 5 months ago #5829 by ciapa85
Replied by ciapa85 on topic Telecamere IP
dove posso trovare la versione 01.22.17? attualmente ho la 01.22.67

Please Log in to join the conversation.

More
8 years 5 months ago #5830 by tony
Replied by tony on topic Telecamere IP
Prova il comando :
swpi-update 01.22.17

Perche l'ultima versione non và ? che errore hai ?

TT

Please Log in to join the conversation.

More
8 years 5 months ago - 8 years 5 months ago #5831 by ciapa85
Replied by ciapa85 on topic Telecamere IP
questo è come ho configurato la parte webcam
in questo modo qui il swpi si blocca e il whatchdog mi riavvia il programma
Last edit: 8 years 5 months ago by ciapa85. Reason: aggiunta goto

Please Log in to join the conversation.

More
8 years 5 months ago - 8 years 5 months ago #5844 by ciapa85
Replied by ciapa85 on topic Telecamere IP
Allora ho configurato la parte camera come da screenshot, il swpi non si blocca ma non mi cattura l'immagine.
ho sbagliato forse qualche settaggio?

Entrando nel log da console mi da questo errore:
[07/10/2015-18:10:16] Calculating Meteo data and statistics
Traceback (most recent call last):
  File "swpi.py", line 904, in <module>
    bipcam1 = IPCam1.IPCamCapture(img1FileName,1)
  File "/home/pi/swpi/IPCam.py", line 107, in IPCamCapture
    os.system(posCommand)
UnboundLocalError: local variable 'posCommand' referenced before assignment

non mi fa piu nemmeno l'upload dei dati e poi ri siavvia trammite il watchdog
Attachments:
Last edit: 8 years 5 months ago by ciapa85. Reason: inserimento codice

Please Log in to join the conversation.

More
8 years 5 months ago #5845 by ciapa85
Replied by ciapa85 on topic Telecamere IP
ho provato anche a tornare alla versione 1.22.17 ma non compare la scelta IPCAM ne campo "Webcam Capture program"

Please Log in to join the conversation.

More
8 years 5 months ago #5846 by ciapa85
Replied by ciapa85 on topic Telecamere IP
altra prova che ho fatto.... scusate se rompo ma vorrei arrivare in fondo al problema...

sono andato a vedere il file WEBCAM.PY contenuto nel mio raspberry
        def capture(self,filename):
                try:

                        if ( self.cfg.captureprogram == "ffmpeg" ):
                                snapCommand = "ffmpeg -loglevel quiet -t 1  -f video4linux2 -vframes 1 -s " + self.captureresolution + " -i " + self.device $
                        elif ( self.cfg.captureprogram == "uvccapture" ):
                                snapCommand = "uvccapture -m -S80 -B80 -C80 -G80 -x" + self.captureresolutionX + "-y" + self.captureresolutionX + " -d" + se$
                        elif ( self.cfg.captureprogram == "fswebcam" ):
                                snapCommand = "fswebcam -c fswebcam.conf -r %s -d %s --save %s" %( self.captureresolution,self.device,filename)
                        elif ( self.cfg.captureprogram == "ipcam" ):
                                snapCommand ="wget -O " + filename + " " + self.device


                        #log( "Getting images with command : " + snapCommand)
                        os.system(snapCommand )

                        if ( not os.path.isfile(filename)):
                                log( "ERROR in capturing webcam image on : " + filename + " "+ self.device )
                                return False

                        return True
                except ValueError:
                        log( " ERROR in capturing webcam image on : " + self.device )
                        return False

come si vede l'opzione per l'ip cam è presente...

però nell'interfaccia web non compare.... quale altro file devo controllare?

Please Log in to join the conversation.

More
8 years 5 months ago #5847 by ciapa85
Replied by ciapa85 on topic Telecamere IP
altra differenza che ho trovato....

nel primo post nel file TEMPLATE.HTML compare questa stringa
<option value="ipcam">ipcam</option>

ne l mio raspberry non è presente

se aggiungo questa stringa potrei risolvere il problema?

grazie

Please Log in to join the conversation.

More
8 years 5 months ago #5848 by ciapa85
Replied by ciapa85 on topic Telecamere IP
riprovato con l'ultima modifica... da sempre l'errore nel log come i post precedenti

Please Log in to join the conversation.

More
8 years 5 months ago #5851 by tony
Replied by tony on topic Telecamere IP
Non ho sviluppato quella parte del codice e non ho camere IP qindi non posso aiutarti. Attendiamo ragugo.
TT

Please Log in to join the conversation.

More
8 years 5 months ago #5893 by ciapa85
Replied by ciapa85 on topic Telecamere IP

linxis wrote: Buongiorno a tutto il forum e complimenti.
Vorrei chiedere a voi del forum , per un problema nella configurazione della mia IPcam Foscam FI9805.
Dopo aver settato come da varie istruzioni descritte nei vari post il Sint Wind PI la schermata relativa alla ipcam non funziona più l' invio del file meteo .TXT e mi compaiono degli errori che ho prelevato nel file log.

______________________________________________________________________
mer 18 mar 2015, 21.36.05, CET
[18/03/2015-21:36:05] System time adjusted from NPT server : europe.pool.ntp.org
[18/03/2015-21:36:31] Calculating Meteo data and statistics
Traceback (most recent call last):
File "swpi.py", line 904, in <module>
bipcam1 = IPCam1.IPCamCapture(img1FileName,1)
File "/home/pi/swpi/IPCam.py", line 107, in IPCamCapture
os.system(posCommand)
UnboundLocalError: local variable 'posCommand' referenced before assignment
[18/03/2015-21:36:50] Logging data to Database
[18/03/2015-21:36:50] Dir: W - Spd: 5.04 - Gst: 7.2 - Tout: 11.3 - Tin: 16.5 - Hout: 59.0 - Hin: 57.0 - P: 1024 - Rtot: 51.6 - RDay: 0.0 - R1h: 0.0 - R24h: 0.0 - CB: 978


Come vedete rileva i dati meteo ma non li invia al server....
Qualcuno per cortesia mi puo' aiutare?


stesso errore mio

Please Log in to join the conversation.

More
8 years 5 months ago #5895 by tony
Replied by tony on topic Telecamere IP
Coda hai messo nella configurazione nel parametro IPCamCfg ?

Please Log in to join the conversation.

Time to create page: 0.854 seconds