Hello.
First off, thanks to the maintainers for the very cool project, It’s helped me understand my habits.
I’m messing around, and grabbed a copy of the Python aw-client and:
- Ran the cli
aw-client buckets
- Attempted to experiment in the Python REPL:
from aw_client import ActivityWatchClient
from pprint import pprintaw = ActivityWatchClient()
pprint(aw.get_buckets())
Both error out with:
requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘127.0.0.1’, port=5600): Max retries exceeded with url: /api/0/buckets/ (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f21cdefa220>: Failed to establish a new connection: [Errno 111] Connection refused’))
ActivitiyWatch is running minimized in the tray, and the web-ui works fine. I was able to connect to the API and query perfectly fine by pulling up a browser console and fetch('http://localhost:5600/api/0/buckets')
.
Would appreciate any help on what I might be getting wrong