# webhjfx **Repository Path**: cd-maya/webhjfx ## Basic Information - **Project Name**: webhjfx - **Description**: 针对环境监测的数据进行分析,计算每时段、每日、每月的均值数据和曲线,以及对监测站点进行数据对比分析。 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2020-02-24 - **Last Updated**: 2025-12-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: 环境分析, 环保监测 ## README ### **环境数据在线分析系统** #### 介绍 针对环境监测的数据进行分析,计算每时段、每日、每月的均值数据和曲线,以及对监测站点进行数据对比分析。 #### 内置功能 1.监测站管理:对监测站信息进行管理。 2.监测站原始数据:对监测站的原始数据进行管理。 3.时段均值数据:计算和查询各监测站的每时段均值数据。 4.每时段月均值数据:计算和查询各监测站的每时段月均值数据。 5.每日均值数据:计算和查询各监测站的每日均值数据。 6.每月均值数据:计算和查询各监测站的每月均值数据。 7.各指标指定时段日期曲线:显示某些监测站的某些监测指标在一段时期的在某个指定时段的按时段平均值数据 8.各指标长期连续曲线:显示某些监测站的某些监测指标在一段时期内的按时段平均值数据(时段从00-23) 9.每时段日均值曲线:显示某些监测站在某几天的某些时段范围内的某些监测指标的时段按日平均值数据 10.每时段月均值曲线:显示某些监测站在某个月的某些时段范围内的某些监测指标的时段按月平均值数据 11.日均值曲线:显示某些监测站在一段日期内的某些监测指标的日平均值数据 12.月均值曲线:显示某些监测站在一段日期内的某些监测指标的月平均值数据 #### 安装教程 1. 安装PostgreSQL数据库,创建数据库hjfx,从sql目录中恢复备份文件hjfx.backup。在config/settings.py文件中,修改数据库访问账号和密码。 ```python db = web.database(dbn='postgres', user='hjfx', pw='35836208', db='hjfx') ``` 2. 安装python2环境和pip2。 ```shell curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py sudo python get-pip.py ``` 2. 安装所需的库文件。 ```shell sudo pip install psutil==5.6.1 sudo pip install psycopg2-binary=2.8.6 sudo pip install pyasn1==0.4.5 sudo pip install rsa==4.0 sudo pip install web.py==0.38 ``` 3. 运行程序,打开网址进行登录http://localhost:8080 ```shell python app.py ``` #### 演示图 ![login](https://gitee.com/cd-maya/webhjfx/raw/master/snapshot/login.png) ![首页](https://gitee.com/cd-maya/webhjfx/raw/master/snapshot/index.png) ![](https://gitee.com/cd-maya/webhjfx/raw/master/snapshot/%E6%97%A5%E5%9D%87%E5%80%BC%E6%9B%B2%E7%BA%BF.png) ##### 联系我 QQ:35836208