Comments (13)
Did you follow the instructions in the README? I notice they are a bit lacking, and could probably explain better how to configure things.
How are you opening the visualization? What does the dev tools say about the failing request?
from aw-watcher-input.
yeah, i did follow the instructions in readme
and I found that also need to install pug-cli ,in order to run the command in makefile, you may add this step into the readme
i opened the index.html file under aw-watcher-input\visualization\dist
.Is this wrong? I cant find another way because readme doesnt mention that
can you send me the built files(the packed aw-watcher-input and bundle.js), because the files i built manually using makefile dont work
thank you very much!
from aw-watcher-input.
and i cant find the graph in activites page
from aw-watcher-input.
any suggestion?
from aw-watcher-input.
Hmm, the error "Access to XMLHttpRequest at ... from origin null has been blocked" seems weird. Not sure how the origin gets set to null, maybe because you're trying to open the HTML visualization directly in your browser? (don't do that, it won't work, unless you disable CORS checks on the server entirely, but that opens a security hole)
To get the visualization to show in the Activity dashboard vis menu, you need to run a more recent version of aw-server. Either v0.12.0b1, or latest from source.
from aw-watcher-input.
i have the same issue on Version: v0.12.0b1
from aw-watcher-input.
Hmm, the error "Access to XMLHttpRequest at ... from origin null has been blocked" seems weird. Not sure how the origin gets set to null, maybe because you're trying to open the HTML visualization directly in your browser? (don't do that, it won't work, unless you disable CORS checks on the server entirely, but that opens a security hole)
To get the visualization to show in the Activity dashboard vis menu, you need to run a more recent version of aw-server. Either v0.12.0b1, or latest from source.
how can i add the visualization into the dashboard menu. can you tell me the steps and i will try. thx
from aw-watcher-input.
issue persists on Version: v0.12.1 https://s3.eu-central-1.amazonaws.com/cos-dev-attachments/ShareX/notsimon/iYwpkRkQZynbTVBL.mp4
aw-server log gives this:
2022-10-14 18:40:46 [INFO ]: Received heartbeat after pulse window, inserting as new event. (bucket: aw-watcher-input_simon-ms7b89) (aw_server.api:279)
2022-10-14 18:43:17 [INFO ]: 404 (127.0.0.1): �[33mGET /pages/aw-watcher-input/?hostname=simon-ms7b89&start=2022-09-27T00%3A00%3A00+02%3A00&end=2022-09-27T22%3A00%3A00.000Z HTTP/1.1�[0m (flask:25)
2022-10-14 18:58:04 [INFO ]: 404 (127.0.0.1): �[33mGET /api/0/buckets//events/703029 HTTP/1.1�[0m (flask:25)
from aw-watcher-input.
I just tried this watcher again, and could get it working.
Pushed a new commit with some README improvements, should clarify some things.
from aw-watcher-input.
Open issue for me as well. Error reported is: Static content: index.html of watcher: aw-watcher-input not found!
.
I did follow all the steps as described in the README.md
. Posting more info:
- npm / make installed everything properly; I launched the event logger and I can see it logs the events and save them into the db
- This is how my
/Users/xmachine/Library/Application Support/activitywatch/aw-server/aw-server.ini
looks like:
host = localhost
port = 5600
storage = peewee
cors_origins =
[server-testing]
host = localhost
port = 5666
storage = peewee
cors_origins =
[server.custom_static]
aw-watcher-input = "/Applications/ActivityWatch.app/Contents/MacOS/aw-watcher-input/visualization/dist/"
index.html
is inside thedist
folder
Any thoughts?
from aw-watcher-input.
@leoentersthevoid You are editing the wrong/old config file. We switched to toml config in v0.11.0 (iirc).
from aw-watcher-input.
Update
I messed up the config. After the correction, it works. Posting it here for tracking:
[server]
host = "localhost"
port = "5600"
storage = "peewee"
cors_origins = ""
[server.custom_static]
aw-watcher-input = "/Applications/ActivityWatch.app/Contents/MacOS/aw-watcher-input/visualization/dist/"
[server-testing]
host = "localhost"
port = "5666"
storage = "peewee"
cors_origins = ""
@ErikBjare, thanks! Just switched to .toml
, which has the following config now:
[server]
host = "localhost"
port = "5600"
storage = "peewee"
cors_origins = ""
[server-testing]
host = "localhost"
port = "5666"
storage = "peewee"
cors_origins = ""
[server-testing.custom_static]
aw-watcher-input = "/Applications/ActivityWatch.app/Contents/MacOS/aw-watcher-input/visualization/dist/"
It doesn't seem to solve the issue. I'm currently running the v0.12.1
, if that helps.
from aw-watcher-input.
@leoentersthevoid Are you running in testing mode?
If not, you put the config under the wrong section (should be under server.custom_static
, not server-testing.custom_static
).
Edit: just now say your edit (didn't see that from the notification email), nice you got it working!
from aw-watcher-input.
Related Issues (20)
- Bucket not created HOT 5
- Where is the data stored? HOT 1
- Holding a key leads to repeat presses
- ModuleNotFoundError: No module named 'setuptools'
- Exec Format error for aw-watcher-input.spec file
- No input HOT 1
- Add barchart visualization of clicks & presses using Chart.js
- Solving rendering delay in timeline
- python 3.11
- Wayland HOT 2
- Error starting the watcher HOT 2
- Where is the "dist" folder? HOT 3
- jsonschema-specifications File Not Found HOT 1
- Data from this watcher doesn't show up as a bucket in the web UI HOT 1
- How can you connect aw-watcher-input wth activity watcher? HOT 6
- ModuleNotFoundError: No module named 'pykeyboard' HOT 6
- poetry problem HOT 2
- How to install? HOT 1
- Activity not showing in Raw Data tab HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aw-watcher-input.