Wiki source code of gemma-client
Last modified by Martin SZOTKOWSKI on 2023/12/18 15:43
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | installation package: | ||
2 | |||
3 | * windows: [[attach:gemma-client-1.3.29-win.zip]] | ||
4 | * linux: [[attach:gemma-client-1.3.29.tar.gz]] | ||
5 | * [[example by Diego>>attach:gemma-client example.msg]] | ||
6 | |||
7 | \\ | ||
8 | |||
9 | * installation linux: | ||
10 | ** part of the installation sima package | ||
11 | ** sudo apt install python3-pip | ||
12 | sudo apt install python3-testresources | ||
13 | sudo apt install jq # parsing json | ||
14 | sudo pip install gemma-client-1.1.10.tar.gz | ||
15 | * usage: | ||
16 | ** gemma-client ~-~-help | ||
17 | ** gemma-client download ~-~-help | ||
18 | ** gemma-client upload ~-~-help | ||
19 | ** gemma-client download ~-~-no-verify ~-~-hostname sima.imtm.cz ~-~-username admin ~-~-password xxx **6a3717de-fdfd-11ed-9978-02420a000126** . | ||
20 | *** DATASET_ID is the Measurement.DATASET_ID | ||
21 | *** [[image:attach:image-2023-6-13_14-50-15.png||height="250"]] | ||
22 | ** gemma-client **upload **~-~-no-verify ~-~-hostname 158.194.103.196 ~-~-username admin ~-~-password xxx **06f7bb18-09e9-11ee-b88a-02420a000426** "Harmony IDX/TIF" . | ||
23 | *** SCREEN_ID is the Screen.SCREEN_ID | ||
24 | *** [[image:attach:image-2023-6-13_14-53-36.png||height="250"]] | ||
25 | ** or you can upload to the new screen | ||
26 | ** gemma-client **upload **~-~-no-verify ~-~-hostname 158.194.103.196 ~-~-username admin ~-~-password xxx ~-~-screen-name '**new screen name**' $(**uuidgen**) "Harmony IDX/TIF" . | ||
27 | ** DATASET_TYPE can be found on the address: | ||
28 | *** [[https:~~/~~/sima.imtm.cz/datastore/datatypes>>url:https://sima.imtm.cz/datastore/datatypes||shape="rect"]] | ||
29 | |||
30 | \\ | ||
31 | |||
32 | * authentication is not working ;-( | ||
33 | ** curl -s -H "Content-Type: application/json" -X POST ~-~-data '{"userName":"admin", "password":"xxx"}' [[http:~~/~~/158.194.103.196/api/1.0/authentication/token>>url:http://158.194.103.196/api/1.0/authentication/token||shape="rect"]] | jq -r ".token" | ||
34 | *** **1c48a378-935a-4345-b7cc-3ad9016ef143** | ||
35 | ** gemma-client upload ~-~-no-verify ~-~-hostname 158.194.103.196 **~-~-bearer 1c48a378-935a-4345-b7cc-3ad9016ef143** ~-~-screen-name hola4 $(uuidgen) "Harmony IDX/TIF" . | ||
36 | |||
37 | \\ |