Nekmo / amazon-dash

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

Upgraded dist, service running but will not act on press unless in debug #170

Open 88gts opened 3 years ago

88gts commented 3 years ago

What is the purpose of your issue?

Guideline for bug reports

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

Description

After a dist upgrade, I can get my config to work only as debug.

[pi@pigts3:/var/www/scripts/pump $ sudo amazon-dash --debug run --config /etc/amazon-dash.yml 
Welcome to Amazon-dash v1.4.0 using Python 3.7.3
December 31 is the last day to block requests from your Amazon-dash buttons to Amazon servers. In 2020 your buttons can be bricked in an update from Amazon servers.
Listening for events. Amazon-dash will execute the events associated with the registered buttons.
2021-02-16 09:41:47,914 - amazon-dash - DEBUG   - Desk device executed (mac fc:a6:67:28:b9:c7)
2021-02-16 09:42:11,465 - amazon-dash - DEBUG   - Desk device executed (mac fc:a6:67:28:b9:c7)]

Service is currently running, but does not recognize/act on the button presses unless I have debug running in parallel.

pi@pigts3:/var/www/scripts/pump $ ps aux | grep amazon-dash
root       486  0.2  1.5  38700 29884 ?        Ss   09:33   0:01 /usr/bin/python3 /usr/local/bin/amazon-dash run --config /etc/amazon-dash.yml
pi@pigts3:/var/www/scripts/pump $ sudo systemctl status amazon-dash
● amazon-dash.service - Amazon Dash service
   Loaded: loaded (/usr/lib/systemd/system/amazon-dash.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2021-02-16 09:33:14 PST; 13min ago
 Main PID: 486 (amazon-dash)
    Tasks: 1 (limit: 3860)
   CGroup: /system.slice/amazon-dash.service
           └─486 /usr/bin/python3 /usr/local/bin/amazon-dash run --config /etc/amazon-dash.yml

Feb 16 09:33:14 pigts3 systemd[1]: Started Amazon Dash service.
Feb 16 09:33:16 pigts3 env[486]: Welcome to Amazon-dash v1.4.0 using Python 3.7.3
Feb 16 09:33:16 pigts3 env[486]: December 31 is the last day to block requests from your Amazon-dash buttons to Amazon servers. In 2020 your buttons can be bricked in an update from Amazon 
Feb 16 09:33:16 pigts3 env[486]: Listening for events. Amazon-dash will execute the events associated with the registered buttons.
88gts commented 3 years ago

Tried to pip3 uninstall and reinstall, but it still did not work (is there a force option?)

Nekmo commented 3 years ago

Do actions work with debugger open?