raspbian

java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters when using national characters

心已入冬 提交于 2019-12-08 16:23:03
问题 I'm trying to create some directories which have national symbols like "äöü" etc. Unfortunately I'm getting this exception whenever that is being attempted: java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: /home/pi/myFolder/löwen at sun.nio.fs.UnixPath.encode(UnixPath.java:147) at sun.nio.fs.UnixPath.<init>(UnixPath.java:71) at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281) at java.nio.file.Paths.get(Paths.java:84) at org.someone

Python script too much cpu usage

ⅰ亾dé卋堺 提交于 2019-12-08 11:54:10
问题 I'm not an expert in programming so i googled a lot to get this script to work. It listens on the serial interface ans is searching for 3 values (temperature, humidity and battery level). If it finds one of zhem it saves it to a text file and checks if the value is above or under a certain level. I f this is the case it sends an e-mail to warn. My problem is that it uses constatntly about 99% of cpu power... Can you help me to limit the CPU usage to a minimum. Thanks #!/usr/bin/env python # -

Find MAC Addresses of devices in range of Wifi router

China☆狼群 提交于 2019-12-08 07:54:01
问题 I'm currently working on a raspberry pi project that would require the wifi dongle (Realtek RTL8188CUS) to obtain the MAC addresses of nearby devices that have not connected to it. I had originally thought of doing this through tcpdump but those logs only seem to display the info of devices connected to the wifi network. So what I'm trying to figure out is: how to receive a log or list of MAC addresses within range of the network but are not connected to it. 回答1: I guess you need the wifi

Run Script on Startup with Raspbian Jessi Wheezy and Raspberry Pi2b [closed]

*爱你&永不变心* 提交于 2019-12-08 07:52:51
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I know there are lots of posts on this topic, but depite working through many many many of them I cant get this working. I have a raspberry pi2b with raspbian jessie wheezy. I want to run this framebuffer command automatically on startup: sudo /usr/bin/fbi -T 1 -t 1 -1 -a -noverbose /home/pi/Pictures/*.jpg I

Raspbian hangs in qemu

你。 提交于 2019-12-08 06:07:03
问题 i'm running raspbian (2015-05-05-raspbian-wheezy.img) in qemu using compiled kernel (https://github.com/dhruvvyas90/qemu-rpi-kernel) on ubuntu 14.04. my final goal is to launch my python script within the emulation. i'm following manual from http://www.unixmen.com/emulating-raspbian-using-qemu/, though many others suggest very similar sequence of actions. things i'm trying and issues i'm experiencing: first boot is more or less ok. i comment the line in /etc/ld.so.preload as suggested and

Socket programming with usbcam using python 3.4 opencv 3.2

你。 提交于 2019-12-08 03:43:29
问题 I am doing a project that needs to live stream the video at the client side using USB webcam at the server side. I am using ( Opencv 3.2.0 + python 3.4.3 ). The below given code works fine, I want to know how this code actually works and how it is transferring the frames to the client. There is a delay in this code, and how to overcome that delay. I tried to set resolution but it gives error at the client side like ( [Error]: total size of new array must be unchanged ).when i set it to

how i can do a crontab as user on raspbian?

♀尐吖头ヾ 提交于 2019-12-07 21:52:52
问题 I'm on a raspberry pi, with rasbpian ! I'm trying to install a new crontab for execute an basic script. This one will take a picture from webcam with vlc. I want to do this every minute but i can't edit my crontab user (crontab -e), only the sudo crontab... Or vlc must do execute without root ! pi@raspberrypi ~ $ crontab -e crontabs/pi/: fdopen: Permission denied Every body know how i can do ? This is my script : #!/bin/bash cvlc -I dummy v4l2:///dev/video0 --video-filter scene --no-audio -

Running Shell Script after boot on Raspberry PI

假装没事ソ 提交于 2019-12-07 16:45:29
问题 I'm making a web kiosk display board using a raspberry pi and I want to send some key strokes to the browser window 2 minutes after it's loaded. The script sends the logon details for a webserver. I've got a script that sends the keystrokes which works fine from the telnet console: #!/usr/bash username="username" password="password" echo "Setting Display" export DISPLAY=:0 echo "Sending Username" for char in $(sed -E s/'(.)'/'\1 '/g <<<"$username"); do xdotool key $char done xdotool key Tab

Which library needed to satisfy #include <linux/videodev.h>

人盡茶涼 提交于 2019-12-07 16:31:24
问题 I'm trying to compile uvccapture on the Raspberry Pi running Raspbian Wheezy. What package do I need to install so gcc/make can satisfy this include? #include <linux/videodev.h> 回答1: sudo apt-get install libv4l-dev maybe you will need also: cd /usr/include/linux sudo ln -s ../libv4l1-videodev.h videodev.h 来源: https://stackoverflow.com/questions/15694753/which-library-needed-to-satisfy-include-linux-videodev-h

How to terminate threads cleanly in C?

南笙酒味 提交于 2019-12-07 14:01:23
问题 I am trying to write a multithreaded application in C for the Raspberry Pi in raspbian environment (UNIX system). Apart from the main thread three other threads are created and do the following: the first looks at the output of a PIR sensor and if movement is detected it takes a picture. The thread function is task1() ; the second uses sigwait and alarm() to measure the temperature every given seconds. The thread function is task2() The third thread checks if a new picture is taken and if so