An open API service indexing awesome lists of open source software.

https://github.com/do1e/njucharge-backend

南哪充电后端(其实也有前端示例)
https://github.com/do1e/njucharge-backend

nanjing-university nju

Last synced: 6 months ago
JSON representation

南哪充电后端(其实也有前端示例)

Awesome Lists containing this project

README

          

# 南大充电桩状态-后端

## 使用

运行`main.py`即可,将最新状态更新到`status.json`中。

* `utils/per_station.py`用于获取每个充电站点的插座ID,一般不会更新而且需要`token`验证所以在`main.py`中注释掉了。
* `utils/per_outlet.py`可获取每个插座的状态。

`sort_outlets.py`用于读取`status.json`并按照插座剩余时间排序。

查看实例HTML:
1. 在命令行启动一个http服务器:`python -m http.server 8000`
2. 访问`http://localhost:8000/example1.html` 或 `http://localhost:8000/example2.html`