针对台站形变观测中经常出现的仪器故障,提出了一种基于移动式企业微信报警的新方法。对传统的依托于台站工作人员登录Web网站、查看仪器工作状态的方式进行了改进,并提供了一种可实现、可操作的设计思路和具体实现过程。该设计框架不但解决了行业内外网切割导致数据采集和报警信息无法发送的问题,还解决了长期以来台站仪器经常性网络不通、断电、死机、超量程等突发情况所导致的形变观测数据缺失和错误无法及时报警的问题。通过Python语言编程,采集实时测量数据,通过逻辑运算后将结果推送到指定的企业微信,实现仪器故障报警,以达到降低数据损失的目的。
A new method based on mobile enterprise wechat alarm is proposed for the frequent instrument failures in deformation observation of stations. The traditional way of relying on the station staff to log in to the website and check the working status of the instrument is improved, and a realizable and operable design idea and specific implementation process is provided. The design framework not only solves the problem that data collection and alarm information cannot be sent due to internal and external network cutting in the industry, but also solves the problem of missing deformation observation data and failure to alarm in time caused by frequent network faults, power failure, crash, over range and other emergencies of station instruments for a long time. Programming using Python language to collect real-time measurement data, and pushing the results to the designated enterprise WeChat after logical operation, and then the project realized the instrument fault alarm, so as to achieve the purpose of reducing data loss.
2022,43(4): 194-199 收稿日期:2021-03-30
DOI:10.3969/j.issn.1003-3246.2022.04.023
基金项目:中国地震局监测、预报、科研三结合课题(项目编号:3JH-202001093);中国地震局监测预报司震情跟踪定向工作任务(项目编号:2021010411);宁夏地震局强震危险性研究创新团队(项目编号:CX2019-4)
作者简介:李蒙亚(1991—),男,硕士研究生在读,工程师,主要从事台站前兆观测工作。E-mail:limygod2009@mail.ustc.edu.cn
参考文献:
[1] 方传极, 林苗禄, 全建军. 基于企业微信垂直摆超量程报警的设计与实现[J]. 科学技术创新, 2018, (31): 67-68.
[2] 高丙坤, 成战刚, 李倩. 基于正则表达式的信息滤除算法[J]. 现代计算机, 2008, (2): 54-55.
[3] 顾国华. 地壳形变与地震前兆探索回顾和展望[J]. 地震, 2012, 32(2): 22-30.
[4] 马士振, 林向东, 白永福, 等. 基于Django框架的两种Web地震目录分页方法[J]. 地震地磁观测与研究, 2015, 36(1): 135-139.
[5] 王庆良. 地壳形变观测在地震监测预报中的发展与应用研究[J]. 地震研究, 2018, 41(3): 343.
[6] 于满泉, 陈铁睿, 许洪波. 基于分块的网页信息解析器的研究与设计[J]. 计算机应用, 2005, 25(4): 974-976.