Code Monkey home page Code Monkey logo

flask-dlt645's Introduction

介绍

DLT645 批量抄表
基于: meter-dlt645

运行

编辑lib/conf.py:COM口、电表通信地址等

Docker

./docker_run.sh # 可修改`custom_config`值自定义conf.py位置
docker exec flask-dlt645 bash -c "cd /app && echo y | ./push_to_influxdb.sh"

手动

pip -r requirements.txt
./start_web.sh

写入InfluxDB数据库(可选)

  1. 编辑以上conf文件
./push_to_influxdb.sh # 发送当前度数
  1. 生成报表

     from(bucket: "YOUR_BUCKET_NAME")
       |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
       |> filter(fn: (r) => r["_measurement"] == "度数")
       |> filter(fn: (r) => r["_field"] == "当前")
     |> difference()
    

使用Jupyter分析数据:https://nbviewer.jupyter.org/github/fzinfz/ipynb/tree/main/python/DB/influxdb-client.ipynb

作为库使用

Demo:多表 | 单表

参考资料

说明书范例:威胜
液晶全屏及显示说明: 第9页

flask-dlt645's People

Contributors

fzinfz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.