installation package:
- installation linux:
- part of the installation sima package
- sudo apt install python3-pip
sudo apt install python3-testresources
sudo apt install jq # parsing json
sudo pip install gemma-client-1.1.10.tar.gz
- usage:
- gemma-client --help
- gemma-client download --help
- gemma-client upload --help
- gemma-client download --no-verify --hostname sima.imtm.cz --username admin --password xxx 6a3717de-fdfd-11ed-9978-02420a000126 .
- DATASET_ID is the Measurement.DATASET_ID
- gemma-client upload --no-verify --hostname 158.194.103.196 --username admin --password xxx 06f7bb18-09e9-11ee-b88a-02420a000426 "Harmony IDX/TIF" .
- SCREEN_ID is the Screen.SCREEN_ID
- or you can upload to the new screen
- gemma-client upload --no-verify --hostname 158.194.103.196 --username admin --password xxx --screen-name 'new screen name' $(uuidgen) "Harmony IDX/TIF" .
- DATASET_TYPE can be found on the address:
- authentication is not working ;-(
- curl -s -H "Content-Type: application/json" -X POST --data '{"userName":"admin", "password":"xxx"}' http://158.194.103.196/api/1.0/authentication/token | jq -r ".token"
- 1c48a378-935a-4345-b7cc-3ad9016ef143
- gemma-client upload --no-verify --hostname 158.194.103.196 --bearer 1c48a378-935a-4345-b7cc-3ad9016ef143 --screen-name hola4 $(uuidgen) "Harmony IDX/TIF" .
- curl -s -H "Content-Type: application/json" -X POST --data '{"userName":"admin", "password":"xxx"}' http://158.194.103.196/api/1.0/authentication/token | jq -r ".token"