omronmicrodevices / envsensor-observer-py Goto Github PK
View Code? Open in Web Editor NEWPython Bluetooth low energy observer example for OMRON Environment Sensor (2JCIE-BL01)
Python Bluetooth low energy observer example for OMRON Environment Sensor (2JCIE-BL01)
Hey guys,
So I'm rewriting this for nodejs and instead of getting the advertising events, I'm literally just reading the last values bytes.
Below is the print out of what my code is giving.
Found UUID. #This is the 0c4c3000 UUID
Found child UUID. #This is the 0c4c3001 UUID
30fb0776103a0002000126a90d86197206650b #This is the entire byte string that I am getting back from all 19 bytes)
Skipping byte. #This is the first byte, which as far as I could tell from your communications manual isn't used for anything on the reading side, right?
Hex: fb7 #This is byte 1 and 2 (for temp) converted to signed (removed the 0)
Int: 4023 #This is the value converted from Hex to Decimal. This converted to Fahrenheit is 104.4 degrees in an air conditioned lab.
Hex: 7610 #For humidity
Int: 30224 #I'm guessing that whatever the number is, only use the first 4? 30.22% humidity does sound right.
Hex: 3a0
Int: 928 #This is for lx. In the communication manual it says it's .01 in its readings. In a number like this, it seems more likely that it is 92.8 lx, is this a situation where code shouldn't have removed one of the two zeroes?
Hex: 20
Int: 32 # It's indoors, .32 UV sounds fine.
Hex: 126
Int: 294 # It should be around 8000 hPa to be around 25 in mercury.
Hex: a9d
Int: 2717 # 27.17 dB is probably right
Hex: 8619
Int: 34329 # Again omit the 5 character? 34.32 discomfort index?
Hex: 726
Int: 1830 # 18.3 * C in heatstroke.
Hex: 650b # Kept the leading edge 0 as it's unsigned
Int: 25867 # 2.586 Volts sounds right.
So, I get some strange readings with some seemingly accurate readings, but the one that bothers me the most is the temperature. Am I doing the conversions correctly? Take the bytes and convert directly to decimal using 16 bit?
Hi everyone,
I want to check the env sensor with raspberry pi 3 like you did. But I'm stuck at how to configure the env sensor as a beacon broadcaster (IM/EP? You noticed this on readme as;
Environment Sensor (2JCIE-BL01) must be configured as a beacon broadcaster (IM/EP).
Is there any configuration tool or something to achieve this?
Thanks,
Emir
Are you guys active on here? I'm throwing an error on this line:
ncmd, opcode = struct.unpack("<BH", pkt[:3])
With this error:
error: unpack requires a string argument of length 3
Do you know what could be causing this?
Temperature (degC),Humidity (%%RH),
Discomfort Index,Heat Stroke Risk,
27.16,43.39,
73.76,22.2,
While dimensionless, I can find no details of what turns 27'C 43%RH
into DI 73.76 or HSR 22.2
There does not appear to be any documentation on this.
What reference was used to generate these values?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.