Go to advanced search

by MatteoM
Mon Apr 14, 2014 7:06 pm
Forum: Italiano
Topic: Crontab & python
Replies: 4
Views: 1071

Re: Crontab & python

Non sono ancora riuscito a risolvere. Se qualcuno ha qualche idea si faccia avanti. Grazie :) Ho trovato l'errore. Per conoscenza posto lo script corretto. #!/usr/bin/python #Open the temperature sensor and read it and process the result tfile = open("/sys/bus/w1/devices/28-000004757789/w1_slave") ...
by MatteoM
Sun Apr 13, 2014 8:01 pm
Forum: Beginners
Topic: Crontab & python
Replies: 9
Views: 1708

Re: Crontab & python

Or, don't use cron at all. Reasons include: 1) cron introduces all sorts of weirdness that trips up newbies. Don't worry, it trips up us old hands, too, though we (usually) know how to pick ourselves up, dust ourselves off, and fix the problem. But cron is to be avoided whenever possible. Don't get...
by MatteoM
Sun Apr 13, 2014 7:56 pm
Forum: Beginners
Topic: Crontab & python
Replies: 9
Views: 1708

Re: Crontab & python

joan wrote:Get rid of the sudo from the crontab (I'm assuming you are using the root crontab).

In s1.py use the absolute path to "7784.txt, i.e. "/var/www/7784.txt"
Thanks, now It works!:)
by MatteoM
Sun Apr 13, 2014 6:48 pm
Forum: Italiano
Topic: Crontab & python
Replies: 4
Views: 1071

Re: Crontab & python

Non sono ancora riuscito a risolvere. Se qualcuno ha qualche idea si faccia avanti.
Grazie :)
by MatteoM
Sun Apr 13, 2014 6:46 pm
Forum: Beginners
Topic: Crontab & python
Replies: 9
Views: 1708

Crontab & python

Hi, I want to execute a python script with cron. This is the script: #!/usr/bin/python #Open the temperature sensor and read it and process the result tfile = open("/sys/bus/w1/devices/28-000004757789/w1_slave") text = tfile.read() tfile.close() temperature_data = text.split()[-1] temperature = floa...
by MatteoM
Fri Mar 28, 2014 6:21 pm
Forum: Italiano
Topic: Crontab & python
Replies: 4
Views: 1071

Re: Crontab & python

gambuzzi wrote:*/1 è equivalente a *

poi lanciato così non sò in che cartella giri e quindi in quale scriva.

cerca il file che crei in giro per il sistema :), dimmi se lo trovi altrove.
Lo script e il file su cui lo script agisce si trova in /var/www
by MatteoM
Thu Mar 27, 2014 4:04 pm
Forum: Italiano
Topic: Crontab & python
Replies: 4
Views: 1071

Crontab & python

Salve a tutti, sto cercando in tutti i modi di fare eseguire ogni minuto questo script in python: #!/usr/bin/python #Open the temperature sensor and read it and process the result tfile = open("/sys/bus/w1/devices/28-000004757789/w1_slave") text = tfile.read() tfile.close() temperature_data = text.s...
by MatteoM
Mon Mar 03, 2014 2:34 pm
Forum: General discussion
Topic: Stop "Motion Detection" on Motion
Replies: 8
Views: 22290

Re: Stop "Motion Detection" on Motion

shuckle wrote:It works for me. Are you using rasbian standard motion?
I'm using standard motion and raspian.
For the configuration of software I used this guide:http://www.codeproject.com/Articles/665 ... nce-camera
by MatteoM
Sun Mar 02, 2014 4:16 pm
Forum: General discussion
Topic: Stop "Motion Detection" on Motion
Replies: 8
Views: 22290

Re: Stop "Motion Detection" on Motion

shuckle wrote:Go to config page on 8081 and pause motion detection.
http://raspberry:8081/0/detection/pause doesn't work for me.
by MatteoM
Sat Mar 01, 2014 2:25 pm
Forum: General discussion
Topic: Stop "Motion Detection" on Motion
Replies: 8
Views: 22290

Stop "Motion Detection" on Motion

Hi everybody, I need to stop the "Motion Detection" on Motion. This is my motion.conf: # Rename this distribution example file to motion.conf # # This config file was generated by motion 3.2.12 ############################################################ # Daemon ####################################...
by MatteoM
Thu Feb 27, 2014 4:17 pm
Forum: Italiano
Topic: Disabilitare Motion Detection
Replies: 4
Views: 907

Re: Disabilitare Motion Detection

Ti va di copiare e incollare il tuo file motion.conf qui? # Rename this distribution example file to motion.conf # # This config file was generated by motion 3.2.12 ############################################################ # Daemon ############################################################ # S...
by MatteoM
Thu Feb 27, 2014 3:28 pm
Forum: Italiano
Topic: Disabilitare Motion Detection
Replies: 4
Views: 907

