Mymessage = "Es hat gerade das " + str(i) + ". # Send a photo to a chat room (chat room ID retrieved from getUpdates) Subprocess.Popen(video_aufnahme_kommando, shell=True) Subprocess.Popen(video_start_kommando, shell=True) If (GPIO.input(optokoppler) = GPIO.LOW) or (developermode = 1): tup(optokoppler, GPIO.IN, pull_up_down = GPIO.PUD_UP) # Pin optokopller als Eingang, relais als Ausgang festlegen Mail_versand_kommando_1 = 'mpack -s "Es hat geklingelt" /home/pi/cam/' Video_stopp_kommando = 'sudo killall mjpg_streamer' Video_start_kommando = 'mjpg_streamer -i "/usr/local/lib/input_uvc.so -d /dev/video0 -n -r 1024x768 -f 24 –q 80" -o "/usr/local/lib/output_http.so -n -w /usr/local/www -p 9000" -o "/usr/local/lib/output_file.so -f /home/pi/cam -d 12000"' OK, I hope it will not to hard for me #!/usr/bin/env python Download & Buy Download V5 100 MB Click Here Download Legacy V4 65 MB Click Here Purchase Full Version Up to 64 cameras Click Here Purchase LE Version 1 camera Click Here Min. And if that is the case, an Arduino might have problems too. Perhaps you have a bad RPi or particularly noisy power or something. Given that the most common platform upon which OH runs is an RPi and in my personal experience I have RPis running things like these that stay running for 6+ months at a time without a reboot, and even when it reboots it is because of a general loss of power to the house, not instability with the RPi, I can’t say that the RPi is generally unstable. Maybe you can find something useful on Instructables or and Arduino forum. The answers to all of those ifs will not be found on this forum though. If you have a way to attach the camera to an Arduino and a way to attach the Arduino to the network and provide a way for your OH server to pull the data from the Arduino from over the network or have the Arduino push the data to the OH server then yes you can use an Arduino. Without out that there is no way to get the data captured by the camera to OH. The problem is the camera module doesn’t talk on the network.
0 Comments
Leave a Reply. |