Plugin 64, APDS 9960, which "Collection"?
Moderators: grovkillen, Stuntteam, TD-er
Plugin 64, APDS 9960, which "Collection"?
There are Collections A through G and the respective compiled binaries. The plugin I am interested in, P 64, Gesture APDS9960, only shows as status "Collection" without any letter. Does this mean it isn't included in any binary and I need to compile it myself?
Re: Plugin 64, APDS 9960, which "Collection"?
The 'Collection' label implies it is included in ALL Collection builds, A..G. ![Knipoog ;)](./images/smilies/icon_e_wink.gif)
The same is that all 'Normal' labeled plugins are included in all Collection builds.
![Knipoog ;)](./images/smilies/icon_e_wink.gif)
The same is that all 'Normal' labeled plugins are included in all Collection builds.
/Ton (PayPal.me)
Re: Plugin 64, APDS 9960, which "Collection"?
That's nice and helpful. Thank you!
-
- Normal user
- Posts: 125
- Joined: 28 Feb 2018, 07:40
- Location: Melbourne, Australia
Re: Plugin 64, APDS 9960, which "Collection"?
Let me know if it will work for you as I briefly tried it the other day, but it would not enable the for me using the "G" collection and the two most recent firmware versions for the ESP8266.
Friends with kangaroos and some time koala rescuer.
Re: Plugin 64, APDS 9960, which "Collection"?
I can confirm it works for me. Initially, it didn't but what do you expect when you forget to hook up GND, duh. The lesson I learned is that I2C modules can be discovered even without the GND pin being connected.
Re: Plugin 64, APDS 9960, which "Collection"?
It can, but if it is powered from a different power supply, it can also damage your ESP or your I2C sensor.
Re: Plugin 64, APDS 9960, which "Collection"?
I've even seen a sensor being recognized with SCL and SDA swapped...
![Geschokt :shock:](./images/smilies/icon_eek.gif)
/Ton (PayPal.me)
Re: Plugin 64, APDS 9960, which "Collection"?
@whatsupskip, here's an observation I made. I had to uncheck "Single event with all values" and set an interval for the plugin to get varying values for light and proximity. I now get different values with each interval and additionally when a gesture is being detected.
-
- Normal user
- Posts: 125
- Joined: 28 Feb 2018, 07:40
- Location: Melbourne, Australia
Re: Plugin 64, APDS 9960, which "Collection"?
Thanks I will try those settings and see if that fixes it.
Friends with kangaroos and some time koala rescuer.
Re: Plugin 64, APDS 9960, which "Collection"?
This is cursed. I have to retract/correct that. When I set an interval the last registered gesture will be repeated with the interval. In sum, if I want gestures I have to disable intervals and get the unchanged light and proximity values published with each new gesture. When I want light and proximity I need to set an interval and have to ignore the gesture information.oisisi wrote: ↑27 Mar 2024, 06:32 @whatsupskip, here's an observation I made. I had to uncheck "Single event with all values" and set an interval for the plugin to get varying values for light and proximity. I now get different values with each interval and additionally when a gesture is being detected.
Re: Plugin 64, APDS 9960, which "Collection"?
@oisisi, I've resolved your complaints in a new PR #5016. The build is running in this GH Actions run, can you please test if this resolves your issue? You'll need to have a Github account to be able to download (creating an account is free, if you don't have one yet).oisisi wrote: ↑28 Mar 2024, 18:16 This is cursed. I have to retract/correct that. When I set an interval the last registered gesture will be repeated with the interval. In sum, if I want gestures I have to disable intervals and get the unchanged light and proximity values published with each new gesture. When I want light and proximity I need to set an interval and have to ignore the gesture information.
Once installed, you should enable the "Separate Gesture events" option in the plugin settings, and change your event handler (Rules) from On <taskname>#Gesture Do to On <taskname>#Swipe Do (For backward compatibility I added a new event, so for existing users all works as it was.) Though this might be the better use-case for this plugin
![Cool 8-)](./images/smilies/icon_cool.gif)
Also, gestures are processed when measuring R/G/B Colors, making it all in all more versatile.
/Ton (PayPal.me)
Re: Plugin 64, APDS 9960, which "Collection"?
Thanks Ath, that wasn't necessary, thank you. I'll wait for the workflow to complete and will flash my board again. I sent a small donation your way.
Re: Plugin 64, APDS 9960, which "Collection"?
Yes. I have a working rule that publishes on 'gesture#Swipe'. Additionally, for testing, I publish Light/Proximity/Gesture values every 10 seconds via the regular controller settings. Values for all parameters are being published every ten seconds. The last detected gesture number is being repeated.
I assume that "0" relates to a specific gesture and does not mean 'no gesture'.
Re: Plugin 64, APDS 9960, which "Collection"?
That's how a Controller publish works, every Interval all values are published. We don't have a mechanism to select what values to publish. But you can now rename it and ignore it on the receiving side.oisisi wrote: ↑08 Apr 2024, 11:47 Yes. I have a working rule that publishes on 'gesture#Swipe'. Additionally, for testing, I publish Light/Proximity/Gesture values every 10 seconds via the regular controller settings. Values for all parameters are being published every ten seconds. The last detected gesture number is being repeated.
According to the documentation 0 = None, so your rule can use an "if" check if you want to ignore that
![Lach :)](./images/smilies/icon_e_smile.gif)
Edit: Link to the updated documentation (pull request)
/Ton (PayPal.me)
Re: Plugin 64, APDS 9960, which "Collection"?
The updated documentation is very helpful, thanks. I am actually getting 0s as gesture info (from event "<device name>#Swipe").
Edit: It looks like I get a '0' where I should be getting a '5' ("Near (towards the sensor)").
Edit: I also get a '0' for unclear gestures. Perhaps my sensor is broken or I need to tweak the calibration.
Edit: It looks like I get a '0' where I should be getting a '5' ("Near (towards the sensor)").
Edit: I also get a '0' for unclear gestures. Perhaps my sensor is broken or I need to tweak the calibration.
Who is online
Users browsing this forum: No registered users and 28 guests