Skip to content

Commit

Permalink
fix: use client.wait_for_server()
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 17, 2024
1 parent a67745e commit 9bb5045
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aw_watcher_input/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ def main(testing: bool):
logging.basicConfig(level=logging.INFO)
logger.info("Starting watcher...")
client = aw_client.ActivityWatchClient("aw-watcher-input", testing=testing)
client.wait_for_start()
client.connect()

# Create bucjet
# Create bucket
bucket_name = "{}_{}".format(client.client_name, client.client_hostname)
eventtype = "os.hid.input"
client.create_bucket(bucket_name, eventtype, queued=False)
Expand Down

0 comments on commit 9bb5045

Please sign in to comment.