Re: Disabilitare Motion Detection

Ciao, intanto grazie per la risposta :) .
Avevo già settato questi due parametri ad off ma continua a registrare. Altri suggerimenti?
by MatteoM
Wed Feb 26, 2014 8:13 pm
Forum: Italiano
Topic: Disabilitare Motion Detection
Replies: 4
Views: 907

Disabilitare Motion Detection

Salve a tutti, ho configurato motion per lo streming video prodotto dalla RaspiCam ed ho scoperto che quando il software rileva un movimento crea un video che si salva nella SD.
A me questa funzionalità non interessa qualcuno sa dirmi quale parametro del file "motion.conf" devo modificare?.
Grazie
by MatteoM
Tue Feb 18, 2014 9:48 am
Forum: Italiano
Topic: Webcam per Motion
Replies: 3
Views: 2514

Re: Webcam per Motion

Ciao, hai mai pensato di usare la Camera Module della Raspberry? Costa il doppio ma fà foto migliori di una Webcam, accoppiandola a Mjpg-streamer potrai poi trasmettere in streming come una ip camera su motion! Comunque sia per compatibilità di webcam ti consiglio di andare qui: http://elinux.org/R...
by MatteoM
Mon Feb 17, 2014 8:08 pm
Forum: Italiano
Topic: Webcam per Motion
Replies: 3
Views: 2514

Webcam per Motion

Ciao a tutti, sto cercando una webcam da utilizzare con motion per avere lo streaming video online ed ho trovato questa in Amazon: http://www.amazon.it/Microsoft-T3H-00013-LifeCam-HD-3000/dp/B0096M4QOY/ref=sr_1_1?ie=UTF8&qid=1392667509&sr=8-1&keywords=webcam Qualcuno con più esperienza di me sa dirm...
by MatteoM
Wed Jan 22, 2014 8:20 pm
Forum: Italiano
Topic: GPIO e pagina web
Replies: 2
Views: 1502

Re: GPIO e pagina web

Buona sera a tutti; Ho configurato sul mio raspberry un sensore di temperatura e umidità, più precisamente il dht11. Avrei bisogno ora di far visualizzare su di una pagina web il valore letto ma purtroppo non riesco a capire come fare. Inoltre avrei bisogno di cambiare l'immagine a seconda che la t...
by MatteoM
Wed Jan 22, 2014 8:03 pm
Forum: Italiano
Topic: Raspberry Pi & Servomotore
Replies: 9
Views: 4435

Re: Raspberry Pi & Servomotore

Ora che ci penso c'e anche la sezione tutorial e lerning system di adafruit..da pure un'occhiata qui: http://learn.adafruit.com/category/raspberry-pi Grazie ancora per la tue preziose informazioni. Adesso do un occhiata a tutto il materiale che ho recuperato, se poi trovo la soluzione o ho altri du...
by MatteoM
Wed Jan 22, 2014 2:42 pm
Forum: Italiano
Topic: Raspberry Pi & Servomotore
Replies: 9
Views: 4435

Re: Raspberry Pi & Servomotore

Ciao, io per controllare servo o un motore tramite h bridge uso questo: http://www.adafruit.com/products/815 Tramite poi webiopi o python controllo direttamente la lunghezza dell'impulso e quindi di conseguenza l'angolo del servo motore oppure di un motore controllo la sua velocità sempre tramite p...
by MatteoM
Mon Jan 20, 2014 6:59 pm
Forum: Italiano
Topic: Raspberry Pi & Servomotore
Replies: 9
Views: 4435

Re: Raspberry Pi & Servomotore

Non avevo mai sentito parlare di questa libreria, appena riesco mi leggo la documentazione.
Grazie :)
by MatteoM
Mon Jan 20, 2014 6:56 pm
Forum: Italiano
Topic: Raspberry Pi & Servomotore
Replies: 9
Views: 4435

Re: Raspberry Pi & Servomotore

Ciao, io per controllare servo o un motore tramite h bridge uso questo: http://www.adafruit.com/products/815 Tramite poi webiopi o python controllo direttamente la lunghezza dell'impulso e quindi di conseguenza l'angolo del servo motore oppure di un motore controllo la sua velocità sempre tramite p...
by MatteoM
Fri Jan 17, 2014 9:19 pm
Forum: Italiano
Topic: Raspberry Pi & Servomotore
Replies: 9
Views: 4435

Raspberry Pi & Servomotore

Salve a tutti, sto riscontrando numerosi problemi nel pilotare un servomotore utilizzando il Raspberry Pi. Ho utilizzato diversi software (ServoBlaster, wiringPi) sperando di venirne a capo ma purtroppo non ho ancora ottenuto il risultato sperato :oops:. Il Servo che sto utilizzando è il modello HS-...

Go to advanced search