raspberry-pi3

How to send and receive webcam stream using tcp sockets in Python?

一曲冷凌霜 提交于 2020-03-18 02:30:48
问题 I am trying to recreate this project. What I have is a server (my computer), and a client (my raspberry pi). What I am doing differently than the original project is that I am trying to use a simple webcam instead of a raspberry pi camera to stream images from my rpi to the server. I know that I must: Get opencv image frames from the camera. Convert a frame (which is a numpy array) to bytes. Transfer the bytes from the client to the server. Convert the bytes back into frames and view.

My Discord.js bot is running (online and shows in console) but it won't respond to commands

佐手、 提交于 2020-02-29 08:02:30
问题 So, one day I was using TeamViewer to connect to my RPi3 and told it to reboot. As soon as it finished, I connected to the pi, started the bot, and it looked like it was starting up properly. When I went to send a command on discord, the bot didn't respond. The bot is still running though. I tried changing some of the code, but nothing changed. Here's the code: // Load up the discord.js library const Discord = require("discord.js"); // This is your client. Some people call it `bot`, some

Selenium / Raspberry Pi 3 - Unable to find a matching set of capabilities

北战南征 提交于 2020-02-23 07:49:05
问题 I want to run a Python 3 script on my Raspberry Pi and do stuff with it. The script works just fine on my Mac, however I want it to run 24/7 and the Pi is more energy efficient. Not to mention I need my Mac for other things. from selenium import webdriver from selenium.webdriver.common.keys import Keys browser = webdriver.Firefox() browser.get('www.website.com') I am running Raspbian Jesse and have installed Iceweasel (installed today through command line, V 45) and geckodriver (0.18.0).

Receiving data through uart in raspberry pi 3b

99封情书 提交于 2020-02-06 07:29:29
问题 I want to do real time voice transmission through uart of two raspberry pi 3b.Currently I am able to transmit the real time voice through uart by recording the audio in fifo file and at the same time writing that file to uart(Tx). But at receiving side I am not able to receive data properly.The code i am using is as below. import os import serial import select ser=serial.Serial('/dev/ttyS0',19200) os.system('mkfifo audio1.fifo') with open('audio1.fifo') as fifo: while True: select.select(

Receiving data through uart in raspberry pi 3b

半腔热情 提交于 2020-02-06 07:29:04
问题 I want to do real time voice transmission through uart of two raspberry pi 3b.Currently I am able to transmit the real time voice through uart by recording the audio in fifo file and at the same time writing that file to uart(Tx). But at receiving side I am not able to receive data properly.The code i am using is as below. import os import serial import select ser=serial.Serial('/dev/ttyS0',19200) os.system('mkfifo audio1.fifo') with open('audio1.fifo') as fifo: while True: select.select(

How to remove Homebridge on Raspberry Pi

梦想的初衷 提交于 2020-02-03 08:05:56
问题 How can I remove Homebridge from a Raspberry Pi 3. I have attempted the following without any luck. pi@Development:~ $ sudo npm uninstall homebridge npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json' npm WARN pi No description npm WARN pi No repository field. npm WARN pi No README data npm WARN pi No license field. I have also attempted to remove it not as sudo. A much longer result but still no luck. pi@Development:~ $ npm uninstall homebridge npm WARN enoent

How to remove Homebridge on Raspberry Pi

丶灬走出姿态 提交于 2020-02-03 08:04:35
问题 How can I remove Homebridge from a Raspberry Pi 3. I have attempted the following without any luck. pi@Development:~ $ sudo npm uninstall homebridge npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json' npm WARN pi No description npm WARN pi No repository field. npm WARN pi No README data npm WARN pi No license field. I have also attempted to remove it not as sudo. A much longer result but still no luck. pi@Development:~ $ npm uninstall homebridge npm WARN enoent

How to remove Homebridge on Raspberry Pi

落花浮王杯 提交于 2020-02-03 08:02:41
问题 How can I remove Homebridge from a Raspberry Pi 3. I have attempted the following without any luck. pi@Development:~ $ sudo npm uninstall homebridge npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json' npm WARN pi No description npm WARN pi No repository field. npm WARN pi No README data npm WARN pi No license field. I have also attempted to remove it not as sudo. A much longer result but still no luck. pi@Development:~ $ npm uninstall homebridge npm WARN enoent

NetBeans, how to set DISPLAY environment for remote SSH server (Pi)

帅比萌擦擦* 提交于 2020-01-25 21:10:09
问题 I have setup my Pi for SSH remote host development using NetBeans. I can confirm: in /etc/ssh/sshd_config X11Forwarding yes X11DisplayOffset 10... In addition, xauth is installed on the remote Pi. I have installed XQuartz on my client mac. Upon ssh -X pi@IPaddress, xquartz opens and if i echo $DISPLAY on the remote Pi i get localhost:12.0 ... the number changes with each terminal. Currently, if have incorrectly set the project environment in netbeans with: DISPLAY=localhost:11.0 (this is

How to capture a picture after every 5 seconds of camera using opencv python and Raspbery Pi 3?

空扰寡人 提交于 2020-01-25 07:40:26
问题 I am working on a school project which is related to Image Processing using OpenCV Python and Raspberry Pi 3. The hardware of Raspberry Pi 3 cannot handle the video from camera consecutively, therefore I'm thinking about only capture a picture after every 5 seconds from the camera and use it to recognize what I need, then continue. I did some research on the internet and found a function called time.sleep(5), however this function only pause the camera 5 seconds and then continue. Can anyone