Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.0.0 - Continuous recordings #716

Open
wants to merge 485 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
485 commits
Select commit Hold shift + click to select a range
83826cc
remove unnecessary return statement in LicensePlateRecognitionBinaryS…
roflcoopter Jun 29, 2024
c43c791
Merge pull request #778 from roflcoopter/feature/v3.0.0b7-fixes
roflcoopter Jun 29, 2024
7f94317
ensure correct numpy version for python 3.9
roflcoopter Jul 8, 2024
599f57b
Typo
nneul Jul 14, 2024
8ee81a4
Merge pull request #782 from nneul/patch-1
roflcoopter Jul 15, 2024
56b5e02
add filter menu to events page
roflcoopter Jul 16, 2024
1aeb250
upgrade hls.js
roflcoopter Jul 17, 2024
3ce493b
avoid calling loadSource twice on first render
roflcoopter Jul 17, 2024
2636f9e
disable scroll on events page
roflcoopter Jul 17, 2024
d43a423
impove hls streaming from ffmpeg sources
roflcoopter Jul 18, 2024
e283808
make events page layout more compact
roflcoopter Jul 21, 2024
c2d2ce0
rm sponsor
gitsponsored Jul 25, 2024
96258e2
Update NVIDIA link
afaulconbridge Jul 26, 2024
2d73366
Merge pull request #786 from afaulconbridge/patch-1
roflcoopter Jul 27, 2024
d683803
Merge pull request #784 from gitsponsored/patch-3
roflcoopter Jul 31, 2024
65cdbfd
discard segments if extinf cant be extracted
roflcoopter Aug 8, 2024
40feba9
dont remove shared frame it it is the current frame
roflcoopter Aug 8, 2024
e5ec4f8
use hls_flags program_date_time and transcode segments
roflcoopter Aug 8, 2024
2e4a1b7
docker-compose > docker compose
roflcoopter Aug 8, 2024
a014607
Merge pull request #793 from roflcoopter/feature/events-filter
roflcoopter Aug 8, 2024
8ff73f2
fix pip install typo in Dockerfile
roflcoopter Aug 9, 2024
2c2704f
make sure segments are deleted in all cases
roflcoopter Aug 9, 2024
65e8ed7
Merge pull request #796 from roflcoopter/feature/events-filter
roflcoopter Aug 9, 2024
ab6b681
instruct ffmpeg to delete segments to avoid running out of storage
roflcoopter Aug 12, 2024
c17be58
improve performance of m3u8 regexes
roflcoopter Aug 12, 2024
99bdde3
add col adjusted_start_time to significantly speed up recordings to m…
roflcoopter Aug 12, 2024
1ac4749
add status text and indicator to camera overlay
roflcoopter Aug 12, 2024
480c74f
properly handle async subscription on Entities page
roflcoopter Aug 12, 2024
d3fecfd
remove unneeded useEffect
roflcoopter Aug 13, 2024
71f852a
allow selection of multiple cameras with a dynamic layout
roflcoopter Aug 25, 2024
095165a
Update Dockerfile
roflcoopter Aug 25, 2024
4f2417c
Hide scrollbar on configuration page
roflcoopter Aug 25, 2024
3cb5295
avoid removal of frames for object and motion detectors
roflcoopter Aug 25, 2024
b3f36f9
always apply default ffmpeg recoverable errors
roflcoopter Aug 25, 2024
3672e9f
update dialog styling
roflcoopter Aug 25, 2024
1c0bf28
enable safe mode if config fails to load
roflcoopter Aug 25, 2024
5edbfad
make sure shared frames removal does not block restart
roflcoopter Aug 25, 2024
9c5bce8
add nvr string representation
roflcoopter Aug 25, 2024
54bf797
limit table width on larger screens
roflcoopter Aug 27, 2024
9f9f2c7
set event player size from parent using useImperativeHandle
roflcoopter Aug 27, 2024
620c80c
improve layout calculation for EventPlayerCard
roflcoopter Aug 27, 2024
b8065c9
fix recording tests to use adjusted_start_time
roflcoopter Aug 28, 2024
94e014c
Merge pull request #802 from roflcoopter/feature/events-filter
roflcoopter Aug 28, 2024
527f33b
fix codeprojectai object detection when running with no image_size
roflcoopter Aug 31, 2024
cff837d
Merge pull request #803 from roflcoopter/feature/cpai-letterbox-bug
roflcoopter Aug 31, 2024
94305a8
sync all players on events page
roflcoopter Sep 8, 2024
11a9e09
styling updates
roflcoopter Sep 8, 2024
7a8d43d
dont end HLS playlists on gaps
roflcoopter Sep 8, 2024
c033ba6
make sure timeline does not reload on refetch
roflcoopter Sep 9, 2024
716ab6f
react 18 and react-router v5
roflcoopter Sep 9, 2024
a8bd130
upgrade mui to v6
roflcoopter Sep 11, 2024
dc11957
update available timespans over websocket
roflcoopter Sep 16, 2024
9226c74
refactor API to use useInvalidateQueryOnStateChange and useInvalidate…
roflcoopter Sep 18, 2024
ab8dd3e
invalidate event queries on event triggers
roflcoopter Sep 21, 2024
c28d810
fix linter errors
roflcoopter Sep 21, 2024
1f69191
custom video controls
roflcoopter Oct 9, 2024
857abd5
debounce event subscriptions on Events page
roflcoopter Oct 9, 2024
9aa8c17
dispatch camera events only when they are inserted, deleted or update…
roflcoopter Oct 9, 2024
1994f34
correctly pick stream format config
roflcoopter Oct 10, 2024
e8cb82e
return 404 when hls fragments are missing
roflcoopter Oct 10, 2024
67098c7
store zone objects in db
roflcoopter Oct 10, 2024
5ca4f25
virtualize event table for a big performance increase
roflcoopter Oct 14, 2024
38a3526
fix broken import path
roflcoopter Oct 14, 2024
774d308
Merge pull request #810 from roflcoopter/feature/player-syncing
roflcoopter Oct 14, 2024
cf6f54e
install types before running mypy
roflcoopter Oct 14, 2024
82d37c3
Merge pull request #819 from roflcoopter/feature/mypy-ci-types
roflcoopter Oct 14, 2024
f4474ec
display HLS errors to clearly indicate why a player gets paused
roflcoopter Oct 26, 2024
98a54f6
Merge pull request #822 from roflcoopter/feature/hls-error-display
roflcoopter Oct 30, 2024
aad0e64
correctly fetch recordings in the clients timezone
roflcoopter Oct 31, 2024
56484d6
Merge pull request #823 from roflcoopter/feature/recordings-timezone-…
roflcoopter Oct 31, 2024
a2a4391
unified timezone handling
roflcoopter Nov 3, 2024
a7217fe
Merge pull request #824 from roflcoopter/feature/timezone-corrections
roflcoopter Nov 4, 2024
69083be
fix deletion of individual recordings
roflcoopter Nov 4, 2024
06fdc9e
Merge pull request #825 from roflcoopter/feature/fix-recording-deletion
roflcoopter Nov 4, 2024
9a9e418
change tooltip font color so that it is visible in light mode
roflcoopter Nov 4, 2024
5b967a1
dont scroll to top on mount on recordings page
roflcoopter Nov 4, 2024
218f063
Merge pull request #826 from roflcoopter/feature/tooltip-font-color
roflcoopter Nov 4, 2024
9d7e38f
more validation rules for tiers
roflcoopter Nov 8, 2024
faa9fe8
Merge pull request #827 from roflcoopter/feature/tier-validation
roflcoopter Nov 8, 2024
951b7f2
delete all kinds of events from db when their snapshot file is deleted
roflcoopter Nov 8, 2024
96e7398
Merge pull request #829 from roflcoopter/feature/delete-events-on-fil…
roflcoopter Nov 8, 2024
1474af0
set rtsp_transport for ffprobe
roflcoopter Nov 8, 2024
07000a0
Merge pull request #831 from roflcoopter/feature/ffprobe-rtsp-transport
roflcoopter Nov 8, 2024
785cd8a
add SnapshotDomain type to get_snapshot_path
roflcoopter Nov 18, 2024
02f2fe2
allow empty password in camera config
roflcoopter Nov 18, 2024
d2644e9
remove volumes from Dockerfile
roflcoopter Nov 18, 2024
104b19e
run watchdogs in the global background scheduler
roflcoopter Nov 18, 2024
fb5e670
add a timeout when waiting for detection result for darknet
roflcoopter Nov 18, 2024
93482e6
implement RestartableProcess for child process management
roflcoopter Nov 19, 2024
7141a35
add debug logging to cpai detect function
roflcoopter Nov 20, 2024
802b074
add logging for shutdown process and improve shutdown handling
roflcoopter Nov 20, 2024
c33e8af
allow return_objects to return None for darknet
roflcoopter Nov 22, 2024
479fadb
replace threading.Thread with RestartableThread for MQTT callback exe…
roflcoopter Nov 22, 2024
e754788
close queues when restarting process in ChildProcessWorker
roflcoopter Nov 22, 2024
1b23e65
only wait for camera to stop if it is started in Fragmenter
roflcoopter Nov 22, 2024
91e6e46
create event clip dir when concatenation is finished
roflcoopter Nov 22, 2024
37168ca
replace threading.Thread with RestartableThread for fragment concaten…
roflcoopter Nov 22, 2024
0e4a7c0
add SCANNER_RESULT_RETRIES constant and implement retry logic for fra…
roflcoopter Nov 22, 2024
92c3b86
set frame removal timers as daemons in NVR
roflcoopter Nov 22, 2024
d7faa66
refactor NVR recorder logic to use datetime for stopping conditions a…
roflcoopter Nov 22, 2024
1780c8e
ignore changes to latest_thumbnail.jpg in ThumbnailTierHandler
roflcoopter Nov 22, 2024
f1977f8
fix move_on_shutdown
roflcoopter Nov 24, 2024
751e3b7
enhance file deletion logic for FilesMeta, and improve error handling…
roflcoopter Nov 24, 2024
4f85bd7
correctly set name for RestartableProcess
roflcoopter Nov 26, 2024
72eeef5
add missing subcategory to force_move_files
roflcoopter Nov 26, 2024
e7dc02c
fix check_tier throttle
roflcoopter Nov 26, 2024
1c31be7
generate event clip name in servers timezone
roflcoopter Nov 26, 2024
fba119e
add multiple cleanup jobs to make sure the db and filesystem is in sync
roflcoopter Nov 26, 2024
63c09fe
add indexes for cleanup jobs to improve database query performance
roflcoopter Nov 26, 2024
a971541
update mocks in cpai tests
roflcoopter Nov 26, 2024
731d7e7
Merge pull request #840 from roflcoopter/feature/v3.0.0b11-fixes
roflcoopter Nov 27, 2024
c8bafde
add empty config folder to allow devcontainer to start
roflcoopter Nov 29, 2024
25c7e97
Merge pull request #843 from roflcoopter/feature/add-empty-config-folder
roflcoopter Nov 29, 2024
a7ea127
upgrade docusaurus to v3
roflcoopter Nov 29, 2024
12d11c0
fix logo links
roflcoopter Nov 29, 2024
8221423
restructure sidebar
roflcoopter Nov 29, 2024
5eb9b26
move camera headings to templates
roflcoopter Nov 29, 2024
e61b258
move troubleshooting headings to template
roflcoopter Nov 29, 2024
a3eb343
added new functionality to use compreface subjects for facial recogni…
tantonj Nov 30, 2024
4e33107
move object detector headings to template
roflcoopter Dec 2, 2024
6d53142
make sure linters run on MDX files
roflcoopter Dec 2, 2024
7c51dd5
remove devcontainer config mount
roflcoopter Dec 2, 2024
379b7a3
Merge pull request #846 from roflcoopter/feature/devcontainer-config-…
roflcoopter Dec 2, 2024
a4cc943
move face recognition headings to template
roflcoopter Dec 2, 2024
6de165d
move motion detector headings to template
roflcoopter Dec 2, 2024
4b2d0e5
move camera mjpeg streams to template
roflcoopter Dec 2, 2024
b1ec081
move image classification headings to template
roflcoopter Dec 2, 2024
3abd249
move alpr headings to template
roflcoopter Dec 2, 2024
c4346d9
fix mask generator
roflcoopter Dec 2, 2024
e93f9c4
Moved storage of Compreface Recognition object to vis.data["comprefac…
tantonj Dec 4, 2024
00f2b98
pin types-requests to 2.31.0.6
roflcoopter Dec 4, 2024
bd8f7d1
Merge pull request #847 from roflcoopter/feature/pin-t
roflcoopter Dec 4, 2024
df285e7
Removed the use_subjects config variable from the face_recognition ba…
tantonj Dec 5, 2024
a203613
Merge branch 'dev' into feature/compreface_subjects
tantonj Dec 5, 2024
a17b53b
Merge pull request #845 from tantonj/feature/compreface_subjects
roflcoopter Dec 5, 2024
2b2253b
improve logger documentation
roflcoopter Dec 7, 2024
7902f0e
add recording documentation
roflcoopter Dec 9, 2024
01143a9
fix broken links in docs
roflcoopter Dec 9, 2024
02f3068
disable mdx typechecking
roflcoopter Dec 10, 2024
a7a5daf
add authentication docs
roflcoopter Dec 10, 2024
43541be
enable vscode formatting for markdown files
roflcoopter Dec 10, 2024
a2a46f3
add collapse and open all buttons to component configuration docs
roflcoopter Dec 10, 2024
8f9fe37
add snapshots documentation
roflcoopter Dec 10, 2024
aaf8614
add docker documentation
roflcoopter Dec 10, 2024
7aacc99
Merge pull request #850 from roflcoopter/feature/docs-updates
roflcoopter Dec 11, 2024
3e09787
add logging to file
roflcoopter Dec 11, 2024
37b5a1e
Merge pull request #852 from roflcoopter/feature/log-file
roflcoopter Dec 11, 2024
3cf414b
wait for move_on_shutdown to complete
roflcoopter Dec 11, 2024
f46e7e7
Merge pull request #853 from roflcoopter/feature/wait-for-move-on-shu…
roflcoopter Dec 11, 2024
6dc25dc
allow dates with only recorded video to be selected
roflcoopter Dec 12, 2024
0e70128
Merge pull request #854 from roflcoopter/feature/events-page-date-picker
roflcoopter Dec 12, 2024
48bcf50
use yield_per to avoid cursor closing in _check_tier
roflcoopter Dec 12, 2024
07679e5
Merge pull request #856 from roflcoopter/feature/check-tier-cursor-fix
roflcoopter Dec 12, 2024
e53a3e0
dont materialize when using yield_per
roflcoopter Dec 12, 2024
2b39598
Merge pull request #857 from roflcoopter/feature/check-tier-cursor-fix
roflcoopter Dec 12, 2024
cda8d3f
fetch all rows to avoid cursor closing
roflcoopter Dec 12, 2024
3021569
Merge pull request #858 from roflcoopter/feature/check-tier-cursor-fix
roflcoopter Dec 12, 2024
a447f9a
allow export of individual events
roflcoopter Dec 20, 2024
c0fda8a
remove import of face_recognition to avoid importing dlib
roflcoopter Dec 21, 2024
ae3d6de
lazy import of api endpoints
roflcoopter Dec 21, 2024
0b91139
Merge pull request #865 from roflcoopter/feature/face-recognition-import
roflcoopter Dec 21, 2024
8a33013
allow download of snapshots
roflcoopter Dec 27, 2024
5ba9878
allow download of specific timespan
roflcoopter Dec 30, 2024
8673972
Merge branch 'dev' into feature/export-events
roflcoopter Dec 30, 2024
ad898dc
Merge pull request #869 from roflcoopter/feature/export-events
roflcoopter Dec 31, 2024
7462d8f
check for nan value when clicking the LIVE button
roflcoopter Dec 31, 2024
c185162
Merge pull request #870 from roflcoopter/feature/live-button-nan-check
roflcoopter Dec 31, 2024
e56dd59
reload hls every 5 seconds on fatal errors
roflcoopter Dec 31, 2024
6d0db36
Merge pull request #871 from roflcoopter/feature/hls-error-retry
roflcoopter Dec 31, 2024
c747b3b
reload page when getting a vite preloadError
roflcoopter Dec 31, 2024
b087c50
Merge pull request #872 from roflcoopter/feature/reload-page-chunk-404
roflcoopter Dec 31, 2024
7063eee
use getCameraNameFromQueryCache in Breadcrumbs
roflcoopter Dec 31, 2024
9e36904
Merge pull request #873 from roflcoopter/feature/breadcrumb-util-func
roflcoopter Dec 31, 2024
ea731c4
apply object detection mask the same way as motion detection
roflcoopter Jan 1, 2025
58d644f
Merge pull request #874 from roflcoopter/feature/object-detector-mask
roflcoopter Jan 2, 2025
f1aa40d
properly cleanup after test_setup_components
roflcoopter Jan 2, 2025
7e9af6e
Merge pull request #875 from roflcoopter/feature/shutdown-viseron-in-…
roflcoopter Jan 2, 2025
bfcfb97
add category and subcategory to OrphanedRecordingsCleanup query
roflcoopter Jan 2, 2025
4d151c8
Merge pull request #876 from roflcoopter/feature/orphaned-recordings-…
roflcoopter Jan 2, 2025
d7dea6a
allow pressing enter to login
roflcoopter Jan 2, 2025
f60da5c
Merge pull request #877 from roflcoopter/feature/press-enter-to-login
roflcoopter Jan 2, 2025
ca9cfde
remove future=True from sessionmaker
roflcoopter Jan 2, 2025
9c681d9
Merge pull request #878 from roflcoopter/feature/sessionmaker-future
roflcoopter Jan 2, 2025
f39e78a
change bash to shell in docs codeblocks
roflcoopter Jan 2, 2025
a02e256
add screenshots and videos to event download instructions
roflcoopter Jan 3, 2025
460f8a0
Merge pull request #879 from roflcoopter/feautre/docs-download-screen…
roflcoopter Jan 3, 2025
75dfbf2
Merge pull request #880 from roflcoopter/feature/docs-change-bash-to-…
roflcoopter Jan 3, 2025
db6ee78
add continuous_recording config parameter
roflcoopter Jan 3, 2025
1101b49
document create_event_clip
roflcoopter Jan 3, 2025
087b9bc
prefix downloads with camera identifier
roflcoopter Jan 4, 2025
c7d7635
add continuous_recording to tests
roflcoopter Jan 4, 2025
9ffcb3a
Merge pull request #881 from roflcoopter/feature/continuous-recording…
roflcoopter Jan 4, 2025
5714f98
support for async websocket command handlers
roflcoopter Jan 4, 2025
0870367
make websocket command ping async
roflcoopter Jan 4, 2025
ef44a26
allow async callbacks in data_stream
roflcoopter Jan 5, 2025
c7b22ec
make websocket command subscribe_event async
roflcoopter Jan 5, 2025
d6e023e
make websocket command unsubscribe_event async
roflcoopter Jan 5, 2025
4d276ad
make websocket command subscribe_states async
roflcoopter Jan 5, 2025
b9cea4c
make websocket command get_cameras async
roflcoopter Jan 5, 2025
7fcdf09
make websocket command get_config async
roflcoopter Jan 5, 2025
14cad5f
make websocket command save_config async
roflcoopter Jan 5, 2025
31a332c
make websocket command restart_viseron async
roflcoopter Jan 5, 2025
a3c9b40
make websocket command get_entities async
roflcoopter Jan 5, 2025
8f1ea0e
make websocket command subscribe_timespans async
roflcoopter Jan 5, 2025
14f689e
make websocket command export_recording async
roflcoopter Jan 5, 2025
1406bb6
make websocket command export_snapshot async
roflcoopter Jan 5, 2025
c2114b4
make websocket command export_timespan async
roflcoopter Jan 6, 2025
430b173
make api response_success async
roflcoopter Jan 6, 2025
6f94ffa
sort events in executor
roflcoopter Jan 7, 2025
f959b76
minimize blocking calls in event loop for websocket api
roflcoopter Jan 7, 2025
d934938
optionally enable debug mode for asyncio event loop in webserver
roflcoopter Jan 7, 2025
bc01eb6
run os.path.exists in executor
roflcoopter Jan 7, 2025
0722346
run image processing in executor for live stream
roflcoopter Jan 7, 2025
68d9d5e
await response_success in test
roflcoopter Jan 9, 2025
5ea744f
properly wait for webserver to stop
roflcoopter Jan 10, 2025
4736501
Merge pull request #883 from roflcoopter/feature/websocket-api-async
roflcoopter Jan 10, 2025
4fc96b0
improve shutdown sequence and make sure all threads are stopped
roflcoopter Jan 10, 2025
338de6a
fix minor typos in docs
roflcoopter Jan 10, 2025
2172819
add documentation for adding timestamp to video in FFmpeg configuration
roflcoopter Jan 10, 2025
4020a2b
Merge pull request #884 from roflcoopter/feature/shutdown-sequence-im…
roflcoopter Jan 10, 2025
e874161
Merge pull request #885 from roflcoopter/feature/doc-typos
roflcoopter Jan 10, 2025
8432b14
Update docker.mdx - --env-file vs --env
nneul Jan 12, 2025
09a86c5
Update docker.mdx
nneul Jan 12, 2025
4041c80
fix ffmpeg log pipe closing
roflcoopter Jan 12, 2025
b651a61
Merge pull request #887 from nneul/patch-2
roflcoopter Jan 12, 2025
69db992
Merge pull request #888 from roflcoopter/feature/ffmpeg-close-pipe-fix
roflcoopter Jan 12, 2025
2d95cef
remove files_meta table to avoid costly joins
roflcoopter Jan 14, 2025
cd44767
Merge pull request #890 from roflcoopter/feature/remove-files-meta-table
roflcoopter Jan 15, 2025
1990e8d
add gitsponsors to README
roflcoopter Jan 17, 2025
5ecc262
Merge pull request #891 from roflcoopter/feature/add-gitponsors
roflcoopter Jan 17, 2025
23f393a
add record_only config option which allows for storing 24/7 recording…
roflcoopter Jan 17, 2025
7b387f2
Merge pull request #892 from roflcoopter/feature/only-record-option
roflcoopter Jan 17, 2025
cd276ed
fix mjpeg stream exception
roflcoopter Jan 18, 2025
9f88d28
Merge pull request #893 from roflcoopter/feature/mjpeg-stream-fix
roflcoopter Jan 18, 2025
0d642ea
further asyncio event loop improvements
roflcoopter Jan 18, 2025
cced490
Merge pull request #894 from roflcoopter/feature/event-loop-improvements
roflcoopter Jan 18, 2025
aa0bb4b
upgrade mypy to 1.14.1
roflcoopter Jan 18, 2025
2a60933
Merge pull request #895 from roflcoopter/feature/mypy-upgrade
roflcoopter Jan 18, 2025
b38a8dc
mount workspacefolder/config to /config in devcontainer
roflcoopter Jan 18, 2025
0183e8e
ugprade ci to actions/cache@v4
roflcoopter Jan 18, 2025
ae3d18a
Merge pull request #896 from roflcoopter/feature/dev-container-improv…
roflcoopter Jan 18, 2025
c019b4a
fix so that opening drawer doesnt rerender page
roflcoopter Jan 18, 2025
154a683
add config option to set still image resolution
roflcoopter Jan 18, 2025
416d6fe
fix Header test
roflcoopter Jan 18, 2025
c8fe5f8
Merge pull request #897 from roflcoopter/feature/drawer-rerender
roflcoopter Jan 18, 2025
c621875
Merge pull request #898 from roflcoopter/feature/still-image-resolution
roflcoopter Jan 18, 2025
46448f0
remove gitsponsors
roflcoopter Jan 19, 2025
6fe78f4
Merge pull request #899 from roflcoopter/feature/remove-gitsponsors
roflcoopter Jan 19, 2025
f4b247c
add error boundaries to frontend
roflcoopter Jan 19, 2025
ce907ac
Merge pull request #900 from roflcoopter/feature/error-boundary
roflcoopter Jan 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
52 changes: 34 additions & 18 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,21 @@
"onAutoForward": "silent"
}
},
"userEnvProbe": "loginInteractiveShell",
"runArgs": ["-e", "GIT_EDITOR=code --wait"],
"mounts": [
"source=${localWorkspaceFolder}/config,target=/config,type=bind,consistency=cached"
],
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance",
"ms-python.isort",
"ms-python.flake8",
"ms-python.black-formatter",
"ms-python.pylint",
"ms-python.mypy-type-checker",
"redhat.vscode-yaml",
"esbenp.prettier-vscode",
"GitHub.vscode-pull-request-github",
Expand All @@ -34,29 +41,27 @@
"eamodio.gitlens",
"dbaeumer.vscode-eslint",
"ms-azuretools.vscode-docker",
"unifiedjs.vscode-mdx"
"unifiedjs.vscode-mdx",
"ckolkman.vscode-postgres",
"ms-azure-devops.azure-pipelines"
],
"settings": {
"python.pythonPath": "/usr/local/bin/python",
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.pylintPath": "/usr/local/bin/pylint",
"python.linting.flake8Enabled": true,
"python.linting.flake8Path": "/usr/local/bin/flake8",
"python.linting.pycodestylePath": "/usr/local/bin/pycodestyle",
"python.linting.pydocstylePath": "/usr/local/bin/pydocstyle",
"python.formatting.blackPath": "/usr/local/bin/black",
"python.formatting.provider": "black",
"python.testing.pytestArgs": ["--no-cov"],
"python.linting.mypyEnabled": true,
"python.linting.mypyPath": "/usr/local/bin/mypy",
"isort.check": true,
"editor.rulers": [80],
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.rulers": [88],
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
}
},
"mypy-type-checker.importStrategy": "fromEnvironment",
"pylint.importStrategy": "fromEnvironment",
"black-formatter.importStrategy": "fromEnvironment",
"flake8.importStrategy": "fromEnvironment",
"isort.importStrategy": "fromEnvironment",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.formatOnType": true,
Expand All @@ -73,13 +78,24 @@
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[mdx]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.associations": {
"**/azure-pipelines/*.yml": "azure-pipelines",
"**/azure-pipelines/*.yaml": "azure-pipelines"
},
"search.exclude": {
"**/node_modules": true,
"**/build": true,
"**/.docusaurus": true,
"**/dist": true
}
}
}
},
"features": {
"ghcr.io/devcontainers-contrib/features/curl-apt-get:1": {},
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
}
}
12 changes: 9 additions & 3 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export WORKSPACE_DIR=$PWD
echo "export WORKSPACE_DIR=$PWD" >> $HOME/.bashrc

