Skip to content

Commit

Permalink
fix type and build errors
Browse files Browse the repository at this point in the history
Co-authored-by: Ludo <infinitel8p@users.noreply.github.com>
  • Loading branch information
KrokoNinja and infinitel8p committed Aug 22, 2024
1 parent 943d598 commit 42fc1b6
Show file tree
Hide file tree
Showing 119 changed files with 716 additions and 79 deletions.
8 changes: 4 additions & 4 deletions client/modules/system_helpers.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import psutil


def get_cpu_temp() -> int | None:
def get_cpu_temp():
"""
Returns the CPU temperature of the Raspberry Pi.
Expand All @@ -19,7 +19,7 @@ def get_cpu_temp() -> int | None:
return None


def get_cpu_load() -> int:
def get_cpu_load():
"""
Returns the CPU load as a percentage, considering the maximum load across all cores.
Expand All @@ -32,7 +32,7 @@ def get_cpu_load() -> int:
return round(max_load)


def get_storage_info() -> dict[str, int]:
def get_storage_info():
"""
Returns the total size and used space of the disk where the root directory is mounted.
Expand All @@ -46,7 +46,7 @@ def get_storage_info() -> dict[str, int]:
return {'total_gb': round(total), 'used_gb': round(used)}


def get_ram_usage() -> dict[str, int]:
def get_ram_usage():
"""
Returns the total and used RAM in MB.
Expand Down
16 changes: 8 additions & 8 deletions client/settings/settings.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"TARGET_BT_ADDRESSES": [
{
"address": "1X:XX:XX:XX:XX:XX",
"name": "Device 1"
"name": "Device 1",
"address": "1X:XX:XX:XX:XX:XX"
},
{
"address": "2X:XX:XX:XX:XX:XX",
"name": "Device 2"
"name": "Device 2",
"address": "2X:XX:XX:XX:XX:XX"
}
],
"TARGET_AP_MAC_ADDRESSES": [
{
"address": "XX:XX:XX:XX:XX:X1",
"name": "Device 1"
"name": "Device 1",
"address": "XX:XX:XX:XX:XX:X1"
},
{
"address": "XX:XX:XX:XX:XX:X2",
"name": "Device 2"
"name": "Device 2",
"address": "XX:XX:XX:XX:XX:X2"
}
],
"VideoSaveLocation": "./recordings"
Expand Down
2 changes: 1 addition & 1 deletion server/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/out/

# production
/build
# /build

