Comments (2)
You need to parse all 16bit values in little-endian format.
The first byte 0x30 is the sequencial number indicating the data is updated or not.
Each 16bit (little-endian) values from 2nd byte of the entire byte string shows the measurement result from each sensors.
- HEX : 0x07FB => DEC : 2043 => Temperature : 20.43 degC
- HEX : 0x1076 => DEC : 4214 => Humidity : 42.14 %RH
- HEX : 0x003A => DEC : 58 => Light : 58 lx
- HEX : 0x0002 => DEC : 2 => UVI : 0.02
- HEX : 0x2601 => DEC : 9729 => Pressure : 972.9 hPa
- HEX : 0x0DA9 => DEC : 3497 => Sound noise : 34.97 dB
- HEX : 0x1986 => DEC : 6534 => Discomfort Index : 65.34
- HEX : 0x0672 => DEC : 1650 => Heat Stroke Risk : 16.50
- HEX : 0x0B65 => DEC : 2917 => Battery Voltage : 2917 mV = 2.917 V
from envsensor-observer-py.
Hey, I got it. Thanks. With the way Javascript did all the conversions and everything I just had to remove a loop and manually parsed the byte string then formatted and did the math that way.
from envsensor-observer-py.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from envsensor-observer-py.