raspberry-pi

Permission denied when installing Anaconda3 on Raspberry Pi Network Attached Storage (NAS)

為{幸葍}努か 提交于 2021-01-07 02:37:58
问题 Samba I installed Raspbian Lite and Samba on my Raspberry Pi 4b. I access the Raspberry Pi from a Linux (Ubuntu 18.04.5 LTS) client. I am using bash and ufw is inactive on both machines. Below is my smb.conf file. [global] workgroup = WORKGROUP log file = /var/log/samba/log.%m max log size = 1000 logging = file panic action = /usr/share/samba/panic-action %d server role = standalone server obey pam restrictions = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat =

Python OverflowError creating date from timestamp in 32bit system

做~自己de王妃 提交于 2021-01-07 01:29:06
问题 So I am trying to do a simple conversion of a timestamp to date using python builtin datetime module in RaspberryPi4 running Debian Buster. The conversion works fine in my laptop (64bit Debian) but trows a OverflowError in Debian. The 2 examples follow. Anyone knows of a simple workaround this issue? Thank you! In 64bit Debian system: $ python3 -c "from datetime import datetime; d=datetime.fromtimestamp(int("-11486707200")); print(d.year)" 1606 In RasbberryPi (32bit) Raspbian system: $

Raspberry pi 4 controle GPIO with java

限于喜欢 提交于 2021-01-01 04:26:47
问题 I want to controle a 16*2 lcd display on my raspberry pi4 with java. The problem is that Pi4J - the solution to modify the gpios with java is not updated to pi4. Is there another solution? This error occures when I start the programm: pi@raspberrypi:~/desktop/gpio $ sudo ./start.sh <--Pi4J--> GPIO Control Example ... started. Maista Unable to determine hardware version. I see: Hardware : BCM2711 , expecting BCM2708 or BCM2709. If this is a genuine Raspberry Pi then please report this to

How to disable sleeping on Raspberry pi

为君一笑 提交于 2020-12-27 08:18:58
问题 I am working on a project similar to the one at http://www.instructables.com/id/Raspberry-Pi-Wall-Mounted-Google-Calendar/?ALLSTEPS Similarly, I need my pi to stay on constantly. I have the regular Raspbian OS installed and I am using Iceweasel browser to run a web application all day. I have tried every single one of these suggestions from this link http://www.bitpi.co/2015/02/14/prevent-raspberry-pi-from-sleeping/ Yet the pi fails to stay on longer than 10 minutes. Any help would be greatly

How do I pass a value back to this string?

大憨熊 提交于 2020-12-23 15:48:39
问题 Summary: I have a microbit connected to a rpi-zero. I coded the microbit, when A button is pressed it will then send data through uart.write to the rpi-zero. In this test, the microbit will uart.write("Test") , write a "Test" word to the rpi-zero. My ultimate goal is to use rpi-zero's BLE capabilities to act as a control device with instructions sent from microbit buttons. I found this GATT Server Code written in python for rpi. Which it ran with no problem at all. The code below will be used

Reroute analogue audio signal using Python

自作多情 提交于 2020-12-15 04:55:13
问题 I'm trying to use Python to 'mic-monitor', i.e., to playback the mic signal through the headphones in real-time, in addition to any other output signal from the PC. I can accomplish this by amending my PC's playback settings, but I want to do it with Python, so that I can program a Raspberry Pi to mic-monitor my cheap headset for the PS4. I can almost accomplish this with PyAudio or sounddevice, but there is a small but significant delay. From a previous question, I believe this is an

Reroute analogue audio signal using Python

空扰寡人 提交于 2020-12-15 04:54:28
问题 I'm trying to use Python to 'mic-monitor', i.e., to playback the mic signal through the headphones in real-time, in addition to any other output signal from the PC. I can accomplish this by amending my PC's playback settings, but I want to do it with Python, so that I can program a Raspberry Pi to mic-monitor my cheap headset for the PS4. I can almost accomplish this with PyAudio or sounddevice, but there is a small but significant delay. From a previous question, I believe this is an

Threading with python trouble (dht22)

本秂侑毒 提交于 2020-12-13 17:59:40
问题 Dealing with a smart garden setup. I am doing threading with three different functions so that if triggered I can run the lamp/pump/fan for a predetermined time. While threading with lamp and pump there is no problem. But when attempting to thread with Dht22 the program will work for a while and then throw an error of "argument must be an int, or be format of file.no()" I think the problem is due to the array format, but I don't know how to read just the temperature from the dht22 or to make

Threading with python trouble (dht22)

别说谁变了你拦得住时间么 提交于 2020-12-13 17:58:34
问题 Dealing with a smart garden setup. I am doing threading with three different functions so that if triggered I can run the lamp/pump/fan for a predetermined time. While threading with lamp and pump there is no problem. But when attempting to thread with Dht22 the program will work for a while and then throw an error of "argument must be an int, or be format of file.no()" I think the problem is due to the array format, but I don't know how to read just the temperature from the dht22 or to make

Threading with python trouble (dht22)

我们两清 提交于 2020-12-13 17:57:28
问题 Dealing with a smart garden setup. I am doing threading with three different functions so that if triggered I can run the lamp/pump/fan for a predetermined time. While threading with lamp and pump there is no problem. But when attempting to thread with Dht22 the program will work for a while and then throw an error of "argument must be an int, or be format of file.no()" I think the problem is due to the array format, but I don't know how to read just the temperature from the dht22 or to make