• Benvenuti su RaspberryItaly!
Benvenuto ospite! Login Login con Facebook Registrati Login with Facebook


Tags
Author: tony - Replies: 9 - Views: 5945
help scrip che salva snapshot telecamere ip foscam
Salve a tutti ho questo script che mi estrae un fotogramma (snapshot) da una telecamera ip della foscam.
Quando lo avvio mi dice dove prelevare l'immagine , ora in base a ciò che mi riporta il "print" vorrei salvare l'immagine ma non riesco a capire come, o meglio so che devo utilizzare la sintassi wget --output-document immagine.jpg ma come gli dico dove la deve prendere?

[code]import urllib2
from bs4 import BeautifulSoup

url = 'http://172.XX.XXX.XXX:XXX/cgi-bin/CGIProxy.fcgi?cmd=sna
Author: tony - Replies: 1 - Views: 3563
come trasformare uno scrip in bash in python ?
Salve ho questo script in bash lo vorrei trasformare in python è possibile farlo?

grazie

[code]#!/bin/sh
SnapFile="/var/tmp/snapshot.jpg"
wget -O $SnapFile "http://xxx.xxx.x.xxx:81/snapshot.cgi?loginuse=xxxxxxxx&loginpas=xxxxxxx"
curl -s -X POST "https://api.telegram.org/bot1234567:ABCDEFGHIJKLMN/sendMessage" -F chat_id=12345678 -F text="That is the doorbell"
curl -s -X POST "https://api.telegram.org/bot1234567:ABCDEFGHIJKLMN/sendPhoto" -F chat_id=-12345678 -F photo="@$SnapFile"
/bi
Forum con nuovi Post
Forum senza nuovi post
Forum bloccato
Forum Redirect