# Install python deps
pip3 install -r requirements.txt
python3 -m pip install -r requirements.txt

# Install frontend dependencies
cd $WORKSPACE_DIR/frontend
Expand All @@ -25,7 +25,10 @@ do
sed -i "s/$FILE=true/$FILE=false/g" $HOME/.bashrc
done

# Symlink config
# Enable terminal colors
sed -i 's/#force_color_prompt=yes/force_color_prompt=yes/g' $HOME/.bashrc

# Create default config if it is missing
cd $WORKSPACE_DIR
mkdir -p $WORKSPACE_DIR/config
FILE=$WORKSPACE_DIR/config/config.yaml
Expand All @@ -35,7 +38,7 @@ else
echo "Creating default config"
python3 -c "import viseron.config; viseron.config.create_default_config('$FILE')"
fi
ln -s $WORKSPACE_DIR/config/config.yaml /config/config.yaml


# Create .env.local
FILE=$WORKSPACE_DIR/frontend/.env.local
Expand All @@ -45,3 +48,6 @@ else
echo "Creating frontend .env.local"
echo "VITE_PROXY_HOST=localhost:8888" > $FILE
fi

# Generate locale
locale-gen
8 changes: 4 additions & 4 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
!tests/*
!viseron/
!viseron/*
!docker/jetson-nano/pycoral-2.0.0-cp38-cp38-linux_aarch64.whl
!docker/jetson-nano/tflite_runtime-2.5.0.post1-cp38-cp38-linux_aarch64.whl
!docker/yolov4.cfg
!docker/yolov4-tiny.cfg
!manager.py
!docker/ffmpeg_wrapper
!docker/ffprobe_wrapper
!requirements.txt
!requirements_test.txt
!requirements-3.9.txt
!docker/opencv-python-headless-setup.py
!docker/jetson-nano/opencv-tuple.patch
!rootfs/
!frontend/
frontend/node_modules
Expand Down
Loading
Loading