-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for v2 devices #10
base: master
Are you sure you want to change the base?
Conversation
Thanks for your contribution. I'd like to integrate this but I'll need to check against my V1 first. I'll try to find a few minutes this week to get to it. |
I just remembered @hirofairlane said they have both a V1 and a V2. Maybe they have a chance to test this merge request on both? |
Hi, nevertheless I've been using this other script since a while https://github.com/mjmccans/airthings-mqtt-ha |
Great! How about now? :)
Traitor! |
I also gave the airthings-mqtt-ha project a try. I recall that I had a problem with a bluetooth dependency. I'm using archlinuxarm which seems to have left behind some deprecated bluetooth tools or libraries. This one worked with what I already had installed from getting the Airthings wave-reader code running. |
sorry for being so dumb, but I'm still trying to find the files to updsate
the code with the changes from silpertan :(
El mar, 27 jul 2021 a las 2:50, Herb Peyerl ***@***.***>)
escribió:
… Sure, I could test it in my setup anytime you need it.
Great! How about now? :)
nevertheless I've been using this other script since a while
https://github.com/mjmccans/airthings-mqtt-ha
Traitor!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGCUSEVVU6H255ARYB33CVTTZX7ERANCNFSM5A66O7JA>
.
|
Oh. That's ok. From silpertan:master |
Hi,
Sorry, but I tried to get silpertan:master to work replacing the source
files by yours and it still don't work for some reason.
How should I get it to work.I installed your code via pip
thanks bro
El jue, 29 jul 2021 a las 14:04, Herb Peyerl ***@***.***>)
escribió:
… sorry for being so dumb, but I'm still trying to find the files to updsate
the code with the changes from silpertan
Oh. That's ok. From silpertan:master
https://github.com/silpertan/airthingswave-mqtt
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGCUSEQAS2VYGDKO72P7OWDT2E7VHANCNFSM5A66O7JA>
.
|
Your airthingswave-mqtt repo was the perfect fit for my use case:
Unfortunately, I have a v2 wave. These tweaks got your code working with my v2 device (I don't have a v1 device to verify I didn't break anything). There were three main changes:
get_readings()
only took the BT connection handle, it didn't know which wave it was reading from (and hence didn't know whether it was a v1 or v2 device). So I pulled the BT connection code intoget_readings()
and instead passed in the device index.I only made the changes I needed (and I copied my changed files into an existing pip install of your package in a virtual environment), so there may be impacts elsewhere in the repo (e.g. README). If you want to take these changes, and feel like this needs more work, I may be able to invest a little more effort (either dev or v2 testing).
Also, I got this running hourly on my raspberry pi with systemd service and timer units. I could write up a description of how I did that - maybe in the wiki?