# misc
.DS_Store
Expand Down
1 change: 1 addition & 0 deletions server/build/BUILD_ID
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
btGTaGhmA4jkYWqWgPmvy
41 changes: 41 additions & 0 deletions server/build/app-build-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"pages": {
"/_not-found/page": [
"static/chunks/webpack-d0ceac4fb78a3613.js",
"static/chunks/fd9d1056-62aaf4b921c84028.js",
"static/chunks/23-0c40d6df9b62e9bb.js",
"static/chunks/main-app-0aa93087e34881e5.js",
"static/chunks/app/_not-found/page-94c683a891433c6f.js"
],
"/layout": [
"static/chunks/webpack-d0ceac4fb78a3613.js",
"static/chunks/fd9d1056-62aaf4b921c84028.js",
"static/chunks/23-0c40d6df9b62e9bb.js",
"static/chunks/main-app-0aa93087e34881e5.js",
"static/css/a71ebf972479bb72.css",
"static/chunks/88-d743b1e99f054a94.js",
"static/chunks/app/layout-6a606e9cf82a6e0b.js"
],
"/archive/page": [
"static/chunks/webpack-d0ceac4fb78a3613.js",
"static/chunks/fd9d1056-62aaf4b921c84028.js",
"static/chunks/23-0c40d6df9b62e9bb.js",
"static/chunks/main-app-0aa93087e34881e5.js",
"static/chunks/app/archive/page-8587b8e6dc7e8fed.js"
],
"/settings/page": [
"static/chunks/webpack-d0ceac4fb78a3613.js",
"static/chunks/fd9d1056-62aaf4b921c84028.js",
"static/chunks/23-0c40d6df9b62e9bb.js",
"static/chunks/main-app-0aa93087e34881e5.js",
"static/chunks/app/settings/page-cd0cfcc5c0e183a7.js"
],
"/page": [
"static/chunks/webpack-d0ceac4fb78a3613.js",
"static/chunks/fd9d1056-62aaf4b921c84028.js",
"static/chunks/23-0c40d6df9b62e9bb.js",
"static/chunks/main-app-0aa93087e34881e5.js",
"static/chunks/app/page-a97176ef3d5dab2a.js"
]
}
}
1 change: 1 addition & 0 deletions server/build/app-path-routes-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"/_not-found/page":"/_not-found","/archive/page":"/archive","/settings/page":"/settings","/page":"/","/favicon.ico/route":"/favicon.ico"}
32 changes: 32 additions & 0 deletions server/build/build-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"polyfillFiles": [
"static/chunks/polyfills-78c92fac7aa8fdd8.js"
],
"devFiles": [],
"ampDevFiles": [],
"lowPriorityFiles": [
"static/btGTaGhmA4jkYWqWgPmvy/_buildManifest.js",
"static/btGTaGhmA4jkYWqWgPmvy/_ssgManifest.js"
],
"rootMainFiles": [
"static/chunks/webpack-d0ceac4fb78a3613.js",
"static/chunks/fd9d1056-62aaf4b921c84028.js",
"static/chunks/23-0c40d6df9b62e9bb.js",
"static/chunks/main-app-0aa93087e34881e5.js"
],
"pages": {
"/_app": [
"static/chunks/webpack-d0ceac4fb78a3613.js",
"static/chunks/framework-f66176bb897dc684.js",
"static/chunks/main-ed23d165475d7128.js",
"static/chunks/pages/_app-6a626577ffa902a4.js"
],
"/_error": [
"static/chunks/webpack-d0ceac4fb78a3613.js",
"static/chunks/framework-f66176bb897dc684.js",
"static/chunks/main-ed23d165475d7128.js",
"static/chunks/pages/_error-1be831200e60c5c0.js"
]
},
"ampFirstPages": []
}
1 change: 1 addition & 0 deletions server/build/cache/eslint/.cache_1lk9r8x
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"/Users/lennertpfundtner/Dev/Security-Cam/server/src/app/archive/page.tsx":"1","/Users/lennertpfundtner/Dev/Security-Cam/server/src/app/layout.tsx":"2","/Users/lennertpfundtner/Dev/Security-Cam/server/src/app/page.tsx":"3","/Users/lennertpfundtner/Dev/Security-Cam/server/src/app/settings/page.tsx":"4","/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/BTDeviceList.tsx":"5","/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/ClientVideoPlayer.tsx":"6","/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/DirectoryPicker.tsx":"7","/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/Navbar.tsx":"8","/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/Navitem.tsx":"9","/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/SystemMonitor.tsx":"10","/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/WiFiDeviceList.tsx":"11","/Users/lennertpfundtner/Dev/Security-Cam/server/src/lib/helpers.ts":"12","/Users/lennertpfundtner/Dev/Security-Cam/server/src/types/BTDeviceTypes.ts":"13"},{"size":4344,"mtime":1724319886877,"results":"14","hashOfConfig":"15"},{"size":615,"mtime":1724316367747,"results":"16","hashOfConfig":"15"},{"size":1101,"mtime":1724316367747,"results":"17","hashOfConfig":"15"},{"size":3472,"mtime":1724319727520,"results":"18","hashOfConfig":"15"},{"size":640,"mtime":1724317998729,"results":"19","hashOfConfig":"15"},{"size":1416,"mtime":1724316367748,"results":"20","hashOfConfig":"15"},{"size":2010,"mtime":1724320021153,"results":"21","hashOfConfig":"15"},{"size":823,"mtime":1724316367748,"results":"22","hashOfConfig":"15"},{"size":409,"mtime":1724316367748,"results":"23","hashOfConfig":"15"},{"size":1862,"mtime":1724316367748,"results":"24","hashOfConfig":"15"},{"size":652,"mtime":1724318101829,"results":"25","hashOfConfig":"15"},{"size":476,"mtime":1724318054776,"results":"26","hashOfConfig":"15"},{"size":55,"mtime":1724317670897,"results":"27","hashOfConfig":"15"},{"filePath":"28","messages":"29","suppressedMessages":"30","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1nc7xq1",{"filePath":"31","messages":"32","suppressedMessages":"33","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"34","messages":"35","suppressedMessages":"36","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"37","messages":"38","suppressedMessages":"39","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"40","messages":"41","suppressedMessages":"42","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"43","messages":"44","suppressedMessages":"45","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"46","messages":"47","suppressedMessages":"48","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"49","messages":"50","suppressedMessages":"51","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"52","messages":"53","suppressedMessages":"54","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"55","messages":"56","suppressedMessages":"57","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"58","messages":"59","suppressedMessages":"60","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"61","messages":"62","suppressedMessages":"63","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"64","messages":"65","suppressedMessages":"66","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/lennertpfundtner/Dev/Security-Cam/server/src/app/archive/page.tsx",[],[],"/Users/lennertpfundtner/Dev/Security-Cam/server/src/app/layout.tsx",[],[],"/Users/lennertpfundtner/Dev/Security-Cam/server/src/app/page.tsx",[],[],"/Users/lennertpfundtner/Dev/Security-Cam/server/src/app/settings/page.tsx",[],[],"/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/BTDeviceList.tsx",[],[],"/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/ClientVideoPlayer.tsx",["67"],[],"/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/DirectoryPicker.tsx",["68"],[],"/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/Navbar.tsx",[],[],"/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/Navitem.tsx",[],[],"/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/SystemMonitor.tsx",[],[],"/Users/lennertpfundtner/Dev/Security-Cam/server/src/components/WiFiDeviceList.tsx",[],[],"/Users/lennertpfundtner/Dev/Security-Cam/server/src/lib/helpers.ts",[],[],"/Users/lennertpfundtner/Dev/Security-Cam/server/src/types/BTDeviceTypes.ts",[],[],{"ruleId":"69","severity":1,"message":"70","line":35,"column":17,"nodeType":"71","endLine":39,"endColumn":19},{"ruleId":"72","severity":1,"message":"73","line":25,"column":8,"nodeType":"74","endLine":25,"endColumn":37,"suggestions":"75"},"@next/next/no-img-element","Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element","JSXOpeningElement","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'fetchDirectories'. Either include it or remove the dependency array.","ArrayExpression",["76"],{"desc":"77","fix":"78"},"Update the dependencies array to be: [directoriesUrl, currentPath, fetchDirectories]",{"range":"79","text":"80"},[786,815],"[directoriesUrl, currentPath, fetchDirectories]"]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions server/build/export-marker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"hasExportPathMap":false,"exportTrailingSlash":false,"isNextImageImported":false}
1 change: 1 addition & 0 deletions server/build/images-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"images":{"deviceSizes":[640,750,828,1080,1200,1920,2048,3840],"imageSizes":[16,32,48,64,96,128,256,384],"path":"/_next/image","loader":"default","loaderFile":"","domains":[],"disableStaticImages":false,"minimumCacheTTL":60,"formats":["image/webp"],"dangerouslyAllowSVG":false,"contentSecurityPolicy":"script-src 'none'; frame-src 'none'; sandbox;","contentDispositionType":"inline","remotePatterns":[],"unoptimized":false,"sizes":[640,750,828,1080,1200,1920,2048,3840,16,32,48,64,96,128,256,384]}}
1 change: 1 addition & 0 deletions server/build/next-minimal-server.js.nft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":1,"files":["../node_modules/styled-jsx/index.js","../node_modules/styled-jsx/package.json","../node_modules/styled-jsx/dist/index/index.js","../node_modules/react/package.json","../node_modules/react/index.js","../node_modules/client-only/package.json","../node_modules/react/cjs/react.production.min.js","../node_modules/client-only/index.js","../node_modules/styled-jsx/style.js","../node_modules/next/dist/compiled/next-server/server.runtime.prod.js","../node_modules/next/package.json","../node_modules/next/dist/server/body-streams.js","../node_modules/next/dist/lib/picocolors.js","../node_modules/next/dist/shared/lib/constants.js","../node_modules/next/dist/server/web/utils.js","../node_modules/next/dist/client/components/app-router-headers.js","../node_modules/next/dist/server/lib/trace/tracer.js","../node_modules/next/dist/server/lib/trace/constants.js","../node_modules/next/dist/client/components/static-generation-async-storage.external.js","../node_modules/next/dist/shared/lib/modern-browserslist-target.js","../node_modules/next/dist/client/components/static-generation-async-storage-instance.js","../node_modules/next/dist/shared/lib/runtime-config.external.js","../node_modules/next/dist/compiled/lru-cache/package.json","../node_modules/next/dist/compiled/node-html-parser/package.json","../node_modules/next/dist/compiled/ws/package.json","../node_modules/@swc/helpers/_/_interop_require_default/package.json","../node_modules/next/dist/client/components/async-local-storage.js","../node_modules/next/dist/compiled/lru-cache/index.js","../node_modules/next/dist/compiled/node-html-parser/index.js","../node_modules/next/dist/compiled/ws/index.js","../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../node_modules/@swc/helpers/package.json","../node_modules/next/dist/compiled/jsonwebtoken/package.json","../node_modules/next/dist/shared/lib/error-source.js","../node_modules/@swc/helpers/cjs/_interop_require_default.cjs","../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../node_modules/next/dist/compiled/jsonwebtoken/index.js","../node_modules/next/dist/compiled/debug/package.json","../node_modules/next/dist/lib/semver-noop.js","../node_modules/next/dist/compiled/debug/index.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/amp-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/html-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/loadable.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/router-context.js","../node_modules/next/dist/server/future/route-modules/app-page/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/future/route-modules/app-page/module.compiled.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/amp-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/app-router-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/entrypoints.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/head-manager-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/hooks-client-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/html-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/image-config-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/loadable.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/router-context.js","../node_modules/next/dist/server/future/route-modules/pages/vendored/contexts/server-inserted-html.js","../node_modules/next/dist/server/future/route-modules/pages/module.compiled.js"]}
1 change: 1 addition & 0 deletions server/build/next-server.js.nft.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions server/build/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type": "commonjs"}
1 change: 1 addition & 0 deletions server/build/prerender-manifest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions server/build/prerender-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"version":4,"routes":{"/":{"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/","dataRoute":"/index.rsc"},"/archive":{"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/archive","dataRoute":"/archive.rsc"},"/settings":{"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/settings","dataRoute":"/settings.rsc"},"/favicon.ico":{"initialHeaders":{"cache-control":"public, max-age=0, must-revalidate","content-type":"image/x-icon","x-next-cache-tags":"_N_T_/layout,_N_T_/favicon.ico/layout,_N_T_/favicon.ico/route,_N_T_/favicon.ico"},"experimentalBypassFor":[{"type":"header","key":"Next-Action"},{"type":"header","key":"content-type","value":"multipart/form-data;.*"}],"initialRevalidateSeconds":false,"srcRoute":"/favicon.ico","dataRoute":null}},"dynamicRoutes":{},"notFoundRoutes":[],"preview":{"previewModeId":"3ac4cb42dc55dc363e93672e2f037704","previewModeSigningKey":"5ac14a0ddec8136575afb466fcfe8d60b2890a397a2b8b2f675c161e54ff17fb","previewModeEncryptionKey":"53c4a3a27a093958aab70767ed96809fce3a4cd8c306fdfbdf49da8e3d3f03c6"}}
1 change: 1 addition & 0 deletions server/build/react-loadable-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading

0 comments on commit 42fc1b6

Please sign in to comment.