Git Product home page Git Product logo

thp's Introduction

WS-USB01-THP data read library for using golang

The "thp" is WS-USB01-THP data read library with using PlanexCloud. You can get clearly JSON data with this.

how to build example

$ go build example/thp.go

how to use example

You have to get device's MAC address and TOKEN on Planex web site at first.

$ DOCODEMO_MAC="xx:yy:zz:mm:nn:oo" DOCODEMO_TOKEN="xxxxxxx" ./thp

example output:

[{"date":"2019-05-3102:18:02","thermal":28.18,"humidity":51.63,"pressure":1011.6},{"date":"2019-05-3102:18:25","thermal":28.18,"humidity":51.54,"pressure":1011.83},{"date":"2019-05-3102:18:48","thermal":28.18,"humidity":51.57,"pressure":1011.36},{"date":"2019-05-3102:19:10","thermal":28.18,"humidity":51.64,"pressure":1011.6},{"date":"2019-05-3102:19:34","thermal":28.18,"humidity":51.67,"pressure":1011.6},{"date":"2019-05-3102:19:56","thermal":28.18,"humidity":51.59,"pressure":1011.6},{"date":"2019-05-3102:20:20","thermal":28.18,"humidity":51.58,"pressure":1011.13},{"date":"2019-05-3102:20:43","thermal":28.18,"humidity":51.55,"pressure":1011.36},{"date":"2019-05-3102:21:06","thermal":28.15,"humidity":51.65,"pressure":1011.52},{"date":"2019-05-3102:21:28","thermal":28.15,"humidity":51.61,"pressure":1011.29},{"date":"2019-05-3102:21:51","thermal":28.15,"humidity":51.6,"pressure":1011.75},{"date":"2019-05-3102:22:14","thermal":28.15,"humidity":51.7,"pressure":1011.75},{"date":"2019-05-3102:22:37","thermal":28.13,"humidity":51.68,"pressure":0}]

known issue

The timestamp on golang Struct from JSON is broken. It missed parsing timestamp data, I'm sure I'll fix it soon but currently, I don't need that data, so I may leave it for a while...

thp's People

Contributors

moguriso avatar

Watchers

 avatar  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.