Git Product home page Git Product logo

airnow's Introduction

Airnow

一个读取DIY空气检测仪串口数据的Python客户端和一个可Web、手机访问的实时展示界面的Socket.io服务端


首先,你需要一个DIY的空气质量检测仪,这个在淘宝上能买到(我买的这个)。当然你还需要确认一下检测仪用USB线连接上电脑后,生成的串口设备能读出数据来,这个可能需要跟卖检测仪的店主要一下驱动程序(一般是Windows的),然后下载一个串口监测软件来测试一下。

其次,你需要一台24小时开机的电脑来提供读取服务和Web服务,当然两台也是可以的,毕竟客户端和服务器端是可以分开的……

再次,你的电脑最好有一个互联网能够访问的域名,有很多动态域名服务可以帮你做到这点,例如dnspod,且在你的出口路由器上把8000端口(缺省是这个,你也可以改代码换端口)映射到服务端。

然后,你就可以把检测仪接入电脑,运行客户端程序和服务端程序,然后用手机远程访问实时的空气质量数据界面了。

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.