小编Sta*_*dis的帖子

基于火力的托管URL需要.html来显示页面

我正在尝试在google-fire base上托管一个网站.该index.html显示为(前)app.firebase.com,但是当我想访问的页面类似的login.html我需要键入app.firebase.com/login.htmlapp.fire-base.com/loginURL不起作用.我如何实现这一点,所以对于.html目录中的每个文件(公共),我是否需要配置firebase.json?我阅读了文档,但我可以找到任何信息.

这是我的.json

 {
      "hosting": {
        "public": "public",
        "signin": "/signin.html"

      }
    }
Run Code Online (Sandbox Code Playgroud)

html node.js firebase firebase-hosting

7
推荐指数
1
解决办法
2733
查看次数

追溯(最近的呼叫最后):Adafruit BME 280传感器

我已经成功安装了Adafruit_Gpio包,当我尝试运行adafruit提供的bme传感器的示例文件时,我收到以下错误:

  Traceback (most recent call last):
  File "/home/rpi3/Adafruit_Python_BME280/example.py", line 3, in <module>
    sensor = BME280(mode=BME280_OSAMPLE_8)
  File "/home/rpi3/Adafruit_Python_BME280/Adafruit_BME280.py", line 88, in __init__
    self._device = i2c.get_i2c_device(address, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/Adafruit_GPIO-1.0.3-py3.5.egg/Adafruit_GPIO/I2C.py", line 64, in get_i2c_device
    return Device(address, busnum, i2c_interface, **kwargs)
  File "/usr/local/lib/python3.5/dist-packages/Adafruit_GPIO-1.0.3-py3.5.egg/Adafruit_GPIO/I2C.py", line 97, in __init__
    self._bus = Adafruit_PureIO.smbus.SMBus(busnum)
  File "/usr/local/lib/python3.5/dist-packages/Adafruit_PureIO/smbus.py", line 97, in __init__
    self.open(bus)
  File "/usr/local/lib/python3.5/dist-packages/Adafruit_PureIO/smbus.py", line 122, in open
    self._device = open('/dev/i2c-{0}'.format(bus), 'r+b', buffering=0)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/i2c-1'
Run Code Online (Sandbox Code Playgroud)

我在xubuntu上为rpi-3我运行了apt-get udpate并重新启动机器都没有工作.

python linux python-3.x raspberry-pi3 adafruit

6
推荐指数
1
解决办法
385
查看次数