raspberry-pi3

How do I keep a WKWebView object from crashing?

我怕爱的太早我们不能终老 提交于 2021-02-20 14:17:04
问题 Scenario I'm building an iOS application in Swift. One feature is to have a live video feed as the application background. The video feed is originating from a Raspberry Pi on a local network using sudo motion . Motion is successfully hosting the feed on default port 8081 . The Swift app has a WKWebView object with the source pointing to my Raspberry Pi's motion port. Suspected Issue The webpage at port 8081 is constantly refreshing to load the most recent frame from the camera. Problem When

How do I keep a WKWebView object from crashing?

拜拜、爱过 提交于 2021-02-20 14:08:43
问题 Scenario I'm building an iOS application in Swift. One feature is to have a live video feed as the application background. The video feed is originating from a Raspberry Pi on a local network using sudo motion . Motion is successfully hosting the feed on default port 8081 . The Swift app has a WKWebView object with the source pointing to my Raspberry Pi's motion port. Suspected Issue The webpage at port 8081 is constantly refreshing to load the most recent frame from the camera. Problem When

How do I keep a WKWebView object from crashing?

夙愿已清 提交于 2021-02-20 14:04:48
问题 Scenario I'm building an iOS application in Swift. One feature is to have a live video feed as the application background. The video feed is originating from a Raspberry Pi on a local network using sudo motion . Motion is successfully hosting the feed on default port 8081 . The Swift app has a WKWebView object with the source pointing to my Raspberry Pi's motion port. Suspected Issue The webpage at port 8081 is constantly refreshing to load the most recent frame from the camera. Problem When

Show an image with omxiv direct from memory on RPI

亡梦爱人 提交于 2021-02-13 17:29:31
问题 I want to create an image in PILLOW and show it on the screen on the Raspberry Pi with for example omxiv direct from memory without saving it to the memory card, something like this: Python 2.7: from PIL import Image import os img = Image.new('RGB', size=(150, 50), color=(0, 0, 255)) .... im_file = ???? os.system('omxiv im_file') Can anybody tell me how to do this? 回答1: I did some experiments with the framebuffer on my Raspberry Pi 4. Here is what I managed to work out... You can get the

Show an image with omxiv direct from memory on RPI

喜欢而已 提交于 2021-02-13 17:27:03
问题 I want to create an image in PILLOW and show it on the screen on the Raspberry Pi with for example omxiv direct from memory without saving it to the memory card, something like this: Python 2.7: from PIL import Image import os img = Image.new('RGB', size=(150, 50), color=(0, 0, 255)) .... im_file = ???? os.system('omxiv im_file') Can anybody tell me how to do this? 回答1: I did some experiments with the framebuffer on my Raspberry Pi 4. Here is what I managed to work out... You can get the

Why is my Postgres database working for a while and then not able to “start server” once restarted?

余生长醉 提交于 2021-02-11 14:23:39
问题 Recently, I've started playing around with an old Raspberry Pi 3 b+, and I thought it would be good practice to host a Postgres database on my local network and use it for whatever I want to work through. I understand that running Postgres on a Raspberry Pi with 1GB of memory is not ideal and can take a toll on the SDcard, but I've updated the postgresql.conf file and specified that the data directory path is to utilize a 1TB SSD. Additionally, I've installed zram and log2ram to try and curb

How to capture output of subprocess.call

最后都变了- 提交于 2021-02-10 05:15:10
问题 I have made a script that tells me the temperature of my Raspberry Pi 3, but there is a problem with the script. The result output is the bot saying "Your RPI3 temp is currently 0". What is wrong with my code? @bot.command(pass_context=True) async def vcgencmdmeasure_temp(ctx): if ctx.message.author.id == "412372079242117123": await bot.say("OK....") return_code = subprocess.call("vcgencmd measure_temp", shell=True) await bot.say("KK done") await bot.say("Your RPI3 temp is currently: {}"

How to capture output of subprocess.call

妖精的绣舞 提交于 2021-02-10 05:14:30
问题 I have made a script that tells me the temperature of my Raspberry Pi 3, but there is a problem with the script. The result output is the bot saying "Your RPI3 temp is currently 0". What is wrong with my code? @bot.command(pass_context=True) async def vcgencmdmeasure_temp(ctx): if ctx.message.author.id == "412372079242117123": await bot.say("OK....") return_code = subprocess.call("vcgencmd measure_temp", shell=True) await bot.say("KK done") await bot.say("Your RPI3 temp is currently: {}"

How to capture output of subprocess.call

浪尽此生 提交于 2021-02-10 05:13:34
问题 I have made a script that tells me the temperature of my Raspberry Pi 3, but there is a problem with the script. The result output is the bot saying "Your RPI3 temp is currently 0". What is wrong with my code? @bot.command(pass_context=True) async def vcgencmdmeasure_temp(ctx): if ctx.message.author.id == "412372079242117123": await bot.say("OK....") return_code = subprocess.call("vcgencmd measure_temp", shell=True) await bot.say("KK done") await bot.say("Your RPI3 temp is currently: {}"

QT5 Bluetooth - scanning at regular intervals freezes the program

自作多情 提交于 2021-02-08 07:32:40
问题 I am currently using QT5 (c++) for implementing a bluetooth scanner which searches for all available devices in detection range. The program is running on a Raspberry PI 3, without a GUI (command line only). The routine seems to work fine at first (3+ hours without issues). Then, after a seemingly random amount of repetitions, the bluetooth search doesn't find any device, even if they are physically there. After this happens, the program doesn't respond to system signals anymore, the program