Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
GregorioMonari committed Jun 22, 2023
1 parent 605ad1c commit 3e406a8
Show file tree
Hide file tree
Showing 10 changed files with 1,596 additions and 49 deletions.
1 change: 0 additions & 1 deletion 1_ActivityWatchProducer/PY/my2sec/main/apps_selection.csv

This file was deleted.

1 change: 0 additions & 1 deletion 1_ActivityWatchProducer/PY/my2sec/main/filekey.key

This file was deleted.

90 changes: 45 additions & 45 deletions 1_ActivityWatchProducer/log.log
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
[2023-06-21 17:27:56.005] [info] [ My2secProducer logs ]
[2023-06-21 17:27:56.013] [info] # JSAP CONFIGURATOR STARTED #
[2023-06-21 17:27:56.015] [info] ------------------------< DETECTING RUNTIME ENVIRONMENT >------------------------
[2023-06-21 17:27:56.016] [info] - Running environment: windows/linux
[2023-06-21 17:27:56.019] [info] - Run mode: development (NODE_ENV=dev )
[2023-06-21 17:27:56.020] [info]
[2023-06-21 17:27:56.022] [info] ------------------------< GET LOOPBACK ADDRESS FOR AW API >------------------------
[2023-06-21 17:27:56.024] [info] ===============================
[2023-06-21 17:27:56.025] [info] ** Request 0: localhost **
[2023-06-21 17:27:56.523] [info] Response status: 200
[2023-06-21 17:27:56.525] [info] Response DATA: {"aw-watcher-afk_LAPTOP-A3FDT9J3":{"id":"aw-watcher-afk_LAPTOP-A3FDT9J3","created":"2022-08-04T17:47:01.646448+00:00","name":null,"type":"afkstatus","client":"aw-watcher-afk","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-21T15:27:44.887000+00:00"},"aw-watcher-window_LAPTOP-A3FDT9J3":{"id":"aw-watcher-window_LAPTOP-A3FDT9J3","created":"2022-08-04T17:47:01.737074+00:00","name":null,"type":"currentwindow","client":"aw-watcher-window","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-21T15:27:50.289000+00:00"},"aw-watcher-scan_LAPTOP-A3FDT9J3":{"id":"aw-watcher-scan_LAPTOP-A3FDT9J3","created":"2022-10-17T14:34:37.689112+00:00","name":null,"type":"scan","client":"aw-my2sec","hostname":"LAPTOP-A3FDT9J3","last_updated":"2022-12-05T09:23:36.384000+00:00"},"aw-watcher-working_LAPTOP-A3FDT9J3":{"id":"aw-watcher-working_LAPTOP-A3FDT9J3","created":"2022-10-17T14:36:22.826305+00:00","name":null,"type":"working","client":"aw-watcher-working","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-19T10:39:30.670000+00:00"},"aw-watcher-start-stop_LAPTOP-A3FDT9J3":{"id":"aw-watcher-start-stop_LAPTOP-A3FDT9J3","created":"2022-12-05T12:35:53.528196+00:00","name":null,"type":"start-stop","client":"aw_my2sec","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-19T10:39:35.466000+00:00"},"aw-watcher-notshutdown_LAPTOP-A3FDT9J3":{"id":"aw-watcher-notshutdown_LAPTOP-A3FDT9J3","created":"2022-12-05T12:52:48.080634+00:00","name":null,"type":"not_shutdown","client":"aw_my2sec","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-19T10:37:35.891000+00:00"},"aw-producer":{"id":"aw-producer","created":"2023-05-29T20:02:49.073205+00:00","name":null,"type":"sepaconnector","client":"aw-producer","hostname":"unknown","last_updated":"2023-06-19T10:39:57.450000+00:00"}}
[2023-06-21 17:27:56.526] [info] Request to localhost executed
[2023-06-21 17:27:56.529] [info] ===============================
[2023-06-21 17:27:56.531] [info] ** Request 1: 127.0.0.1 **
[2023-06-21 17:27:56.867] [info] Response status: 200
[2023-06-21 17:27:56.868] [info] Response DATA: {"aw-watcher-afk_LAPTOP-A3FDT9J3":{"id":"aw-watcher-afk_LAPTOP-A3FDT9J3","created":"2022-08-04T17:47:01.646448+00:00","name":null,"type":"afkstatus","client":"aw-watcher-afk","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-21T15:27:44.887000+00:00"},"aw-watcher-window_LAPTOP-A3FDT9J3":{"id":"aw-watcher-window_LAPTOP-A3FDT9J3","created":"2022-08-04T17:47:01.737074+00:00","name":null,"type":"currentwindow","client":"aw-watcher-window","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-21T15:27:50.289000+00:00"},"aw-watcher-scan_LAPTOP-A3FDT9J3":{"id":"aw-watcher-scan_LAPTOP-A3FDT9J3","created":"2022-10-17T14:34:37.689112+00:00","name":null,"type":"scan","client":"aw-my2sec","hostname":"LAPTOP-A3FDT9J3","last_updated":"2022-12-05T09:23:36.384000+00:00"},"aw-watcher-working_LAPTOP-A3FDT9J3":{"id":"aw-watcher-working_LAPTOP-A3FDT9J3","created":"2022-10-17T14:36:22.826305+00:00","name":null,"type":"working","client":"aw-watcher-working","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-19T10:39:30.670000+00:00"},"aw-watcher-start-stop_LAPTOP-A3FDT9J3":{"id":"aw-watcher-start-stop_LAPTOP-A3FDT9J3","created":"2022-12-05T12:35:53.528196+00:00","name":null,"type":"start-stop","client":"aw_my2sec","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-19T10:39:35.466000+00:00"},"aw-watcher-notshutdown_LAPTOP-A3FDT9J3":{"id":"aw-watcher-notshutdown_LAPTOP-A3FDT9J3","created":"2022-12-05T12:52:48.080634+00:00","name":null,"type":"not_shutdown","client":"aw_my2sec","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-19T10:37:35.891000+00:00"},"aw-producer":{"id":"aw-producer","created":"2023-05-29T20:02:49.073205+00:00","name":null,"type":"sepaconnector","client":"aw-producer","hostname":"unknown","last_updated":"2023-06-19T10:39:57.450000+00:00"}}
[2023-06-21 17:27:56.870] [info] Request to 127.0.0.1 executed
[2023-06-21 17:27:56.871] [info] ===============================
[2023-06-21 17:27:56.872] [info] ** Request 2: [::1] **
[2023-06-21 17:27:56.883] [error] Error: connect ECONNREFUSED ::1:5600
[2023-06-21 18:35:48.779] [info] [ My2secProducer logs ]
[2023-06-21 18:35:48.787] [info] # JSAP CONFIGURATOR STARTED #
[2023-06-21 18:35:48.790] [info] ------------------------< DETECTING RUNTIME ENVIRONMENT >------------------------
[2023-06-21 18:35:48.796] [info] - Running environment: windows/linux
[2023-06-21 18:35:48.799] [info] - Run mode: development (NODE_ENV=dev )
[2023-06-21 18:35:48.801] [info]
[2023-06-21 18:35:48.804] [info] ------------------------< GET LOOPBACK ADDRESS FOR AW API >------------------------
[2023-06-21 18:35:48.806] [info] ===============================
[2023-06-21 18:35:48.809] [info] ** Request 0: localhost **
[2023-06-21 18:35:49.273] [info] Response status: 200
[2023-06-21 18:35:49.275] [info] Response DATA: {"aw-watcher-afk_LAPTOP-A3FDT9J3":{"id":"aw-watcher-afk_LAPTOP-A3FDT9J3","created":"2022-08-04T17:47:01.646448+00:00","name":null,"type":"afkstatus","client":"aw-watcher-afk","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-21T16:35:37.638000+00:00"},"aw-watcher-window_LAPTOP-A3FDT9J3":{"id":"aw-watcher-window_LAPTOP-A3FDT9J3","created":"2022-08-04T17:47:01.737074+00:00","name":null,"type":"currentwindow","client":"aw-watcher-window","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-21T16:35:46.598000+00:00"},"aw-watcher-scan_LAPTOP-A3FDT9J3":{"id":"aw-watcher-scan_LAPTOP-A3FDT9J3","created":"2022-10-17T14:34:37.689112+00:00","name":null,"type":"scan","client":"aw-my2sec","hostname":"LAPTOP-A3FDT9J3","last_updated":"2022-12-05T09:23:36.384000+00:00"},"aw-watcher-working_LAPTOP-A3FDT9J3":{"id":"aw-watcher-working_LAPTOP-A3FDT9J3","created":"2022-10-17T14:36:22.826305+00:00","name":null,"type":"working","client":"aw-watcher-working","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-19T10:39:30.670000+00:00"},"aw-watcher-start-stop_LAPTOP-A3FDT9J3":{"id":"aw-watcher-start-stop_LAPTOP-A3FDT9J3","created":"2022-12-05T12:35:53.528196+00:00","name":null,"type":"start-stop","client":"aw_my2sec","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-19T10:39:35.466000+00:00"},"aw-watcher-notshutdown_LAPTOP-A3FDT9J3":{"id":"aw-watcher-notshutdown_LAPTOP-A3FDT9J3","created":"2022-12-05T12:52:48.080634+00:00","name":null,"type":"not_shutdown","client":"aw_my2sec","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-19T10:37:35.891000+00:00"},"aw-producer":{"id":"aw-producer","created":"2023-05-29T20:02:49.073205+00:00","name":null,"type":"sepaconnector","client":"aw-producer","hostname":"unknown","last_updated":"2023-06-19T10:39:57.450000+00:00"}}
[2023-06-21 18:35:49.278] [info] Request to localhost executed
[2023-06-21 18:35:49.279] [info] ===============================
[2023-06-21 18:35:49.281] [info] ** Request 1: 127.0.0.1 **
[2023-06-21 18:35:49.570] [info] Response status: 200
[2023-06-21 18:35:49.572] [info] Response DATA: {"aw-watcher-afk_LAPTOP-A3FDT9J3":{"id":"aw-watcher-afk_LAPTOP-A3FDT9J3","created":"2022-08-04T17:47:01.646448+00:00","name":null,"type":"afkstatus","client":"aw-watcher-afk","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-21T16:35:37.638000+00:00"},"aw-watcher-window_LAPTOP-A3FDT9J3":{"id":"aw-watcher-window_LAPTOP-A3FDT9J3","created":"2022-08-04T17:47:01.737074+00:00","name":null,"type":"currentwindow","client":"aw-watcher-window","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-21T16:35:47.811000+00:00"},"aw-watcher-scan_LAPTOP-A3FDT9J3":{"id":"aw-watcher-scan_LAPTOP-A3FDT9J3","created":"2022-10-17T14:34:37.689112+00:00","name":null,"type":"scan","client":"aw-my2sec","hostname":"LAPTOP-A3FDT9J3","last_updated":"2022-12-05T09:23:36.384000+00:00"},"aw-watcher-working_LAPTOP-A3FDT9J3":{"id":"aw-watcher-working_LAPTOP-A3FDT9J3","created":"2022-10-17T14:36:22.826305+00:00","name":null,"type":"working","client":"aw-watcher-working","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-19T10:39:30.670000+00:00"},"aw-watcher-start-stop_LAPTOP-A3FDT9J3":{"id":"aw-watcher-start-stop_LAPTOP-A3FDT9J3","created":"2022-12-05T12:35:53.528196+00:00","name":null,"type":"start-stop","client":"aw_my2sec","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-19T10:39:35.466000+00:00"},"aw-watcher-notshutdown_LAPTOP-A3FDT9J3":{"id":"aw-watcher-notshutdown_LAPTOP-A3FDT9J3","created":"2022-12-05T12:52:48.080634+00:00","name":null,"type":"not_shutdown","client":"aw_my2sec","hostname":"LAPTOP-A3FDT9J3","last_updated":"2023-06-19T10:37:35.891000+00:00"},"aw-producer":{"id":"aw-producer","created":"2023-05-29T20:02:49.073205+00:00","name":null,"type":"sepaconnector","client":"aw-producer","hostname":"unknown","last_updated":"2023-06-19T10:39:57.450000+00:00"}}
[2023-06-21 18:35:49.575] [info] Request to 127.0.0.1 executed
[2023-06-21 18:35:49.577] [info] ===============================
[2023-06-21 18:35:49.578] [info] ** Request 2: [::1] **
[2023-06-21 18:35:49.583] [error] Error: connect ECONNREFUSED ::1:5600
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1157:16)
[2023-06-21 17:27:56.884] [info] Failed 1/3 requests
[2023-06-21 17:27:56.885] [info] Request to [::1] executed
[2023-06-21 17:27:56.887] [info]
[2023-06-21 17:27:56.888] [info] ------------------------< CONFIGURE JSAP >------------------------
[2023-06-21 17:27:56.893] [info] - modifying endpoint: ActivityWatch
[2023-06-21 17:27:56.895] [info] - modifying endpoint: AwApiRouter
[2023-06-21 17:27:56.897] [info] - modifying endpoint: My2secApi
[2023-06-21 17:27:56.899] [info] - modifying endpoint: MongoDb
[2023-06-21 17:27:56.900] [info] - modifying endpoint: MongoDbRouter
[2023-06-21 17:27:56.901] [info] {
[2023-06-21 18:35:49.584] [info] Failed 1/3 requests
[2023-06-21 18:35:49.586] [info] Request to [::1] executed
[2023-06-21 18:35:49.588] [info]
[2023-06-21 18:35:49.589] [info] ------------------------< CONFIGURE JSAP >------------------------
[2023-06-21 18:35:49.592] [info] - modifying endpoint: ActivityWatch
[2023-06-21 18:35:49.594] [info] - modifying endpoint: AwApiRouter
[2023-06-21 18:35:49.596] [info] - modifying endpoint: My2secApi
[2023-06-21 18:35:49.600] [info] - modifying endpoint: MongoDb
[2023-06-21 18:35:49.602] [info] - modifying endpoint: MongoDbRouter
[2023-06-21 18:35:49.603] [info] {
AwProducer: {
endpoints: {
Keycloak: 'https://keycloak.vaimee.org',
Expand All @@ -53,30 +53,30 @@
collection: 'ActivityWatchMessages'
}
}
[2023-06-21 17:27:56.908] [info] 127.0.0.1:5600
[2023-06-21 17:27:56.915] [info] Preflight: testing ActivityWatch connection
[2023-06-21 17:27:56.921] [info] - AwApiRouter started
[2023-06-21 17:27:56.923] [info] STARTING PYTHON API IN DEV MODE
[2023-06-21 17:27:56.972] [info] - Python api started
[2023-06-21 17:27:56.980] [info] - MongoDbClient started
[2023-06-21 17:27:57.160] [info] aw api is listening on port 1340
[2023-06-21 17:27:58.007] [info] Launching dev python api with python3
[2023-06-21 17:27:58.012] [info] Spawning python: C:\Users\Utente\git\my2sec\1_ActivityWatchProducer\PY\my2sec\main
[2023-06-21 17:27:58.043] [info] ** started python api
[2023-06-21 17:28:24.344] [error] stderr: [nltk_data] Downloading package stopwords to
[2023-06-21 18:35:49.608] [info] 127.0.0.1:5600
[2023-06-21 18:35:49.612] [info] Preflight: testing ActivityWatch connection
[2023-06-21 18:35:49.622] [info] - AwApiRouter started
[2023-06-21 18:35:49.624] [info] STARTING PYTHON API IN DEV MODE
[2023-06-21 18:35:49.656] [info] - Python api started
[2023-06-21 18:35:49.661] [info] - MongoDbClient started
[2023-06-21 18:35:49.720] [info] aw api is listening on port 1340
[2023-06-21 18:35:49.952] [info] Launching dev python api with python3
[2023-06-21 18:35:49.957] [info] Spawning python: C:\Users\Utente\git\my2sec\1_ActivityWatchProducer\PY\my2sec\main
[2023-06-21 18:35:49.992] [info] ** started python api
[2023-06-21 18:35:53.707] [error] stderr: [nltk_data] Downloading package stopwords to
[nltk_data] C:\Users\Utente/nltk_data...

[2023-06-21 17:28:24.366] [error] stderr: [nltk_data] Package stopwords is already up-to-date!
[2023-06-21 18:35:53.709] [error] stderr: [nltk_data] Package stopwords is already up-to-date!
[nltk_data] Downloading package punkt to C:\Users\Utente/nltk_data...

[2023-06-21 17:28:24.413] [error] stderr: [nltk_data] Package punkt is already up-to-date!
[2023-06-21 18:35:53.742] [error] stderr: [nltk_data] Package punkt is already up-to-date!

[2023-06-21 17:28:24.437] [info] {
[2023-06-21 18:35:53.754] [info] {
type: 'Buffer',
data: [
49, 50, 55, 46, 48, 46, 48, 46, 49, 32, 45, 45,
32, 91, 50, 49, 47, 48, 54, 47, 50, 48, 50, 51,
32, 49, 55, 58, 50, 56, 58, 50, 52, 93, 32, 65,
32, 49, 56, 58, 51, 53, 58, 53, 51, 93, 32, 65,
80, 73, 58, 32, 65, 87, 83, 101, 114, 118, 101, 114,
32, 111, 110, 108, 105, 110, 101, 13, 10, 32, 42, 32,
83, 101, 114, 118, 105, 110, 103, 32, 70, 108, 97, 115,
Expand Down
1 change: 0 additions & 1 deletion 2_PAC/Apps/My2Sec/OpUsersConsumer.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class OpUsersConsumer extends Consumer{
console.log("║║ # App: OpUsersConsumer v0.2");
console.log("║║ ###########################");
super(jsap_file,"ALL_USERNAMES",{},true);
this.log.loglevel=1;
this.opClient=new OpClient(jsap_file.extended.OpenProjectClientConfiguration);
this.tasksArr = [
"http://www.vaimee.it/ontology/my2sec#Developing",
Expand Down
Loading

0 comments on commit 3e406a8

Please sign in to comment.