标签: raspberry-pi3

nginx意外结束文件,期待";" 或/ etc/nginx/sites-enabled/default中的"}":Raspbian上的20

我是nginx和Raspberry的新手.

我用nginx安装了

sudo apt-get install

那一切都很好.当我尝试重新启动nginx时问题出现了,它抛出了这个错误

nginx.service的作业失败.有关详细信息,请参阅"systemctl status ngins.service"和"journaldtl -xn"

调查后我发现问题是下一个错误:

意外的文件结束,期待";" 或/ etc/nginx/sites-enabled/default中的"}":20

我的默认文件是:

# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
## 

server {
    #listen   80; ## listen for ipv4; this line is default and implied
    #listen   [::]:80 default_server ipv6only=on; ## listen for ipv6
    listen 80;
    server_name $domain_name;
    root /var/www;
    index index.html index.htm;
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;



    # Make site accessible from http://localhost/
    server_name localhost;

    location /
Run Code Online (Sandbox Code Playgroud)

我希望你能帮帮我 :)

nginx raspbian raspberry-pi3

9
推荐指数
3
解决办法
3万
查看次数

Windows IoT和Raspberry Pi 3上的Asp .Net Core RC2

我正在尝试使用Windows IoT创建在Raspberry Pi 3上运行的Asp.Net Core RC2站点.

我找到了以下教程:https: //www.hackster.io/iddi/windows-10-iot-core-publish-asp-net-web-application-d9dcd4

但这是针对RC1的.那么RC2已经有了一个教程,有没有人这样做过?

第二个问题是,您可以在Windows IoT上调试asp.net核心站点吗?

谢谢你的帮助.

问候马库斯

windows-10-iot-core asp.net-core raspberry-pi3

9
推荐指数
1
解决办法
2430
查看次数

适用于Raspberry Pi 3的Android上的UART外设

如何在Android Things上为Raspberry Pi 3使用UART外设?

似乎默认情况下它被分配了linux控制台.

android raspberry-pi raspberry-pi3 android-things

9
推荐指数
1
解决办法
2586
查看次数

配对失败:org.bluez.Error.AlreadyExists

我正在尝试将 HC-05 蓝牙模块(连接到 Arduino Uno)连接到我的 Raspberry Pi 3,希望实现两者之间的蓝牙通信,以将数据从 Uno 发送到 Pi。

尝试使用 Bluetoothctl 配对、连接和信任 HC-05 设备对我来说似乎失败了。

[bluetooth]# power on
Changing power on succeeded
[bluetooth]# agent on
Agent registered
[bluetooth]# scan on
[CHG] Device 98:D3:31:FB:6F:F1 LegacyPairing: yes
[CHG] Device 98:D3:31:FB:6F:F1 RSSI: -43

[bluetooth]# pair 98:D3:31:FB:6F:F1
Attempting to pair with 98:D3:31:FB:6F:F1
[CHG] Device 98:D3:31:FB:6F:F1 Connected: yes
Request PIN code
[agent] Enter PIN code: 1234
[CHG] Device 98:D3:31:FB:6F:F1 Paired: yes
Pairing successful
[CHG] Device 98:D3:31:FB:6F:F1 Connected: no

[bluetooth]# connect 98:D3:31:FB:6F:F1
Attempting to connect …
Run Code Online (Sandbox Code Playgroud)

bluetooth arduino-uno raspberry-pi3

9
推荐指数
1
解决办法
6614
查看次数

检查文件是否存在,如果不存在则创建文件

我试了一下:赶上但它不起作用.我想我可以把它改成if语句,但不明白为什么这不起作用.这是我的第一个"真实"项目.我正在建立一个灌溉控制器,并创建一个灌溉时间表字典.第一个是我到目前为止的代码,第二个代码是我正在尝试的"测试".每次我运行代码时,它都会重写现有文件,当我想要它时,如果它已经存在则打开文件而不是再次写入.

# timer will first look for a saved file(dictionary) of already recorded
# irrigation times.  If no file exists it will create one.  

# irrigation timer which does scheduled irrigation as well as cyclic   irrigation for propagating plants.
# uses a lcd 1602 display
# will use up to 10 different valves

