Skip to content

erguotou520/home-air-health-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

说明

pi

生产环境添加PYTHON_ENV = production的环境变量 新建config.py文件,配置如下

config = {
  'server': {
    'host': "0.0.0.0",
    'port': 5555
  },
  'leancloud': {
    'appid': "xxx",
    'appkey': "xxx"
  }
}

部署代码

scp -r pi [email protected]:/home/pi/Desktop

开机启动

使用sudo安装依赖sudo pip install -r requirements.txt

  1. 修改/etc/rc.local文件,加入python xxx/app.py &
  2. /usr/lib/systemd/system/目录添加monitor.py,然后sudo systemctl enable monitor加入开机启动

app/home_air

新建lib/config.dart文件,配置如下

const APP_ID = 'xxx';
const APP_KEY = 'xxx';

hooks

LeanCloud的云函数,共2个

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published