added README
parent
dd92f035cb
commit
6b3d497a5b
|
@ -0,0 +1,10 @@
|
|||
curl --insecure --data "username=data-api-user&password=jBD0CD1wGOKoTVtC&grant_type=password&client_id=phenode" https://phenode-link.com:8443/realms/grafana/protocol/openid-connect/token
|
||||
|
||||
And get a tolken in return:
|
||||
{"access_token":"eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPbjJGUXVKOFktOTA5dUpHV1FFRGtiekctR1JObU1jNDNIc2xFZ1Z2X1ZRIn0.eyJleHAiOjE2OTYzNDk0NzUsImlhdCI6MTY5NjMzMTQ3NSwianRpIjoiODg0ZTg5ZTctOGE2Zi00YWIzLWIwNjMtYjlmZDg5MTEyMDkxIiwiaXNzIjoiaHR0cHM6Ly9waGVub2RlLWxpbmsuY29tOjg0NDMvcmVhbG1zL2dyYWZhbmEiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiZGYzMzBhNjItOGNmYS00ZWY0LWEzYzgtZTE5OTY4NzE2YTViIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoicGhlbm9kZSIsInNlc3Npb25fc3RhdGUiOiI2YWE1OTg3ZC1hMjc5LTQ4NzItYmRlNS02YzdmZDc1ODkzNDgiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL3BoZW5vZGUtbGluay5jb206MzAwMiIsImh0dHA6Ly93d3cucGhlbm9kZS1saW5rLmNvbTozMDAyIiwiaHR0cHM6Ly93d3cucGhlbm9kZS1saW5rLmNvbTozMDAyIiwiaHR0cHM6Ly9sb2NhaG9zdDozMDAyIiwiaHR0cHM6Ly93d3cucGhlbm9kZS1saW5rLmNvbSIsImh0dHBzOi8vMy4xMzkuMTkxLjgwLjMwMDIiLCJodHRwOi8vbG9jYWhvc3Q6MzAwMiIsImh0dHA6Ly93d3cucGhlbm9kZS1saW5rLmNvbSIsImh0dHA6Ly8zLjEzOS4xOTEuODAuMzAwMiIsImh0dHBzOi8vbG9jYWxob3N0OjMwMDIiLCJodHRwczovL3BoZW5vZGUtbGluay5jb206MzAwMiIsImh0dHBzOi8vMy4xMzkuMTkxLjgwIiwiaHR0cDovL3BoZW5vZGUtbGluay5jb20iLCJodHRwczovL3BoZW5vZGUtbGluay5jb20iLCJodHRwOi8vMy4xMzkuMTkxLjgwIl0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6InByb2ZpbGUgZW1haWwiLCJzaWQiOiI2YWE1OTg3ZC1hMjc5LTQ4NzItYmRlNS02YzdmZDc1ODkzNDgiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsInJvbGVzIjpbInZpZXdlciIsIm9mZmxpbmVfYWNjZXNzIiwiZGVmYXVsdC1yb2xlcy1ncmFmYW5hIiwidW1hX2F1dGhvcml6YXRpb24iXSwicHJlZmVycmVkX3VzZXJuYW1lIjoiZGF0YS1hcGktdXNlciIsImdpdmVuX25hbWUiOiIiLCJmYW1pbHlfbmFtZSI6IiJ9.PrEaqR0f5v4KtJlrDegHPGsw8-RLJUB0y3D22BYDZgAVeVBu823vRBuyoOsmG1paE-Q46M_RtBUMEOLd62mjOZEOaVJ9-gQC7f2Guc26ji02U1Glf6AVMtR9K-Se_M8Pq8nhHjDouuSpvLvcyP3YolkT3iGkXEsoRhd7cjFuiK3hiJU2y7iSKhEinKbw6K_engCEtBN-V_r21gDeCt_xIgI_bGkMXKWHQWasj4h5AixwIJtqpHPKmI6OUYah0xR2KhZiqKV0aWFQZAOy8ZP80ksYG5AKDVbJ491UjVAPG8acmFsPV5FumJIPG8hdENEA4vBxgFPk_b_6TzBlLaSWdg","expires_in":18000,"refresh_expires_in":31536000,"refresh_token":"eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJiYjY3ODY2NS1lNjk0LTQzNWEtYjViYi04YzExZTQ3MjdjMWMifQ.eyJleHAiOjE3Mjc4Njc0NzUsImlhdCI6MTY5NjMzMTQ3NSwianRpIjoiMDNjNWI1NTUtNzlhMi00NWQ0LWJiY2ItZmIxODcyMmZiZThlIiwiaXNzIjoiaHR0cHM6Ly9waGVub2RlLWxpbmsuY29tOjg0NDMvcmVhbG1zL2dyYWZhbmEiLCJhdWQiOiJodHRwczovL3BoZW5vZGUtbGluay5jb206ODQ0My9yZWFsbXMvZ3JhZmFuYSIsInN1YiI6ImRmMzMwYTYyLThjZmEtNGVmNC1hM2M4LWUxOTk2ODcxNmE1YiIsInR5cCI6IlJlZnJlc2giLCJhenAiOiJwaGVub2RlIiwic2Vzc2lvbl9zdGF0ZSI6IjZhYTU5ODdkLWEyNzktNDg3Mi1iZGU1LTZjN2ZkNzU4OTM0OCIsInNjb3BlIjoicHJvZmlsZSBlbWFpbCIsInNpZCI6IjZhYTU5ODdkLWEyNzktNDg3Mi1iZGU1LTZjN2ZkNzU4OTM0OCJ9.17Hxv-n8jiUTbHGjXiEu-E0zBUV6UCz2cDGku-8e05M","token_type":"Bearer","not-before-policy":1662482026,"session_state":"6aa5987d-a279-4872-bde5-6c7fd7589348","scope":"profile email"}
|
||||
|
||||
curl --insecure -X POST https://phenode-link.com:2537/devices/D7:80:BE:2C:63:BD/all-data/2023-04-10T16:52:21Z -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJPbjJGUXVKOFktOTA5dUpHV1FFRGtiekctR1JObU1jNDNIc2xFZ1Z2X1ZRIn0.eyJleHAiOjE2OTYzNDk0NzUsImlhdCI6MTY5NjMzMTQ3NSwianRpIjoiODg0ZTg5ZTctOGE2Zi00YWIzLWIwNjMtYjlmZDg5MTEyMDkxIiwiaXNzIjoiaHR0cHM6Ly9waGVub2RlLWxpbmsuY29tOjg0NDMvcmVhbG1zL2dyYWZhbmEiLCJhdWQiOiJhY2NvdW50Iiwic3ViIjoiZGYzMzBhNjItOGNmY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pb24iXSwicHJlZmVycmVkX3VzZXJuYW1lIjoiZGF0YS1hcGktdXNlciIsImdpdmVuX25hbWUiOiIiLCJmYW1pbHlfbmFtZSI6IiJ9.PrEaqR0f5v4KtJlrDegHPGsw8-RLJUB0y3D22BYDZgAVeVBu823vRBuyoOsmG1paE-Q46M_RtBUMEOLd62mjOZEOaVJ9-gQC7f2Guc26ji02U1Glf6AVMtR9K-Se_M8Pq8nhHjDouuSpvLvcyP3YolkT3iGkXEsoRhd7cjFuiK3hiJU2y7iSKhEinKbw6K_engCEtBN-V_r21gDeCt_xIgI_bGkMXKWHQWasj4h5AixwIJtqpHPKmI6OUYah0xR2KhZiqKV0aWFQZAOy8ZP80ksYG5AKDVbJ491UjVAPG8acmFsPV5FumJIPG8hdENEA4vBxgFPk_b_6TzBlLaSWdg" --output D7-80-BE-2C-63-BD.zip
|
||||
|
||||
A ZIP file is created in the folder, named D7-80-BE-2C-63-BD.zip
|
||||
|
||||
(3) For the second sensor set the command is adopted using the F1:CC:C3:0B:7F:5C adress and F1-CC-C3-0B-7F-5C.zip name.
|
Loading…
Reference in New Issue