import time
import datetime
import threading
import RPi.GPIO as GPIO
from RPLCD import CharLCD # http://www.circuitbasics.com/raspberry-pi-lcd-set-up-and-programming-in-python/

GPIO.setmode(GPIO.BOARD)

# pinouts for lcd pins
lcd = CharLCD (cols=16, rows=2, …
Run Code Online (Sandbox Code Playgroud)

python python-3.x raspberry-pi raspberry-pi3

8
推荐指数
1
解决办法
6877
查看次数

如何在Raspi 3上使用libtensorflow-lite.a?

我想在Raspi上安装TensorFlow Lite.

我假设我可以先pip install为Raspi预建TensorFlow.我正在阅读这里交叉编译TensorFlow Lite的说明,但我不知道在生成之后该怎么做libtensorflow-lite.a.

tensorflow raspberry-pi3 tensorflow-lite

8
推荐指数
1
解决办法
329
查看次数

使用.Net Core在Raspberry Pi上使用蓝牙LE

我想在.NET Core中构建GATT客户端。它将部署到运行Raspbian Lite的RPi3,以控制多个BLE设备。.Net Core Framework(2.2或3预览)当前是否支持Bluetooth LE?

我知道在RPi的Windows 10 IoT上使用UWP库的替代方法,但我宁愿运行Raspbian Lite。目前是否有其他替代方案可用于此类堆栈?

.net c# bluetooth-lowenergy raspbian raspberry-pi3

8
推荐指数
1
解决办法
1747
查看次数

使用make install在Raspbian Raspberry Pi 3+中安装OpenCV 4时编译错误

`您好,我已经在Raspberry上安装了OpenCV两次。但是,由于一切都在不断发展(操作系统,库等)。这次我收到以下错误:

-- Installing: /usr/local/lib/python2.7/dist-packages/cv2/python-2.7/cv2.so
CMake Error at modules/python2/cmake_install.cmake:61 (file):
  file RPATH_CHANGE could not write new RPATH:

    /usr/local/lib

  to the file:

    /usr/local/lib/python2.7/dist-packages/cv2/python-2.7/cv2.so

  No valid ELF RPATH or RUNPATH entry exists in the file; Error reading ELF
  identification.
Call Stack (most recent call first):
  modules/cmake_install.cmake:162 (include)
  cmake_install.cmake:95 (include)


Makefile:83: recipe for target 'install' failed
make: *** [install] Error 1
Run Code Online (Sandbox Code Playgroud)

我尝试了以下脚本:

    sudo apt-get upgrade
    sudo apt-get install -y build-essential cmake pkg-config
    sudo apt-get install -y libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
    sudo apt-get install -y …
Run Code Online (Sandbox Code Playgroud)

cmake python-3.x raspbian raspberry-pi3 opencv4

8
推荐指数
1
解决办法
518
查看次数

导入错误:/lib/arm-linux-gnueabihf/libc.so.6:找不到版本“GLIBC_2.28”

我正在使用谷歌的这个教程

https://codelabs.developers.google.com/codelabs/cloud-iot-core-overview/index.html?index=..%2F..index#2

python cloudiot_pubsub_example_server.py直到遇到这个“ ”步骤,我才能够正确执行。

执行上述步骤后,我收到以下错误:

ImportError:/lib/arm-linux-gnueabihf/libc.so.6:找不到版本“GLIBC_2.28”(/home/pi/Desktop/python-docs-samples/iot/api-client/end_to_end_example/venv 需要/lib/python3.7/site-packages/grpc/_cython/cygrpc.cpython-37m-arm-linux-gnueabihf.so

我还附上了错误截图以供参考

python google-cloud-platform raspberry-pi3 raspbian-stretch

8
推荐指数
1
解决办法
2万
查看次数

我刚刚安装了 Ubuntu 20.04 LTS,默认密码是多少?

这是运行 Ubuntu 20.04 LTS 32 位(我从这里下载)的 Raspberry pi 3 b+ ,屏幕显示:

Ubuntu 20.04 ubuntu tty1

ubuntu login:
Run Code Online (Sandbox Code Playgroud)

我不能罚款用户名密码。另外,我是 Raspberry pi 和 linex 的新手。

ubuntu raspberry-pi raspberry-pi3 ubuntu-20.04

8
推荐指数
2
解决办法
5万
查看次数