raspberry-pi

Maven project with PI4J library - error in opening zip file

前提是你 提交于 2021-01-27 07:36:49
问题 I've got quite strange problem with pi4j library to Raspberry Pi. I have Maven project in Eclipse and just added repository and dependency for pi4j like this: <repository> <id>oss-snapshots-repo</id> <name>Sonatype OSS Maven Repository</name> <url>https://oss.sonatype.org/content/groups/public</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> <dependency> <groupId>com.pi4j</groupId> <artifactId>pi4j-core</artifactId> <version>1.0-SNAPSHOT

Maven project with PI4J library - error in opening zip file

心已入冬 提交于 2021-01-27 07:36:29
问题 I've got quite strange problem with pi4j library to Raspberry Pi. I have Maven project in Eclipse and just added repository and dependency for pi4j like this: <repository> <id>oss-snapshots-repo</id> <name>Sonatype OSS Maven Repository</name> <url>https://oss.sonatype.org/content/groups/public</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> <dependency> <groupId>com.pi4j</groupId> <artifactId>pi4j-core</artifactId> <version>1.0-SNAPSHOT

Maven project with PI4J library - error in opening zip file

那年仲夏 提交于 2021-01-27 07:36:28
问题 I've got quite strange problem with pi4j library to Raspberry Pi. I have Maven project in Eclipse and just added repository and dependency for pi4j like this: <repository> <id>oss-snapshots-repo</id> <name>Sonatype OSS Maven Repository</name> <url>https://oss.sonatype.org/content/groups/public</url> <snapshots> <enabled>true</enabled> <updatePolicy>always</updatePolicy> </snapshots> </repository> <dependency> <groupId>com.pi4j</groupId> <artifactId>pi4j-core</artifactId> <version>1.0-SNAPSHOT

std::atomic<bool> lock-free inconsistency on ARM (raspberry pi 3)

时间秒杀一切 提交于 2021-01-27 07:01:34
问题 I had a problem with a static assert. The static assert was exactly like this: static_assert(std::atomic<bool>::is_always_lock_free); and the code failed on Raspberry Pi 3 (Linux raspberrypi 4.19.118-v7+ #1311 SMP Mon Apr 27 14:21:24 BST 2020 armv7l GNU/Linux). On the cppreference.com atomic::is_always_lock_free reference site it is stated that: Equals true if this atomic type is always lock-free and false if it is never or sometimes lock-free. The value of this constant is consistent with

Python socket error when sending an image.Can't decode byte / Unexpected EOF

南笙酒味 提交于 2021-01-13 09:37:25
问题 I am using a python socket to transfer images from my Laptop's camera (Client) to my raspberry pi (Server). Here is how it goes, I connect to the socket and then my client waits for a signal in order to take a photo. When the signal (from my server) is sent, my client takes a photo and sends the following data in order; First the length of the number representing the size of the picture (e.g. for 10000 bytes the number is 5, for 100000 bytes the number is 6 and so on), then sends the actual

volttron read BACnet points to message bus

妖精的绣舞 提交于 2021-01-07 06:49:05
问题 I am setting up a rasp pi on a test bench with a MSTP BACnet controller with 2 temp sensors. How can I continuously read/publish these sensor readings to the VOLTTRON message bus? RPi->ethernet->router->mstpdevice I think I am missing some initial step with how to view VOLTTRON log file in the pi terminal. Is it possible to view through SSH the pi terminal and the tail of the VOLTTRON .log/message bus? I have volttron setup and running on the pi, with running python3 bacnet_scan.py I can see

Timestamp out of range for platform on 32bit system

泪湿孤枕 提交于 2021-01-07 02:52:06
问题 I'm trying to run a script I wrote on my Raspberry Pi Zero, but I keep getting the error OverflowError: timestamp out of range for platform time_t . I'm relatively certain it's something with the 32-bit ARM architecture of the pi, but I can't seem to figure out a workaround. Here's the traceback: File "twitter.py", line 37, in <module> t.run.Search(c) File "/home/pi/.local/lib/python3.7/site-packages/twint/run.py", line 288, in Search run(config, callback) File "/home/pi/.local/lib/python3.7

Using Python to playback mic input to PC in real-time

泄露秘密 提交于 2021-01-07 02:48:02
问题 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. So: Is there a way to eradicate that latency with

Using Python to playback mic input to PC in real-time

邮差的信 提交于 2021-01-07 02:46: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. So: Is there a way to eradicate that latency with

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

时光怂恿深爱的人放手 提交于 2021-01-07 02:41:07
问题 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 =