Nekmo / amazon-dash

Hack your Amazon Dash to run what you want.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

88gts opened this issue · comments

commented

What is the purpose of your issue?

  • Bug report (encountered problems with amazon-dash)

Guideline for bug reports

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

  • amazon-dash version: v 1.4.0
  • Python version: 3.7.3
  • Pip & Setuptools version: 18.1
  • Operating System: Raspbian Buster
  • The pip install or setup install command has been completed without errors
  • The python -m amazon_dash.install command has been completed without errors
  • The amazon-dash discovery command works without errors
  • I have created/edited the configuration file
  • Amazon-dash service or amazon-dash --debug run works

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.
commented

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

commented

Do actions work with debugger open?