fixed issues of markdown in README files
parent
7766723f60
commit
bbbc93acda
|
@ -272,11 +272,11 @@ docker-compose up -d
|
||||||
|
|
||||||
## MyEMS镜像
|
## MyEMS镜像
|
||||||
|
|
||||||
[1]. [http://github.com/MyEMS/myems](http://github.com/MyEMS/myems)
|
[1]. [https://github.com/MyEMS/myems](https://github.com/MyEMS/myems)
|
||||||
|
|
||||||
[2]. [http://gitee.com/myems/myems](http://gitee.com/myems/myems)
|
[2]. [https://gitee.com/myems/myems](https://gitee.com/myems/myems)
|
||||||
|
|
||||||
[3]. [http://bitbucket.org/myems/myems](http://bitbucket.org/myems/myems)
|
[3]. [https://bitbucket.org/myems/myems](https://bitbucket.org/myems/myems)
|
||||||
|
|
||||||
[4]. [https://gitlab.com/myems/myems](https://gitlab.com/myems/myems)
|
[4]. [https://gitlab.com/myems/myems](https://gitlab.com/myems/myems)
|
||||||
|
|
||||||
|
|
|
@ -274,11 +274,11 @@ docker-compose up -d
|
||||||
|
|
||||||
## MyEMS Spiegel
|
## MyEMS Spiegel
|
||||||
|
|
||||||
[1]. [http://github.com/MyEMS/myems](http://github.com/MyEMS/myems)
|
[1]. [https://github.com/MyEMS/myems](https://github.com/MyEMS/myems)
|
||||||
|
|
||||||
[2]. [http://gitee.com/myems/myems](http://gitee.com/myems/myems)
|
[2]. [https://gitee.com/myems/myems](https://gitee.com/myems/myems)
|
||||||
|
|
||||||
[3]. [http://bitbucket.org/myems/myems](http://bitbucket.org/myems/myems)
|
[3]. [https://bitbucket.org/myems/myems](https://bitbucket.org/myems/myems)
|
||||||
|
|
||||||
[4]. [https://gitlab.com/myems/myems](https://gitlab.com/myems/myems)
|
[4]. [https://gitlab.com/myems/myems](https://gitlab.com/myems/myems)
|
||||||
|
|
||||||
|
|
|
@ -274,11 +274,11 @@ docker-compose up -d
|
||||||
|
|
||||||
## MyEMS Mirrors
|
## MyEMS Mirrors
|
||||||
|
|
||||||
[1]. [http://github.com/MyEMS/myems](http://github.com/MyEMS/myems)
|
[1]. [https://github.com/MyEMS/myems](https://github.com/MyEMS/myems)
|
||||||
|
|
||||||
[2]. [http://gitee.com/myems/myems](http://gitee.com/myems/myems)
|
[2]. [https://gitee.com/myems/myems](https://gitee.com/myems/myems)
|
||||||
|
|
||||||
[3]. [http://bitbucket.org/myems/myems](http://bitbucket.org/myems/myems)
|
[3]. [https://bitbucket.org/myems/myems](https://bitbucket.org/myems/myems)
|
||||||
|
|
||||||
[4]. [https://gitlab.com/myems/myems](https://gitlab.com/myems/myems)
|
[4]. [https://gitlab.com/myems/myems](https://gitlab.com/myems/myems)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
|
|
||||||
Providing database schema and scripts for MyEMS.
|
Providing database schema and scripts for MyEMS.
|
||||||
|
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
[MySQL 8.0 or later](https://www.mysql.com/)
|
[MySQL 8.0 or later](https://www.mysql.com/)
|
||||||
|
|
||||||
|
@ -12,7 +11,6 @@ Providing database schema and scripts for MyEMS.
|
||||||
|
|
||||||
or [SingleStore 7.0 or later](https://www.singlestore.com/) (highly recommended)
|
or [SingleStore 7.0 or later](https://www.singlestore.com/) (highly recommended)
|
||||||
|
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
Execute the following scripts in MySQL commandline, or execute in other MySQL client tools such as MySQL Workbench, Navicat, DBaver, phpMyAdmin, etc.
|
Execute the following scripts in MySQL commandline, or execute in other MySQL client tools such as MySQL Workbench, Navicat, DBaver, phpMyAdmin, etc.
|
||||||
|
|
|
@ -1144,7 +1144,7 @@ $ curl -i -X GET {{base_url}}/offlinemeterfiles
|
||||||
$ curl -i -X DELETE {{base_url}}/offlinemeterfiles/{id}
|
$ curl -i -X DELETE {{base_url}}/offlinemeterfiles/{id}
|
||||||
```
|
```
|
||||||
* POST Upload an Offline Meter File
|
* POST Upload an Offline Meter File
|
||||||
(user must login first to get cookie)
|
(user must log in first to get cookie)
|
||||||
```bash
|
```bash
|
||||||
$ curl -i -H "Content-Type: application/TBD" -X POST -d 'file: (binary)' {{base_url}}/offlinemeterfiles
|
$ curl -i -H "Content-Type: application/TBD" -X POST -d 'file: (binary)' {{base_url}}/offlinemeterfiles
|
||||||
```
|
```
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
## macOS(v11.2.1)
|
## macOS(v11.2.1)
|
||||||
|
|
||||||
#### 1.Python
|
### 1.Python
|
||||||
|
|
||||||
MyEMS要求Python版本在3.5+,这里用brew来安装最新别的`Python3.9`版本,不过要先安装`Xcode Command Line Tools`,否则安装python会报错。
|
MyEMS要求Python版本在3.5+,这里用brew来安装最新别的`Python3.9`版本,不过要先安装`Xcode Command Line Tools`,否则安装python会报错。
|
||||||
```bash
|
```bash
|
||||||
|
@ -21,7 +21,7 @@ $echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebre
|
||||||
$source ~/.zshrc
|
$source ~/.zshrc
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 2.MySQL
|
### 2.MySQL
|
||||||
|
|
||||||
MyEMS默认使用MySQL8.0,也是采用brew来安装
|
MyEMS默认使用MySQL8.0,也是采用brew来安装
|
||||||
```shell
|
```shell
|
||||||
|
@ -82,7 +82,7 @@ mysql> show databases; // 查看数据库是否导入OK
|
||||||
13 rows in set (0.02 sec)
|
13 rows in set (0.02 sec)
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 3.部署mymes-api服务
|
### 3.部署mymes-api服务
|
||||||
安装一堆python依赖库
|
安装一堆python依赖库
|
||||||
```shell
|
```shell
|
||||||
# 安装anytree
|
# 安装anytree
|
||||||
|
@ -133,7 +133,7 @@ export PATH="/usr/local/Cellar/python@3.9/3.9.1_8/Frameworks/Python.framework/Ve
|
||||||
$ source ~/.zshrc
|
$ source ~/.zshrc
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 4.运行myems-api服务
|
### 4.运行myems-api服务
|
||||||
```shell
|
```shell
|
||||||
$ git clone https://github.com/kuuyee/myems-api.git
|
$ git clone https://github.com/kuuyee/myems-api.git
|
||||||
$ cd myems-api
|
$ cd myems-api
|
||||||
|
@ -146,7 +146,7 @@ $ gunicorn -b 127.0.0.1:8000 app:api
|
||||||
//启动成功
|
//启动成功
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 5.验证myems-api服务
|
### 5.验证myems-api服务
|
||||||
|
|
||||||
打开浏览器访问[http://localhost:8000/version](http://localhost:8000/version)
|
打开浏览器访问[http://localhost:8000/version](http://localhost:8000/version)
|
||||||
如果看到如下输出就表示服务启动正常。
|
如果看到如下输出就表示服务启动正常。
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
## MyEMS Normalization Service 数据规范化服务
|
## MyEMS Normalization Service 数据规范化服务
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Introduction
|
### Introduction
|
||||||
|
|
||||||
This service is a component of MyEMS and it normalizes energy data in historical database.
|
This service is a component of MyEMS and it normalizes energy data in historical database.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
mysql.connector
|
mysql.connector
|
||||||
|
@ -17,7 +14,6 @@ sympy
|
||||||
|
|
||||||
openpyxl
|
openpyxl
|
||||||
|
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
Download and install MySQL Connector:
|
Download and install MySQL Connector:
|
||||||
|
|
|
@ -9,7 +9,6 @@ Node.js
|
||||||
|
|
||||||
nginx-1.18.0 or later
|
nginx-1.18.0 or later
|
||||||
|
|
||||||
|
|
||||||
## Running in Local environment
|
## Running in Local environment
|
||||||
This project is scaffolded using Create React App.
|
This project is scaffolded using Create React App.
|
||||||
|
|
||||||
|
@ -44,6 +43,7 @@ npx -v
|
||||||
|
|
||||||
* Open the “myems/web” directory with your cmd or terminal
|
* Open the “myems/web” directory with your cmd or terminal
|
||||||
* Run 'sudo npm i --unsafe-perm=true --allow-root'
|
* Run 'sudo npm i --unsafe-perm=true --allow-root'
|
||||||
|
|
||||||
This command will download all the necessary dependencies for falcon in the node_modules directory.
|
This command will download all the necessary dependencies for falcon in the node_modules directory.
|
||||||
* If you modified any scss files, then you need to compile SCSS
|
* If you modified any scss files, then you need to compile SCSS
|
||||||
Run 'sudo npm run scss' command in your project directory to compile scss.
|
Run 'sudo npm run scss' command in your project directory to compile scss.
|
||||||
|
|
Loading…
Reference in New Issue