10000 GitHub - Q-Bug4/xWash-backEnd: scnu宿舍楼洗衣机状态查询
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Q-Bug4/xWash-backEnd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

后端

环境

  • python版本 : python 3.6

  • 安装依赖 : pip install -r requirements.txt

  • mysql版本 : mysql 8.0.22

  • 建表 source xWash.sql

配置

conf.py

  • 数据库连接数据
  • 自动爬取洗衣机状态间隔

allowList

  • 允许访问的宿舍楼

xWash/back-end/conf/xxx.json(以D19示例)

  • key值格式: 宿舍楼_方向_楼层
  • name : 各个洗衣机的名字
  • belong : 洗衣机的品牌
  • location : 位置
  • qrLink : 各个洗衣机二维码数据

路由

  • /api/all : 旧端口, 用于临时调试

  • /<school>/<building> :

    • 格式 : /学校/宿舍楼
    • ex. /scnu/D19

TODO

  • /conf/allowList的格式更改为包含学校的格式
  • and so on...

About

scnu宿舍楼洗衣机状态查询

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0