Nekmo / amazon-dash

Hack your Amazon Dash to run what you want.
MIT License
828 stars 67 forks source link

First press does not work #114

Closed mcgurdan closed 5 years ago

mcgurdan commented 5 years ago

Put an x into all the boxes [ ] relevant to your issue (like this: [x])

What is the purpose of your issue?

Guideline for bug reports

You can delete this section if your report is not a bug

How to get your version:

amazon-dash --version
python --version
pip --version
easy_install --version

I was wondering if anyone else has noticed a bug in which the first press of the button of each day does not work. Instead I receive an email regarding choosing a product from Amazon Replenishment. After that it works fine, then I’ll see the issue again the next day..

Thoughts?

Nekmo commented 5 years ago

Does discovery work with the first execution of the day?

mcgurdan commented 5 years ago

I’ll check tomorrow

mcgurdan commented 5 years ago

Discovery does work. It almost seems like the wireless interface goes to sleep after a certain amount of time and then wakes up after the initial ARP request (but that one is not processed)

Nekmo commented 5 years ago

Some Wifi cards can enter energy saving mode. Maybe the drivers allow to disable this option. https://unix.stackexchange.com/questions/269661/how-to-turn-off-wireless-power-management-permanently

Another option is to use ethernet cable. It will always be more stable.

mcgurdan commented 5 years ago

Been noticing this again. I’ll attempt the driver approach.

mcgurdan commented 5 years ago

Surprised no one else gets this issue. I have this now running off eth0 and still get the same issue. First press of the day results in an email from Amazon (please complete setup for dash button). Subsequent presses work fine.

Nekmo commented 5 years ago

Thanks for your answer :)

Regards,