From a250d5de8f506c3cd9d1b41e325babd2569342c5 Mon Sep 17 00:00:00 2001 From: MDeghaud67 Date: Tue, 9 May 2023 11:38:55 +0200 Subject: [PATCH] AR --- .env.local | 1 - .gitignore | 81 +++++++++ .history/IOT/lib/pocketbase_20230403114544.js | 5 - .history/IOT/lib/pocketbase_20230403121322.js | 7 - .../src/admin/getOneAdmin_20230424110353.js | 0 .../src/admin/getOneAdmin_20230424110405.js | 7 - .../src/admin/getOneAdmin_20230424142525.js | 7 - .../src/admin/listAdmins_20230424110219.js | 18 -- .../src/admin/listAdmins_20230424110316.js | 16 -- .../src/admin/listAdmins_20230424142541.js | 16 -- .../src/admin/updateAdmin_20230424121758.js | 0 .../src/admin/updateAdmin_20230424121810.js | 13 -- .../src/admin/updateAdmin_20230424121813.js | 11 -- .../src/admin/updateAdmin_20230424142522.js | 11 -- .../IOT/src/data/createData_20230424120319.js | 0 .../IOT/src/data/createData_20230424120329.js | 13 -- .../IOT/src/data/deleteData_20230424120232.js | 0 .../IOT/src/data/deleteData_20230424120242.js | 5 - .../IOT/src/data/getOneData_20230418144318.js | 0 .../IOT/src/data/getOneData_20230418144340.js | 7 - .../IOT/src/data/updateData_20230424115603.js | 0 .../IOT/src/data/updateData_20230424115617.js | 13 -- .../src/trashs/createTrash_20230424114542.js | 0 .../src/trashs/createTrash_20230424114550.js | 10 -- .../src/trashs/deleteTrash_20230424114902.js | 0 .../src/trashs/deleteTrash_20230424114909.js | 5 - .../src/trashs/getOneTrash_20230418144220.js | 0 .../src/trashs/getOneTrash_20230418144351.js | 7 - .../src/trashs/updateTrash_20230424113739.js | 0 .../src/trashs/updateTrash_20230424113756.js | 10 -- .../IOT/src/users/getOneUser_20230418144130 | 0 .../IOT/src/users/getOneUser_20230418144155 | 7 - .../IOT/src/users/login_20230418170045.js | 0 .../IOT/src/users/login_20230418170119.js | 16 -- ...nsomnia-All_2023-04-03_20230411103956.json | 1 - ...nsomnia-All_2023-04-03_20230411104947.json | 168 ------------------ .history/IOT/test/listUsers_20230411105649.js | 0 .history/IOT/test/listUsers_20230411105948.js | 8 - .history/IOT/test/listUsers_20230411110454.js | 4 - .history/IOT/test/listUsers_20230411113629.js | 6 - .history/IOT/test/listUsers_20230411114246.js | 6 - .vscode/c_cpp_properties.json | 19 -- .vscode/settings.json | 3 + API/docs/diagram.wsd | 29 +++ AR.meta | 3 + AR/.env.example | 3 + AR/.gitattributes | 55 ++++++ AR/.gitignore | 147 +++++++++++++++ AR/Assets/ExampleAssets.meta | 8 + AR/Assets/ExampleAssets/Materials.meta | 8 + .../ExampleAssets/Materials/PlacedCubeMat.mat | 109 ++++++++++++ .../Materials/PlacedCubeMat.mat.meta | 8 + .../ExampleAssets/Materials/PlaneMat.mat | 79 ++++++++ .../ExampleAssets/Materials/PlaneMat.mat.meta | 8 + AR/Assets/ExampleAssets/Models.meta | 8 + IOT/Docs/test.plantuml | 15 -- IOT/lib/pocketbase.js | 7 - IOT/src/admin/getOneAdmin.js | 7 - IOT/src/admin/listAdmins.js | 16 -- IOT/src/admin/updateAdmin.js | 11 -- IOT/src/data/createData.js | 13 -- IOT/src/data/deleteData.js | 5 - IOT/src/data/getOneData.js | 7 - IOT/src/data/updateData.js | 13 -- IOT/src/trashs/createTrash.js | 10 -- IOT/src/trashs/deleteTrash.js | 5 - IOT/src/trashs/getOneTrash.js | 7 - IOT/src/trashs/updateTrash.js | 10 -- IOT/src/users/getOneUser.js | 7 - IOT/src/users/login.js | 16 -- IOT/test/Insomnia_test_api.json | 1 - IOT/test/testGet.js | 6 - 72 files changed, 549 insertions(+), 573 deletions(-) delete mode 100644 .env.local create mode 100644 .gitignore delete mode 100644 .history/IOT/lib/pocketbase_20230403114544.js delete mode 100644 .history/IOT/lib/pocketbase_20230403121322.js delete mode 100644 .history/IOT/src/admin/getOneAdmin_20230424110353.js delete mode 100644 .history/IOT/src/admin/getOneAdmin_20230424110405.js delete mode 100644 .history/IOT/src/admin/getOneAdmin_20230424142525.js delete mode 100644 .history/IOT/src/admin/listAdmins_20230424110219.js delete mode 100644 .history/IOT/src/admin/listAdmins_20230424110316.js delete mode 100644 .history/IOT/src/admin/listAdmins_20230424142541.js delete mode 100644 .history/IOT/src/admin/updateAdmin_20230424121758.js delete mode 100644 .history/IOT/src/admin/updateAdmin_20230424121810.js delete mode 100644 .history/IOT/src/admin/updateAdmin_20230424121813.js delete mode 100644 .history/IOT/src/admin/updateAdmin_20230424142522.js delete mode 100644 .history/IOT/src/data/createData_20230424120319.js delete mode 100644 .history/IOT/src/data/createData_20230424120329.js delete mode 100644 .history/IOT/src/data/deleteData_20230424120232.js delete mode 100644 .history/IOT/src/data/deleteData_20230424120242.js delete mode 100644 .history/IOT/src/data/getOneData_20230418144318.js delete mode 100644 .history/IOT/src/data/getOneData_20230418144340.js delete mode 100644 .history/IOT/src/data/updateData_20230424115603.js delete mode 100644 .history/IOT/src/data/updateData_20230424115617.js delete mode 100644 .history/IOT/src/trashs/createTrash_20230424114542.js delete mode 100644 .history/IOT/src/trashs/createTrash_20230424114550.js delete mode 100644 .history/IOT/src/trashs/deleteTrash_20230424114902.js delete mode 100644 .history/IOT/src/trashs/deleteTrash_20230424114909.js delete mode 100644 .history/IOT/src/trashs/getOneTrash_20230418144220.js delete mode 100644 .history/IOT/src/trashs/getOneTrash_20230418144351.js delete mode 100644 .history/IOT/src/trashs/updateTrash_20230424113739.js delete mode 100644 .history/IOT/src/trashs/updateTrash_20230424113756.js delete mode 100644 .history/IOT/src/users/getOneUser_20230418144130 delete mode 100644 .history/IOT/src/users/getOneUser_20230418144155 delete mode 100644 .history/IOT/src/users/login_20230418170045.js delete mode 100644 .history/IOT/src/users/login_20230418170119.js delete mode 100644 .history/IOT/test/Insomnia-All_2023-04-03_20230411103956.json delete mode 100644 .history/IOT/test/Insomnia-All_2023-04-03_20230411104947.json delete mode 100644 .history/IOT/test/listUsers_20230411105649.js delete mode 100644 .history/IOT/test/listUsers_20230411105948.js delete mode 100644 .history/IOT/test/listUsers_20230411110454.js delete mode 100644 .history/IOT/test/listUsers_20230411113629.js delete mode 100644 .history/IOT/test/listUsers_20230411114246.js delete mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/settings.json create mode 100644 API/docs/diagram.wsd create mode 100644 AR.meta create mode 100644 AR/.env.example create mode 100644 AR/.gitattributes create mode 100644 AR/.gitignore create mode 100644 AR/Assets/ExampleAssets.meta create mode 100644 AR/Assets/ExampleAssets/Materials.meta create mode 100644 AR/Assets/ExampleAssets/Materials/PlacedCubeMat.mat create mode 100644 AR/Assets/ExampleAssets/Materials/PlacedCubeMat.mat.meta create mode 100644 AR/Assets/ExampleAssets/Materials/PlaneMat.mat create mode 100644 AR/Assets/ExampleAssets/Materials/PlaneMat.mat.meta create mode 100644 AR/Assets/ExampleAssets/Models.meta delete mode 100644 IOT/Docs/test.plantuml delete mode 100644 IOT/lib/pocketbase.js delete mode 100644 IOT/src/admin/getOneAdmin.js delete mode 100644 IOT/src/admin/listAdmins.js delete mode 100644 IOT/src/admin/updateAdmin.js delete mode 100644 IOT/src/data/createData.js delete mode 100644 IOT/src/data/deleteData.js delete mode 100644 IOT/src/data/getOneData.js delete mode 100644 IOT/src/data/updateData.js delete mode 100644 IOT/src/trashs/createTrash.js delete mode 100644 IOT/src/trashs/deleteTrash.js delete mode 100644 IOT/src/trashs/getOneTrash.js delete mode 100644 IOT/src/trashs/updateTrash.js delete mode 100644 IOT/src/users/getOneUser.js delete mode 100644 IOT/src/users/login.js delete mode 100644 IOT/test/Insomnia_test_api.json delete mode 100644 IOT/test/testGet.js diff --git a/.env.local b/.env.local deleted file mode 100644 index 40eea73..0000000 --- a/.env.local +++ /dev/null @@ -1 +0,0 @@ -PB_URL="https://iot.epi.cb85.software" \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bcbb513 --- /dev/null +++ b/.gitignore @@ -0,0 +1,81 @@ +.idea + +# Created by https://www.toptal.com/developers/gitignore/api/unity +# Edit at https://www.toptal.com/developers/gitignore?templates=unity + +### Unity ### +# This .gitignore file should be placed at the root of your Unity project directory +# +# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore +/[Ll]ibrary/ +/[Tt]emp/ +/[Oo]bj/ +/[Bb]uild/ +/[Bb]uilds/ +/[Ll]ogs/ +/[Uu]ser[Ss]ettings/ + +# MemoryCaptures can get excessive in size. +# They also could contain extremely sensitive data +/[Mm]emoryCaptures/ + +# Recordings can get excessive in size +/[Rr]ecordings/ + +# Uncomment this line if you wish to ignore the asset store tools plugin +# /[Aa]ssets/AssetStoreTools* + +# Autogenerated Jetbrains Rider plugin +/[Aa]ssets/Plugins/Editor/JetBrains* + +# Visual Studio cache directory +.vs/ + +# Gradle cache directory +.gradle/ + +# Autogenerated VS/MD/Consulo solution and project files +ExportedObj/ +.consulo/ +*.csproj +*.unityproj +*.sln +*.suo +*.tmp +*.user +*.userprefs +*.pidb +*.booproj +*.svd +*.pdb +*.mdb +*.opendb +*.VC.db + +# Unity3D generated meta files +*.pidb.meta +*.pdb.meta +*.mdb.meta + +# Unity3D generated file on crash reports +sysinfo.txt + +# Builds +*.apk +*.aab +*.unitypackage +*.app + +# Crashlytics generated file +crashlytics-build.properties + +# Packed Addressables +/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* + +# Temporary auto-generated Android Assets +/[Aa]ssets/[Ss]treamingAssets/aa.meta +/[Aa]ssets/[Ss]treamingAssets/aa/* + +# End of https://www.toptal.com/developers/gitignore/api/unity + +IOT/docs/doxygen output/* \ No newline at end of file diff --git a/.history/IOT/lib/pocketbase_20230403114544.js b/.history/IOT/lib/pocketbase_20230403114544.js deleted file mode 100644 index eb247a6..0000000 --- a/.history/IOT/lib/pocketbase_20230403114544.js +++ /dev/null @@ -1,5 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase(process.env.PB_URL); - -export default pb; \ No newline at end of file diff --git a/.history/IOT/lib/pocketbase_20230403121322.js b/.history/IOT/lib/pocketbase_20230403121322.js deleted file mode 100644 index d82a7ef..0000000 --- a/.history/IOT/lib/pocketbase_20230403121322.js +++ /dev/null @@ -1,7 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase(process.env.PB_URL); - -const authData = await pb.collection('users').authWithPassword('michel.deghaud@gmail.com', 'Kimbomaye67'); - -export default pb; \ No newline at end of file diff --git a/.history/IOT/src/admin/getOneAdmin_20230424110353.js b/.history/IOT/src/admin/getOneAdmin_20230424110353.js deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/src/admin/getOneAdmin_20230424110405.js b/.history/IOT/src/admin/getOneAdmin_20230424110405.js deleted file mode 100644 index 12dab26..0000000 --- a/.history/IOT/src/admin/getOneAdmin_20230424110405.js +++ /dev/null @@ -1,7 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('http://127.0.0.1:8090'); - -await pb.admins.authWithPassword('test@example.com', '123456'); - -const admin = await pb.admins.getOne('ADMIN_ID'); \ No newline at end of file diff --git a/.history/IOT/src/admin/getOneAdmin_20230424142525.js b/.history/IOT/src/admin/getOneAdmin_20230424142525.js deleted file mode 100644 index 297ef49..0000000 --- a/.history/IOT/src/admin/getOneAdmin_20230424142525.js +++ /dev/null @@ -1,7 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -await pb.admins.authWithPassword('test@example.com', '123456'); - -const admin = await pb.admins.getOne('ADMIN_ID'); \ No newline at end of file diff --git a/.history/IOT/src/admin/listAdmins_20230424110219.js b/.history/IOT/src/admin/listAdmins_20230424110219.js deleted file mode 100644 index f0b8096..0000000 --- a/.history/IOT/src/admin/listAdmins_20230424110219.js +++ /dev/null @@ -1,18 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('http://127.0.0.1:8090'); - -... - -await pb.admins.authWithPassword('test@example.com', '123456'); - -// fetch a paginated records list -const resultList = await pb.admins.getList(1, 100, { - filter: 'created >= '2022-01-01 00:00:00'', -}); - -// you can also fetch all records at once via getFullList -const admins = await pb.admins.getFullList({ sort: '-created' }); - -// or fetch only the first admin that matches the specified filter -const admin = await pb.admins.getFirstListItem('email~"test"'); \ No newline at end of file diff --git a/.history/IOT/src/admin/listAdmins_20230424110316.js b/.history/IOT/src/admin/listAdmins_20230424110316.js deleted file mode 100644 index a7c626f..0000000 --- a/.history/IOT/src/admin/listAdmins_20230424110316.js +++ /dev/null @@ -1,16 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('http://127.0.0.1:8090'); - -await pb.admins.authWithPassword('test@example.com', '123456'); - -// fetch a paginated records list -const resultList = await pb.admins.getList(1, 100, { - filter: 'created >= \'2022-01-01 00:00:00\'', -}); - -// you can also fetch all records at once via getFullList -const admins = await pb.admins.getFullList({ sort: '-created' }); - -// or fetch only the first admin that matches the specified filter -const admin = await pb.admins.getFirstListItem('email~"test"'); \ No newline at end of file diff --git a/.history/IOT/src/admin/listAdmins_20230424142541.js b/.history/IOT/src/admin/listAdmins_20230424142541.js deleted file mode 100644 index 2953037..0000000 --- a/.history/IOT/src/admin/listAdmins_20230424142541.js +++ /dev/null @@ -1,16 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -await pb.admins.authWithPassword('test@example.com', '123456'); - -// fetch a paginated records list -const resultList = await pb.admins.getList(1, 100, { - filter: 'created >= \'2022-01-01 00:00:00\'', -}); - -// you can also fetch all records at once via getFullList -const admins = await pb.admins.getFullList({ sort: '-created' }); - -// or fetch only the first admin that matches the specified filter -const admin = await pb.admins.getFirstListItem('email~"test"'); \ No newline at end of file diff --git a/.history/IOT/src/admin/updateAdmin_20230424121758.js b/.history/IOT/src/admin/updateAdmin_20230424121758.js deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/src/admin/updateAdmin_20230424121810.js b/.history/IOT/src/admin/updateAdmin_20230424121810.js deleted file mode 100644 index a3803dc..0000000 --- a/.history/IOT/src/admin/updateAdmin_20230424121810.js +++ /dev/null @@ -1,13 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('http://127.0.0.1:8090'); - -... - -await pb.admins.authWithPassword('test@example.com', '1234567890'); - -const admin = await pb.admins.update('ADMIN_ID', { - password: '0987654321', - passwodConfirm: '0987654321', - avatar: 4, -}); \ No newline at end of file diff --git a/.history/IOT/src/admin/updateAdmin_20230424121813.js b/.history/IOT/src/admin/updateAdmin_20230424121813.js deleted file mode 100644 index aa4ba09..0000000 --- a/.history/IOT/src/admin/updateAdmin_20230424121813.js +++ /dev/null @@ -1,11 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('http://127.0.0.1:8090'); - -await pb.admins.authWithPassword('test@example.com', '1234567890'); - -const admin = await pb.admins.update('ADMIN_ID', { - password: '0987654321', - passwodConfirm: '0987654321', - avatar: 4, -}); \ No newline at end of file diff --git a/.history/IOT/src/admin/updateAdmin_20230424142522.js b/.history/IOT/src/admin/updateAdmin_20230424142522.js deleted file mode 100644 index e0b6bc8..0000000 --- a/.history/IOT/src/admin/updateAdmin_20230424142522.js +++ /dev/null @@ -1,11 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -await pb.admins.authWithPassword('test@example.com', '1234567890'); - -const admin = await pb.admins.update('ADMIN_ID', { - password: '0987654321', - passwodConfirm: '0987654321', - avatar: 4, -}); \ No newline at end of file diff --git a/.history/IOT/src/data/createData_20230424120319.js b/.history/IOT/src/data/createData_20230424120319.js deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/src/data/createData_20230424120329.js b/.history/IOT/src/data/createData_20230424120329.js deleted file mode 100644 index abb4d71..0000000 --- a/.history/IOT/src/data/createData_20230424120329.js +++ /dev/null @@ -1,13 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -// example create data -const data = { - "trash_id": "RELATION_RECORD_ID", - "unit": "test", - "status": true, - "value": "test" -}; - -const record = await pb.collection('data').create(data); \ No newline at end of file diff --git a/.history/IOT/src/data/deleteData_20230424120232.js b/.history/IOT/src/data/deleteData_20230424120232.js deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/src/data/deleteData_20230424120242.js b/.history/IOT/src/data/deleteData_20230424120242.js deleted file mode 100644 index da35de3..0000000 --- a/.history/IOT/src/data/deleteData_20230424120242.js +++ /dev/null @@ -1,5 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -await pb.collection('data').delete('RECORD_ID'); \ No newline at end of file diff --git a/.history/IOT/src/data/getOneData_20230418144318.js b/.history/IOT/src/data/getOneData_20230418144318.js deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/src/data/getOneData_20230418144340.js b/.history/IOT/src/data/getOneData_20230418144340.js deleted file mode 100644 index 25cddbe..0000000 --- a/.history/IOT/src/data/getOneData_20230418144340.js +++ /dev/null @@ -1,7 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -const record = await pb.collection('data').getOne('RECORD_ID', { - expand: 'relField1,relField2.subRelField', -}); \ No newline at end of file diff --git a/.history/IOT/src/data/updateData_20230424115603.js b/.history/IOT/src/data/updateData_20230424115603.js deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/src/data/updateData_20230424115617.js b/.history/IOT/src/data/updateData_20230424115617.js deleted file mode 100644 index 9590c9f..0000000 --- a/.history/IOT/src/data/updateData_20230424115617.js +++ /dev/null @@ -1,13 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -// example update data -const data = { - "trash_id": "RELATION_RECORD_ID", - "unit": "test", - "status": true, - "value": "test" -}; - -const record = await pb.collection('data').update('RECORD_ID', data); \ No newline at end of file diff --git a/.history/IOT/src/trashs/createTrash_20230424114542.js b/.history/IOT/src/trashs/createTrash_20230424114542.js deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/src/trashs/createTrash_20230424114550.js b/.history/IOT/src/trashs/createTrash_20230424114550.js deleted file mode 100644 index c51c07b..0000000 --- a/.history/IOT/src/trashs/createTrash_20230424114550.js +++ /dev/null @@ -1,10 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -// example create data -const data = { - "owner": "RELATION_RECORD_ID" -}; - -const record = await pb.collection('trashs').create(data); \ No newline at end of file diff --git a/.history/IOT/src/trashs/deleteTrash_20230424114902.js b/.history/IOT/src/trashs/deleteTrash_20230424114902.js deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/src/trashs/deleteTrash_20230424114909.js b/.history/IOT/src/trashs/deleteTrash_20230424114909.js deleted file mode 100644 index 2785102..0000000 --- a/.history/IOT/src/trashs/deleteTrash_20230424114909.js +++ /dev/null @@ -1,5 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -await pb.collection('trashs').delete('RECORD_ID'); \ No newline at end of file diff --git a/.history/IOT/src/trashs/getOneTrash_20230418144220.js b/.history/IOT/src/trashs/getOneTrash_20230418144220.js deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/src/trashs/getOneTrash_20230418144351.js b/.history/IOT/src/trashs/getOneTrash_20230418144351.js deleted file mode 100644 index 72a1303..0000000 --- a/.history/IOT/src/trashs/getOneTrash_20230418144351.js +++ /dev/null @@ -1,7 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -const record = await pb.collection('trashs').getOne('RECORD_ID', { - expand: 'relField1,relField2.subRelField', -}); \ No newline at end of file diff --git a/.history/IOT/src/trashs/updateTrash_20230424113739.js b/.history/IOT/src/trashs/updateTrash_20230424113739.js deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/src/trashs/updateTrash_20230424113756.js b/.history/IOT/src/trashs/updateTrash_20230424113756.js deleted file mode 100644 index 395bb75..0000000 --- a/.history/IOT/src/trashs/updateTrash_20230424113756.js +++ /dev/null @@ -1,10 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -// example update data -const data = { - "owner": "RELATION_RECORD_ID" -}; - -const record = await pb.collection('trashs').update('RECORD_ID', data); \ No newline at end of file diff --git a/.history/IOT/src/users/getOneUser_20230418144130 b/.history/IOT/src/users/getOneUser_20230418144130 deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/src/users/getOneUser_20230418144155 b/.history/IOT/src/users/getOneUser_20230418144155 deleted file mode 100644 index 1bb9b17..0000000 --- a/.history/IOT/src/users/getOneUser_20230418144155 +++ /dev/null @@ -1,7 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -const record = await pb.collection('users').getOne('RECORD_ID', { - expand: 'relField1,relField2.subRelField', -}); \ No newline at end of file diff --git a/.history/IOT/src/users/login_20230418170045.js b/.history/IOT/src/users/login_20230418170045.js deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/src/users/login_20230418170119.js b/.history/IOT/src/users/login_20230418170119.js deleted file mode 100644 index 4a8b83d..0000000 --- a/.history/IOT/src/users/login_20230418170119.js +++ /dev/null @@ -1,16 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -const authData = await pb.collection('users').authWithPassword( - 'YOUR_USERNAME_OR_EMAIL', - 'YOUR_PASSWORD', -); - -// after the above you can also access the auth data from the authStore -console.log(pb.authStore.isValid); -console.log(pb.authStore.token); -console.log(pb.authStore.model.id); - -// "logout" the last authenticated account -pb.authStore.clear(); \ No newline at end of file diff --git a/.history/IOT/test/Insomnia-All_2023-04-03_20230411103956.json b/.history/IOT/test/Insomnia-All_2023-04-03_20230411103956.json deleted file mode 100644 index 8cfabeb..0000000 --- a/.history/IOT/test/Insomnia-All_2023-04-03_20230411103956.json +++ /dev/null @@ -1 +0,0 @@ -{"_type":"export","__export_format":4,"__export_date":"2023-04-03T13:50:30.902Z","__export_source":"insomnia.desktop.app:v2023.1.0","resources":[{"_id":"req_7ab7afd204f84b64b0f12c0ac2cce728","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680528568144,"created":1680528426928,"url":"https://iot.epi.cb85.software/api/collections/users/records/","name":"List users","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1680528426928,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","parentId":null,"modified":1680529607763,"created":1680528426859,"name":"Test API","description":"","scope":"design","_type":"workspace"},{"_id":"req_15f80c73d6184fcaa84a27c61f0e9d80","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680529540579,"created":1680528602721,"url":"https://iot.epi.cb85.software/api/collections/users/records","name":"Create users","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"username\": \"nico\",\n \"email\": \"nicolas.sans@epitech.eu\",\n \"emailVisibility\": true,\n \"password\": \"12345abcdefg\",\n \"passwordConfirm\": \"12345abcdefg\",\n \"name\": \"test\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1680528602722,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b1a4c2a1ac7949a9bef9a1dcdee28ef0","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680529705996,"created":1680529686485,"url":"https://iot.epi.cb85.software/api/collections/trashs/records","name":"List trashs","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1680529686485,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_33bf2e1173ba46eea65e1fca84d4a49d","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680529740613,"created":1680529725947,"url":"https://iot.epi.cb85.software/api/collections/data/records","name":"List data","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1680529725947,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_c064b9f18a216b0e8542bcc13d85f87eae7567c9","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680528426923,"created":1680528426923,"name":"Base Environment","data":{},"dataPropertyOrder":null,"color":null,"isPrivate":false,"metaSortKey":1680528426923,"_type":"environment"},{"_id":"jar_c064b9f18a216b0e8542bcc13d85f87eae7567c9","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680528426925,"created":1680528426925,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_96bf7588a8b04c9ea2fb780dc2e6b0f5","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680529607757,"created":1680528426887,"fileName":"Test API","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"uts_8ae620046c8a4f17af78e1354b40b6e2","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680528426929,"created":1680528426929,"name":"Example Test Suite","_type":"unit_test_suite"},{"_id":"ut_a4ef4a2ba5a84ec09d963c48c2505ebd","parentId":"uts_8ae620046c8a4f17af78e1354b40b6e2","modified":1680528528479,"created":1680528524523,"requestId":"req_7ab7afd204f84b64b0f12c0ac2cce728","name":"Returns 200","code":"const response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);","_type":"unit_test"}]} \ No newline at end of file diff --git a/.history/IOT/test/Insomnia-All_2023-04-03_20230411104947.json b/.history/IOT/test/Insomnia-All_2023-04-03_20230411104947.json deleted file mode 100644 index 6780042..0000000 --- a/.history/IOT/test/Insomnia-All_2023-04-03_20230411104947.json +++ /dev/null @@ -1,168 +0,0 @@ -{ - "_type":"export", - "__export_format":4, - "__export_date":"2023-04-03T13:50:30.902Z", - "__export_source":"insomnia.desktop.app:v2023.1.0", - "resources":[ - { - "_id":"req_7ab7afd204f84b64b0f12c0ac2cce728", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680528568144, - "created":1680528426928, - "url":"https://iot.epi.cb85.software/api/collections/users/records/", - "name":"List users", - "description":"", - "method":"GET", - "body":{}, - "parameters":[], - "headers":[], - "authentication":{}, - "metaSortKey":-1680528426928, - "isPrivate":false, - "settingStoreCookies":true, - "settingSendCookies":true, - "settingDisableRenderRequestBody":false, - "settingEncodeUrl":true, - "settingRebuildPath":true, - "settingFollowRedirects":"global", - "_type":"request" - }, - { - "_id":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "parentId":null, - "modified":1680529607763, - "created":1680528426859, - "name":"Test API", - "description":"", - "scope":"design", - "_type":"workspace" - }, - { - "_id":"req_15f80c73d6184fcaa84a27c61f0e9d80", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680529540579, - "created":1680528602721, - "url":"https://iot.epi.cb85.software/api/collections/users/records", - "name":"Create users", - "description":"", - "method":"POST", - "body":{ - "mimeType":"application/json", - "text":"{\n \"username\": \"nico\",\n \"email\": \"nicolas.sans@epitech.eu\",\n \"emailVisibility\": true,\n \"password\": \"12345abcdefg\",\n \"passwordConfirm\": \"12345abcdefg\",\n \"name\": \"test\"\n}" - }, - "parameters":[], - "headers":[ - { - "name":"Content-Type", - "value":"application/json" - } - ], - "authentication":{}, - "metaSortKey":-1680528602722, - "isPrivate":false, - "settingStoreCookies":true, - "settingSendCookies":true, - "settingDisableRenderRequestBody":false, - "settingEncodeUrl":true, - "settingRebuildPath":true, - "settingFollowRedirects":"global", - "_type":"request" - }, - { - "_id":"req_b1a4c2a1ac7949a9bef9a1dcdee28ef0", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680529705996, - "created":1680529686485, - "url":"https://iot.epi.cb85.software/api/collections/trashs/records", - "name":"List trashs", - "description":"", - "method":"GET", - "body":{}, - "parameters":[], - "headers":[], - "authentication":{}, - "metaSortKey":-1680529686485, - "isPrivate":false, - "settingStoreCookies":true, - "settingSendCookies":true, - "settingDisableRenderRequestBody":false, - "settingEncodeUrl":true, - "settingRebuildPath":true, - "settingFollowRedirects":"global", - "_type":"request" - }, - { - "_id":"req_33bf2e1173ba46eea65e1fca84d4a49d", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680529740613, - "created":1680529725947, - "url":"https://iot.epi.cb85.software/api/collections/data/records", - "name":"List data", - "description":"", - "method":"GET", - "body":{}, - "parameters":[], - "headers":[], - "authentication":{}, - "metaSortKey":-1680529725947, - "isPrivate":false, - "settingStoreCookies":true, - "settingSendCookies":true, - "settingDisableRenderRequestBody":false, - "settingEncodeUrl":true, - "settingRebuildPath":true, - "settingFollowRedirects":"global", - "_type":"request" - }, - { - "_id":"env_c064b9f18a216b0e8542bcc13d85f87eae7567c9", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680528426923, - "created":1680528426923, - "name":"Base Environment", - "data":{}, - "dataPropertyOrder":null, - "color":null, - "isPrivate":false, - "metaSortKey":1680528426923, - "_type":"environment" - }, - { - "_id":"jar_c064b9f18a216b0e8542bcc13d85f87eae7567c9", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680528426925, - "created":1680528426925, - "name":"Default Jar", - "cookies":[], - "_type":"cookie_jar" - }, - { - "_id":"spc_96bf7588a8b04c9ea2fb780dc2e6b0f5", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680529607757, - "created":1680528426887, - "fileName":"Test API", - "contents":"", - "contentType":"yaml", - "_type":"api_spec" - }, - { - "_id":"uts_8ae620046c8a4f17af78e1354b40b6e2", - "parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba", - "modified":1680528426929, - "created":1680528426929, - "name":"Example Test Suite", - "_type":"unit_test_suite" - }, - { - "_id":"ut_a4ef4a2ba5a84ec09d963c48c2505ebd", - "parentId":"uts_8ae620046c8a4f17af78e1354b40b6e2", - "modified":1680528528479, - "created":1680528524523, - "requestId":"req_7ab7afd204f84b64b0f12c0ac2cce728", - "name":"Returns 200", - "code":"const response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);", - "_type":"unit_test" - } - ] -} \ No newline at end of file diff --git a/.history/IOT/test/listUsers_20230411105649.js b/.history/IOT/test/listUsers_20230411105649.js deleted file mode 100644 index e69de29..0000000 diff --git a/.history/IOT/test/listUsers_20230411105948.js b/.history/IOT/test/listUsers_20230411105948.js deleted file mode 100644 index 790ece8..0000000 --- a/.history/IOT/test/listUsers_20230411105948.js +++ /dev/null @@ -1,8 +0,0 @@ -const response1 = await insomnia.send(); -const body = JSON.parse(response1.data); -//const item = body[0]; - -expect(body).to.be.an('object'); -//expect(item).to.be.an(''); -//expect(response1.status).to.equal(200); -//expect(item).to.have.property('symbol'); \ No newline at end of file diff --git a/.history/IOT/test/listUsers_20230411110454.js b/.history/IOT/test/listUsers_20230411110454.js deleted file mode 100644 index fdb10dd..0000000 --- a/.history/IOT/test/listUsers_20230411110454.js +++ /dev/null @@ -1,4 +0,0 @@ -const { assert } = chai; - -const response1 = await insomnia.send(); -assert.equal(response1.status, 200); \ No newline at end of file diff --git a/.history/IOT/test/listUsers_20230411113629.js b/.history/IOT/test/listUsers_20230411113629.js deleted file mode 100644 index 29debe9..0000000 --- a/.history/IOT/test/listUsers_20230411113629.js +++ /dev/null @@ -1,6 +0,0 @@ -const { expect } = chai; - -const response1 = await insomnia.send(); -expect(response1.status).to.equal(200); -const body = JSON.parse(response1.data); -expect(body).to.be.an('object'); \ No newline at end of file diff --git a/.history/IOT/test/listUsers_20230411114246.js b/.history/IOT/test/listUsers_20230411114246.js deleted file mode 100644 index 235bbfa..0000000 --- a/.history/IOT/test/listUsers_20230411114246.js +++ /dev/null @@ -1,6 +0,0 @@ -const { expect } = chai; - -const response1 = await insomnia.send(); -expect(response1.status).to.equal(200); -const body = JSON.parse(response1.data); -expect(body).to.be.an('object'); diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json deleted file mode 100644 index b4269a9..0000000 --- a/.vscode/c_cpp_properties.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "configurations": [ - { - "name": "Mac", - "includePath": [ - "${workspaceFolder}/**" - ], - "defines": [], - "macFrameworkPath": [ - "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks" - ], - "compilerPath": "/usr/bin/clang", - "cStandard": "c17", - "cppStandard": "c++17", - "intelliSenseMode": "macos-clang-x64" - } - ], - "version": 4 -} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..70e34ec --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "C_Cpp.errorSquiggles": "disabled" +} \ No newline at end of file diff --git a/API/docs/diagram.wsd b/API/docs/diagram.wsd new file mode 100644 index 0000000..65c7230 --- /dev/null +++ b/API/docs/diagram.wsd @@ -0,0 +1,29 @@ +@startuml diagram +class users { + id: text + username: text + email: email + name: text + image: file + created: date + updated: date +} +class trashs{ + id: text + value: text + author: users + created: date + updated: date +} +class data { + id: text + value: number + poubelle_id: trashs + unit: text + status: bool + created: date + updated: date +} +users "1" <-- trashs +trashs "1" <-- data +@enduml \ No newline at end of file diff --git a/AR.meta b/AR.meta new file mode 100644 index 0000000..0b845e9 --- /dev/null +++ b/AR.meta @@ -0,0 +1,3 @@ +fileFormatVersion: 2 +guid: 19cf999df50c445ba3c964510468fb8d +timeCreated: 1679395580 \ No newline at end of file diff --git a/AR/.env.example b/AR/.env.example new file mode 100644 index 0000000..e5252c5 --- /dev/null +++ b/AR/.env.example @@ -0,0 +1,3 @@ +API_URL=https://helloworld.com +API_USER=hello +API_PASSWORD=world diff --git a/AR/.gitattributes b/AR/.gitattributes new file mode 100644 index 0000000..737fa6d --- /dev/null +++ b/AR/.gitattributes @@ -0,0 +1,55 @@ +# 3D models +*.3dm filter=lfs diff=lfs merge=lfs -text +*.3ds filter=lfs diff=lfs merge=lfs -text +*.blend filter=lfs diff=lfs merge=lfs -text +*.c4d filter=lfs diff=lfs merge=lfs -text +*.collada filter=lfs diff=lfs merge=lfs -text +*.dae filter=lfs diff=lfs merge=lfs -text +*.dxf filter=lfs diff=lfs merge=lfs -text +*.fbx filter=lfs diff=lfs merge=lfs -text +*.jas filter=lfs diff=lfs merge=lfs -text +*.lws filter=lfs diff=lfs merge=lfs -text +*.lxo filter=lfs diff=lfs merge=lfs -text +*.ma filter=lfs diff=lfs merge=lfs -text +*.max filter=lfs diff=lfs merge=lfs -text +*.mb filter=lfs diff=lfs merge=lfs -text +*.obj filter=lfs diff=lfs merge=lfs -text +*.ply filter=lfs diff=lfs merge=lfs -text +*.skp filter=lfs diff=lfs merge=lfs -text +*.stl filter=lfs diff=lfs merge=lfs -text +*.ztl filter=lfs diff=lfs merge=lfs -text +# Audio +*.aif filter=lfs diff=lfs merge=lfs -text +*.aiff filter=lfs diff=lfs merge=lfs -text +*.it filter=lfs diff=lfs merge=lfs -text +*.mod filter=lfs diff=lfs merge=lfs -text +*.mp3 filter=lfs diff=lfs merge=lfs -text +*.ogg filter=lfs diff=lfs merge=lfs -text +*.s3m filter=lfs diff=lfs merge=lfs -text +*.wav filter=lfs diff=lfs merge=lfs -text +*.xm filter=lfs diff=lfs merge=lfs -text +# Fonts +*.otf filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +# Images +*.bmp filter=lfs diff=lfs merge=lfs -text +*.exr filter=lfs diff=lfs merge=lfs -text +*.gif filter=lfs diff=lfs merge=lfs -text +*.hdr filter=lfs diff=lfs merge=lfs -text +*.iff filter=lfs diff=lfs merge=lfs -text +*.jpeg filter=lfs diff=lfs merge=lfs -text +*.jpg filter=lfs diff=lfs merge=lfs -text +*.pict filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.psd filter=lfs diff=lfs merge=lfs -text +*.tga filter=lfs diff=lfs merge=lfs -text +*.tif filter=lfs diff=lfs merge=lfs -text +*.tiff filter=lfs diff=lfs merge=lfs -text + + +# Collapse Unity-generated files on GitHub +*.asset linguist-generated +*.mat linguist-generated +*.meta linguist-generated +*.prefab linguist-generated +*.unity linguist-generated \ No newline at end of file diff --git a/AR/.gitignore b/AR/.gitignore new file mode 100644 index 0000000..5161c6c --- /dev/null +++ b/AR/.gitignore @@ -0,0 +1,147 @@ +# This .gitignore file should be placed at the root of your Unity project directory +# First part from https://github.com/github/gitignore/blob/master/Unity.gitignore +# Parkerhill additions at the end + +/[Ll]ibrary/ +/[Tt]emp/ +/[Oo]bj/ +/[Bb]uild/ +/[Bb]uilds/ +/[Ll]ogs/ +/[Uu]ser[Ss]ettings/ + +# MemoryCaptures can get excessive in size. +# They also could contain extremely sensitive data +/[Mm]emoryCaptures/ + +# Asset meta data should only be ignored when the corresponding asset is also ignored +!/[Aa]ssets/**/*.meta + +# Uncomment this line if you wish to ignore the asset store tools plugin +# /[Aa]ssets/AssetStoreTools* + +# Autogenerated Jetbrains Rider plugin +/[Aa]ssets/Plugins/Editor/JetBrains* + +# Visual Studio cache directory +.vs/ + +# Gradle cache directory +.gradle/ + +# Autogenerated VS/MD/Consulo solution and project files +ExportedObj/ +.consulo/ +*.csproj +*.unityproj +*.sln +*.suo +*.tmp +*.user +*.userprefs +*.pidb +*.booproj +*.svd +*.pdb +*.mdb +*.opendb +*.VC.db + +# Unity3D generated meta files +*.pidb.meta +*.pdb.meta +*.mdb.meta + +# Unity3D generated file on crash reports +sysinfo.txt + +# Builds +*.apk +*.aab +*.unitypackage + +# Crashlytics generated file +crashlytics-build.properties + +# Packed Addressables +/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* + +# Temporary auto-generated Android Assets +/[Aa]ssets/[Ss]treamingAssets/aa.meta +/[Aa]ssets/[Ss]treamingAssets/aa/* + + +# ========================= +# PARKERHILL ADDITIONS +# ========================= + +# Unity app files +.GameStatistics +.PlayerSettings + +# parkerhill unity project folder conventions +/AssetBundles/ + + +# ========================= +# OSX +# ========================= +.DS_Store +.AppleDouble +.LSOverride + +# thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + + +# ========================= +# Windows +# ========================= + +# Windows image file caches +Thumbs.db +Thumbs.db.meta +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# Visual Studio stuff +.vs/ +.idea/ +.gradle/ + +PackageBackups/ + +# UWP builds +/UWP/* + + +.env \ No newline at end of file diff --git a/AR/Assets/ExampleAssets.meta b/AR/Assets/ExampleAssets.meta new file mode 100644 index 0000000..471ca40 --- /dev/null +++ b/AR/Assets/ExampleAssets.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5040ff35809714c9f899bd2e7ae0f30a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/AR/Assets/ExampleAssets/Materials.meta b/AR/Assets/ExampleAssets/Materials.meta new file mode 100644 index 0000000..c9033f5 --- /dev/null +++ b/AR/Assets/ExampleAssets/Materials.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0a1aa25d695ea4175bf4920feb2742e1 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/AR/Assets/ExampleAssets/Materials/PlacedCubeMat.mat b/AR/Assets/ExampleAssets/Materials/PlacedCubeMat.mat new file mode 100644 index 0000000..386fb53 --- /dev/null +++ b/AR/Assets/ExampleAssets/Materials/PlacedCubeMat.mat @@ -0,0 +1,109 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-4490881977315335027 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 1 +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: PlacedCubeMat + m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _AlphaClip: 0 + - _Blend: 0 + - _BumpScale: 1 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _EnvironmentReflections: 1 + - _GlossMapScale: 1 + - _Glossiness: 0 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _Smoothness: 0 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _Surface: 0 + - _UVSec: 0 + - _WorkflowMode: 1 + - _ZWrite: 1 + m_Colors: + - _BaseColor: {r: 0, g: 0.74509805, b: 0.8196079, a: 1} + - _Color: {r: 0.9647059, g: 0.455222, b: 0.11854753, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} diff --git a/AR/Assets/ExampleAssets/Materials/PlacedCubeMat.mat.meta b/AR/Assets/ExampleAssets/Materials/PlacedCubeMat.mat.meta new file mode 100644 index 0000000..02b668d --- /dev/null +++ b/AR/Assets/ExampleAssets/Materials/PlacedCubeMat.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 0ce7ca15cd93341beb67396a494cef55 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/AR/Assets/ExampleAssets/Materials/PlaneMat.mat b/AR/Assets/ExampleAssets/Materials/PlaneMat.mat new file mode 100644 index 0000000..6465650 --- /dev/null +++ b/AR/Assets/ExampleAssets/Materials/PlaneMat.mat @@ -0,0 +1,79 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: PlaneMat + m_Shader: {fileID: 4800000, guid: 9b989c81462e144eb95a232bec4719d5, type: 3} + m_ShaderKeywords: + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: {} + disabledShaderPasses: [] + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 2800000, guid: af6bcea09b8134831b6599e2900aef81, type: 3} + m_Scale: {x: 2.25, y: 2.25} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Floats: + - _BumpScale: 1 + - _Cutoff: 0.5 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _GlossMapScale: 1 + - _Glossiness: 0.5 + - _GlossyReflections: 1 + - _Metallic: 0 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.02 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _UVSec: 0 + - _ZWrite: 1 + m_Colors: + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _PlaneColor: {r: 1, g: 1, b: 1, a: 0} + - _TexTintColor: {r: 1, g: 1, b: 1, a: 0.4} diff --git a/AR/Assets/ExampleAssets/Materials/PlaneMat.mat.meta b/AR/Assets/ExampleAssets/Materials/PlaneMat.mat.meta new file mode 100644 index 0000000..7b0cf86 --- /dev/null +++ b/AR/Assets/ExampleAssets/Materials/PlaneMat.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2da0ea038f25a4fa998f183878aedf79 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/AR/Assets/ExampleAssets/Models.meta b/AR/Assets/ExampleAssets/Models.meta new file mode 100644 index 0000000..bb1baf5 --- /dev/null +++ b/AR/Assets/ExampleAssets/Models.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 262e742d15f1b4d1487c6709552f51e9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/IOT/Docs/test.plantuml b/IOT/Docs/test.plantuml deleted file mode 100644 index 2ecad28..0000000 --- a/IOT/Docs/test.plantuml +++ /dev/null @@ -1,15 +0,0 @@ -@startuml - - -class test { - +val:int -} - -class test2 { - +val2:String -} - - - - -@enduml \ No newline at end of file diff --git a/IOT/lib/pocketbase.js b/IOT/lib/pocketbase.js deleted file mode 100644 index d82a7ef..0000000 --- a/IOT/lib/pocketbase.js +++ /dev/null @@ -1,7 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase(process.env.PB_URL); - -const authData = await pb.collection('users').authWithPassword('michel.deghaud@gmail.com', 'Kimbomaye67'); - -export default pb; \ No newline at end of file diff --git a/IOT/src/admin/getOneAdmin.js b/IOT/src/admin/getOneAdmin.js deleted file mode 100644 index 297ef49..0000000 --- a/IOT/src/admin/getOneAdmin.js +++ /dev/null @@ -1,7 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -await pb.admins.authWithPassword('test@example.com', '123456'); - -const admin = await pb.admins.getOne('ADMIN_ID'); \ No newline at end of file diff --git a/IOT/src/admin/listAdmins.js b/IOT/src/admin/listAdmins.js deleted file mode 100644 index 2953037..0000000 --- a/IOT/src/admin/listAdmins.js +++ /dev/null @@ -1,16 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -await pb.admins.authWithPassword('test@example.com', '123456'); - -// fetch a paginated records list -const resultList = await pb.admins.getList(1, 100, { - filter: 'created >= \'2022-01-01 00:00:00\'', -}); - -// you can also fetch all records at once via getFullList -const admins = await pb.admins.getFullList({ sort: '-created' }); - -// or fetch only the first admin that matches the specified filter -const admin = await pb.admins.getFirstListItem('email~"test"'); \ No newline at end of file diff --git a/IOT/src/admin/updateAdmin.js b/IOT/src/admin/updateAdmin.js deleted file mode 100644 index e0b6bc8..0000000 --- a/IOT/src/admin/updateAdmin.js +++ /dev/null @@ -1,11 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -await pb.admins.authWithPassword('test@example.com', '1234567890'); - -const admin = await pb.admins.update('ADMIN_ID', { - password: '0987654321', - passwodConfirm: '0987654321', - avatar: 4, -}); \ No newline at end of file diff --git a/IOT/src/data/createData.js b/IOT/src/data/createData.js deleted file mode 100644 index abb4d71..0000000 --- a/IOT/src/data/createData.js +++ /dev/null @@ -1,13 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -// example create data -const data = { - "trash_id": "RELATION_RECORD_ID", - "unit": "test", - "status": true, - "value": "test" -}; - -const record = await pb.collection('data').create(data); \ No newline at end of file diff --git a/IOT/src/data/deleteData.js b/IOT/src/data/deleteData.js deleted file mode 100644 index da35de3..0000000 --- a/IOT/src/data/deleteData.js +++ /dev/null @@ -1,5 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -await pb.collection('data').delete('RECORD_ID'); \ No newline at end of file diff --git a/IOT/src/data/getOneData.js b/IOT/src/data/getOneData.js deleted file mode 100644 index 25cddbe..0000000 --- a/IOT/src/data/getOneData.js +++ /dev/null @@ -1,7 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -const record = await pb.collection('data').getOne('RECORD_ID', { - expand: 'relField1,relField2.subRelField', -}); \ No newline at end of file diff --git a/IOT/src/data/updateData.js b/IOT/src/data/updateData.js deleted file mode 100644 index 9590c9f..0000000 --- a/IOT/src/data/updateData.js +++ /dev/null @@ -1,13 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -// example update data -const data = { - "trash_id": "RELATION_RECORD_ID", - "unit": "test", - "status": true, - "value": "test" -}; - -const record = await pb.collection('data').update('RECORD_ID', data); \ No newline at end of file diff --git a/IOT/src/trashs/createTrash.js b/IOT/src/trashs/createTrash.js deleted file mode 100644 index c51c07b..0000000 --- a/IOT/src/trashs/createTrash.js +++ /dev/null @@ -1,10 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -// example create data -const data = { - "owner": "RELATION_RECORD_ID" -}; - -const record = await pb.collection('trashs').create(data); \ No newline at end of file diff --git a/IOT/src/trashs/deleteTrash.js b/IOT/src/trashs/deleteTrash.js deleted file mode 100644 index 2785102..0000000 --- a/IOT/src/trashs/deleteTrash.js +++ /dev/null @@ -1,5 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -await pb.collection('trashs').delete('RECORD_ID'); \ No newline at end of file diff --git a/IOT/src/trashs/getOneTrash.js b/IOT/src/trashs/getOneTrash.js deleted file mode 100644 index 72a1303..0000000 --- a/IOT/src/trashs/getOneTrash.js +++ /dev/null @@ -1,7 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -const record = await pb.collection('trashs').getOne('RECORD_ID', { - expand: 'relField1,relField2.subRelField', -}); \ No newline at end of file diff --git a/IOT/src/trashs/updateTrash.js b/IOT/src/trashs/updateTrash.js deleted file mode 100644 index 395bb75..0000000 --- a/IOT/src/trashs/updateTrash.js +++ /dev/null @@ -1,10 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -// example update data -const data = { - "owner": "RELATION_RECORD_ID" -}; - -const record = await pb.collection('trashs').update('RECORD_ID', data); \ No newline at end of file diff --git a/IOT/src/users/getOneUser.js b/IOT/src/users/getOneUser.js deleted file mode 100644 index 1bb9b17..0000000 --- a/IOT/src/users/getOneUser.js +++ /dev/null @@ -1,7 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -const record = await pb.collection('users').getOne('RECORD_ID', { - expand: 'relField1,relField2.subRelField', -}); \ No newline at end of file diff --git a/IOT/src/users/login.js b/IOT/src/users/login.js deleted file mode 100644 index 4a8b83d..0000000 --- a/IOT/src/users/login.js +++ /dev/null @@ -1,16 +0,0 @@ -import PocketBase from 'pocketbase'; - -const pb = new PocketBase('https://iot.epi.cb85.software'); - -const authData = await pb.collection('users').authWithPassword( - 'YOUR_USERNAME_OR_EMAIL', - 'YOUR_PASSWORD', -); - -// after the above you can also access the auth data from the authStore -console.log(pb.authStore.isValid); -console.log(pb.authStore.token); -console.log(pb.authStore.model.id); - -// "logout" the last authenticated account -pb.authStore.clear(); \ No newline at end of file diff --git a/IOT/test/Insomnia_test_api.json b/IOT/test/Insomnia_test_api.json deleted file mode 100644 index 480af78..0000000 --- a/IOT/test/Insomnia_test_api.json +++ /dev/null @@ -1 +0,0 @@ -{"_type":"export","__export_format":4,"__export_date":"2023-04-24T14:23:01.971Z","__export_source":"insomnia.desktop.app:v2023.1.0","resources":[{"_id":"req_c928ae8ca30d45f58c2acca6450700c9","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682333020073,"created":1681830109120,"url":"https://iot.epi.cb85.software/api/collections/users/auth-methods","name":"List auth methods","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1681844035720.125,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","parentId":null,"modified":1680529607763,"created":1680528426859,"name":"Test API","description":"","scope":"design","_type":"workspace"},{"_id":"req_d7a431c2bd6b443aa28689729371e2a2","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682342617537,"created":1681846915698,"url":"https://iot.epi.cb85.software/api/collections/users/auth-with-oauth2","name":"Auth with Oauth2","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"provider\": \"gitea\",\n\t\"code\": \"eHTxn9Ahw8PhTTI7WGuDy8ACMsZzkF\",\n\t\"codeVerifier\": \"EmH6_WXMGAQcu0yRXmvnMaSRajnOR2W4ISAfc1exFCQ\",\n\t\"redirectUrl\": \"https://iot.epi.cb85.software/api/oauth2-redirect\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681842595731.1875,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b90753f7d18a481ea269635bd158b239","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682331375214,"created":1682326388419,"url":"https://iot.epi.cb85.software/api/admins/auth-with-password","name":"Auth admin with password","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"identity\": \"michel.deghaud@epitech.eu\",\n\t\"password\": \"Kimbomaye67\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681841155742.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_2a7f7f56e24c4e59945defd898074f7c","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682328487677,"created":1682326610426,"url":"https://iot.epi.cb85.software/api/admins","name":"List admins","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681835395786.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_76901b16dd1b49fabca6ed8ac7d260c3","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682331241000,"created":1682330713054,"url":"https://iot.epi.cb85.software/api/admins/7ivn0otv54m6zlp","name":"Get One Admin","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681834435793.875,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_1be9ba2f70ed4f3f9d10452fe3538cec","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682331648034,"created":1682331503147,"url":"https://iot.epi.cb85.software/api/admins/7ivn0otv54m6zlp","name":"Update admin","description":"","method":"PATCH","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681832995804.9375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_4c339bbd67c24b0cbc51bead26b57b0b","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682344299136,"created":1681831555816,"url":"https://iot.epi.cb85.software/api/collections/users/auth-with-password","name":"Auth with password","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"identity\": \"michel.deghaud@gmail.com\",\n\t\"password\": \"Deghaud67\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681778131599.6875,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_7ab7afd204f84b64b0f12c0ac2cce728","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682343995363,"created":1680528426928,"url":"https://iot.epi.cb85.software/api/collections/users/records/","name":"List users","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681726154079.375,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_15f80c73d6184fcaa84a27c61f0e9d80","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681726834266,"created":1680528602721,"url":"https://iot.epi.cb85.software/api/collections/users/records","name":"Create users","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"username\": \"test2\",\n \"email\": \"test2@epitech.eu\",\n \"emailVisibility\": true,\n \"password\": \"test123458\",\n \"passwordConfirm\": \"test123458\",\n \"name\": \"test\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681726013605.6875,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b3bf6800e58547b3819c1c26b0099e8a","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682344406341,"created":1682343419354,"url":"https://iot.epi.cb85.software/api/collections/users/records/sgn9pl046jez90v","name":"Get One User","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE2ODM1NTM5MDEsImlkIjoic2duOXBsMDQ2amV6OTB2IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.vhOsU0fpS0fSHenbE4B16EjH-buveOz7-kP-PzyXBIE"},"metaSortKey":-1681725943368.8438,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_1138badbcac54120bc59393dc85f86de","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682344462156,"created":1681725873132,"url":"https://iot.epi.cb85.software/api/collections/users/records/sgn9pl046jez90v","name":"Update users","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"id\": \"sgn9pl046jez90v\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE2ODM1NTM5MDEsImlkIjoic2duOXBsMDQ2amV6OTB2IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.vhOsU0fpS0fSHenbE4B16EjH-buveOz7-kP-PzyXBIE"},"metaSortKey":-1681725873132,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_fa6497fb827d4a77abe17ff96c84b22a","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1681726753772,"created":1681726622325,"url":"https://iot.epi.cb85.software/api/collections/users/records/nktq3fk3djm3ltt","name":"Delete users","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1681724865407,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b1a4c2a1ac7949a9bef9a1dcdee28ef0","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682345580384,"created":1680529686485,"url":"https://iot.epi.cb85.software/api/collections/trashs/records","name":"List user trashs","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE2ODM1NTM5MDEsImlkIjoic2duOXBsMDQ2amV6OTB2IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.vhOsU0fpS0fSHenbE4B16EjH-buveOz7-kP-PzyXBIE"},"metaSortKey":-1681723165610,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_b4bea38a4692445a83090e872ecb6717","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682345365737,"created":1682344573719,"url":"https://iot.epi.cb85.software/api/collections/trashs/records/wthsm763zdf6fhw","name":"Get One Trash","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb2xsZWN0aW9uSWQiOiJfcGJfdXNlcnNfYXV0aF8iLCJleHAiOjE2ODM1NTM5MDEsImlkIjoic2duOXBsMDQ2amV6OTB2IiwidHlwZSI6ImF1dGhSZWNvcmQifQ.vhOsU0fpS0fSHenbE4B16EjH-buveOz7-kP-PzyXBIE"},"metaSortKey":-1681722315711.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_74925dead7bd47b6b89e6b3ffef82e4d","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682338992691,"created":1681717761795,"url":"https://iot.epi.cb85.software/api/collections/trashs/records","name":"Create trashs","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"owner\": \"sgn9pl046jez90v\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681721465813,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_624d172f1f05407687e5e5936c45f5b1","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682332823813,"created":1681733214164,"url":"https://iot.epi.cb85.software/api/collections/trashs/records/4brip5fwm001bs9","name":"Update trashs","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"id\": \"4brip5fwm001bs9\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681721040863.75,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_c938089bc36a4a97ad3dc0fffdd946a7","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682329694763,"created":1681733027346,"url":"https://iot.epi.cb85.software/api/collections/trashs/records/01n3toy1jrfwise","name":"Delete trashs","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681720615914.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_33bf2e1173ba46eea65e1fca84d4a49d","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682345663806,"created":1680529725947,"url":"https://iot.epi.cb85.software/api/collections/data/records/","name":"List data","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681719766016,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_d20e17e560924dc79993393165168dfc","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682345839134,"created":1682345694110,"url":"https://iot.epi.cb85.software/api/collections/data/records/egi1jxcr1snweh9","name":"Get One Data","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681718916117.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_18aa204984174f768a3af0f99fc2cdf6","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682330395318,"created":1681718066219,"url":"https://iot.epi.cb85.software/api/collections/data/records","name":"Create data","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n \"value\": 234,\n \"trash_id\": \"gdnuxl0wlgurtj3\",\n \"unit\": \"test\",\n \"status\": true\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{},"metaSortKey":-1681718066219,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_f0869f5968c440ca8ea5c6089cbffc12","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682330127646,"created":1681733251871,"url":"https://iot.epi.cb85.software/api/collections/data/records/fx5te9es6uyxeq1","name":"Update data","description":"","method":"PATCH","body":{"mimeType":"application/json","text":"{\n\t\"id\": \"fx5te9es6uyxeq1\"\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json"}],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681718066194,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_164da34d5a9d4fb3975c006cee0932d4","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682330487505,"created":1681733131221,"url":"https://iot.epi.cb85.software/api/collections/data/records/hdwyf32g9g5yxil","name":"Delete data","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{"type":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2ODM1MzgwNjksImlkIjoiMWF3dGxoY3NhYm0xMjJ3IiwidHlwZSI6ImFkbWluIn0.74UU8PXcApJwFzCrzi-SSNIUJeqrWIDCoKy8zti4A_s"},"metaSortKey":-1681718066169,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_c064b9f18a216b0e8542bcc13d85f87eae7567c9","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680528426923,"created":1680528426923,"name":"Base Environment","data":{},"dataPropertyOrder":null,"color":null,"isPrivate":false,"metaSortKey":1680528426923,"_type":"environment"},{"_id":"jar_c064b9f18a216b0e8542bcc13d85f87eae7567c9","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1682342256588,"created":1680528426925,"name":"Default Jar","cookies":[{"key":"i_like_gitea","value":"b7b17fd0060f694f","domain":"gitea.com","path":"/","httpOnly":true,"extensions":["SameSite=Lax"],"hostOnly":true,"creation":"2023-04-24T13:17:36.581Z","lastAccessed":"2023-04-24T13:17:36.581Z","id":"39265638773502776"},{"key":"_csrf","value":"rThISCKnUa8G9UzaeKApiaUmjGg6MTY4MjM0MjI1NjgxMjQ2MTU4Nw","maxAge":86400,"domain":"gitea.com","path":"/","httpOnly":true,"extensions":["SameSite=Lax"],"hostOnly":true,"creation":"2023-04-24T13:17:36.583Z","lastAccessed":"2023-04-24T13:17:36.583Z","id":"09793023360768416"}],"_type":"cookie_jar"},{"_id":"spc_96bf7588a8b04c9ea2fb780dc2e6b0f5","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680529607757,"created":1680528426887,"fileName":"Test API","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"uts_8ae620046c8a4f17af78e1354b40b6e2","parentId":"wrk_c2f3bac211ca48afb0e9b938a5dc22ba","modified":1680528426929,"created":1680528426929,"name":"Example Test Suite","_type":"unit_test_suite"},{"_id":"ut_a4ef4a2ba5a84ec09d963c48c2505ebd","parentId":"uts_8ae620046c8a4f17af78e1354b40b6e2","modified":1681717662451,"created":1680528524523,"requestId":"req_b1a4c2a1ac7949a9bef9a1dcdee28ef0","name":"Returns 200","code":"const response1 = await insomnia.send();\nexpect(response1.status).to.equal(200);\nconst body = JSON.parse(response1.data);\nexpect(body).to.be.an('object');\n\n//expect(body).to.be.an('object');\n//expect(item).to.be.an('string');\n//expect(response1.status).to.equal(200);\n//expect(item).to.have.property('symbol');","_type":"unit_test"}]} \ No newline at end of file diff --git a/IOT/test/testGet.js b/IOT/test/testGet.js deleted file mode 100644 index 235bbfa..0000000 --- a/IOT/test/testGet.js +++ /dev/null @@ -1,6 +0,0 @@ -const { expect } = chai; - -const response1 = await insomnia.send(); -expect(response1.status).to.equal(200); -const body = JSON.parse(response1.data); -expect(body).to.be.an('object');