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

Rotation camera #1823

Merged
merged 9 commits into from
Jul 10, 2023
Merged

Conversation

callemand
Copy link
Contributor

Pull Request check-list

To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:

  • If your changes affects code, did your write the tests?
  • Are tests passing? (npm test on both front/server)
  • Is the linter passing? (npm run eslint on both front/server)
  • Did you run prettier? (npm run prettier on both front/server)
  • If you are adding a new features/services, did you run integration comparator? (npm run compare-translations on front)
  • Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community for testing before merging.

NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.

Description of change

Add possibility to rotate camera at 90°, 180° and 270°

Screenshot 2023-06-28 at 14 54 01 Screenshot 2023-06-28 at 14 52 04 Screenshot 2023-06-28 at 14 51 57

@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (5380972) 97.83% compared to head (c82cc47) 97.83%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1823   +/-   ##
=======================================
  Coverage   97.83%   97.83%           
=======================================
  Files         711      711           
  Lines       10951    10970   +19     
=======================================
+ Hits        10714    10733   +19     
  Misses        237      237           
Impacted Files Coverage Δ
server/services/rtsp-camera/lib/getImage.js 100.00% <100.00%> (ø)
server/services/rtsp-camera/lib/startStreaming.js 100.00% <100.00%> (ø)
server/utils/constants.js 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@callemand callemand marked this pull request as ready for review June 29, 2023 07:30
Copy link
Contributor

@Pierre-Gilles Pierre-Gilles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this PR ! 🙌

I have a few feedbacks.

I tried it on my machine, and it doesn't work because of a conversion bug in the getImage function.

On the "camera" page, there is an alignment bug on the buttons:

Screenshot 2023-06-30 at 09 55 57

server/utils/constants.js Outdated Show resolved Hide resolved
server/services/rtsp-camera/lib/getImage.js Show resolved Hide resolved
server/migrations/20230628144609-change-rotation-camera.js Outdated Show resolved Hide resolved
server/test/services/rtsp-camera/rtspCamera.test.js Outdated Show resolved Hide resolved
server/test/services/rtsp-camera/rtspCamera.test.js Outdated Show resolved Hide resolved
@callemand
Copy link
Contributor Author

On the "camera" page, there is an alignment bug on the buttons:

Screenshot 2023-06-30 at 09 55 57

I'm not able to have the same behavior on my side. I have show this issue on my production gladys but not on dev.
Do you have a some step to reproduce ?

@Pierre-Gilles
Copy link
Contributor

@callemand I always have the bug, for example with this resolution I have it:

Screenshot 2023-07-03 at 10 50 17

@callemand
Copy link
Contributor Author

@callemand I always have the bug, for example with this resolution I have it:

Screenshot 2023-07-03 at 10 50 17

It's fixed :)

Copy link
Contributor

@Pierre-Gilles Pierre-Gilles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine now, thanks for the fixes! 🙏

@Pierre-Gilles Pierre-Gilles merged commit 7805e29 into GladysAssistant:master Jul 10, 2023
@relativeci
Copy link

relativeci bot commented Jul 10, 2023

Job #1629: Bundle Size — 8.59MiB (~+0.01%).

7805e29(current) vs 9ae2c3c master#1628(baseline)

⚠️ Bundle contains 3 duplicate packages

Metrics (2 changes)
                 Current
Job #1629
     Baseline
Job #1628
Initial JS 4.63MiB(+0.02%) 4.62MiB
Initial CSS 301.84KiB 301.84KiB
Cache Invalidation 53.73% 57.91%
Chunks 47 47
Assets 150 150
Modules 1356 1356
Duplicate Modules 19 19
Duplicate Code 0.67% 0.67%
Packages 124 124
Duplicate Packages 3 3
Total size by type (1 change)
                 Current
Job #1629
     Baseline
Job #1628
CSS 315.14KiB 315.14KiB
Fonts 93.55KiB 93.55KiB
HTML 13.58KiB 13.58KiB
IMG 1.92MiB 1.92MiB
JS 6.24MiB (+0.01%) 6.24MiB
Media 0B 0B
Other 15.29KiB 15.29KiB

View job #1629 reportView master branch activity

@callemand callemand deleted the RotationCamera branch July 11, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants