diarmuid / AmazonEnviroSensors

Python module to read from the Newkiton Temperature sensor via bluetooth
GNU General Public License v3.0
1 stars 0 forks source link

Extracting more data #1

Open deesea65 opened 3 years ago

deesea65 commented 3 years ago

Hi, I have two newkiton devices and downloaded your code and got it working and it reads a single value.

The app I have on my iPhone which came with the devices allows me to download the stored data from the device as a csv file. I am trying to build a website which takes this data and creates graphs. I've got the website part working but I'm not sure how to download all the data from the device via bluetooth. I was hoping I could adapt your code to this purpose however I'm still quite new to python and not done any bluetooth programming at all.

Can you share any code that would do this or else have some advice how to go about it?

thanks

Douglas

diarmuid commented 3 years ago

HI Douglas I don't have any more information than is available in this repo. It's not great and for sure I did not figure it all out but I got enough to do what I wanted.

The programming and BLE is the easy bit. Figuring how how the device stores the data is the hard bit. I captured data using my Android phone developer settings and used the utility to drive it. Then I tried to work back from Wireshark capture. It was painful but some of the captures are checked in so maybe you can figure out more information about it than I did. https://support.honeywellaidc.com/s/article/How-to-capture-Bluetooth-traffic-from-and-to-an-Android-Device

If I was starting again, I'd buy another device. It's a really good hardware but without an API it's a struggle to use it outside of the app.

Diarmuid