Git Product home page Git Product logo

Comments (11)

roleoroleo avatar roleoroleo commented on August 24, 2024

Is the problem new with 0.1.0?

from sonoff-hack.

skracke avatar skracke commented on August 24, 2024

I have not tested any of the previous versions so I don't know. If I use any of the predefined presets (10-14) everything works fine.
/Erik

from sonoff-hack.

rcsmota avatar rcsmota commented on August 24, 2024

I'm using firmware 0.1.5 and Base Version | V5520.2053.0504build20230103 (GK-200MP2-B) and have same problem.

Predefined presets (10-14) works fine but set preset (0-9) no work, on GUI or ONVIF.

Is there anything that can be done even if it's on the command line?

Thanks

from sonoff-hack.

roleoroleo avatar roleoroleo commented on August 24, 2024

Please, show me your ptz_presets.conf
[root@sonoff-hack]# cat /mnt/mmc/sonoff-hack/etc/ptz_presets.conf

from sonoff-hack.

rcsmota avatar rcsmota commented on August 24, 2024

cat /mnt/mmc/sonoff-hack/etc/ptz_presets.conf
0=Entrada|1227|-573
1=Sofa|2239|-573
2=empty|-1|-1
3=empty|-1|-1
4=empty|-1|-1
5=empty|-1|-1
6=empty|-1|-1
7=empty|-1|-1
8=empty|-1|-1
9=empty|-1|-1

Thanks

from sonoff-hack.

roleoroleo avatar roleoroleo commented on August 24, 2024

Negative number is not ok and will not work.
But I don't know why there is a negative number.
You should try to set again the preset.
The command:
ptz -a get_coord
read the actual position.
It should be
0 <= x <= 3500
and
0 <= y <= 1350

from sonoff-hack.

rcsmota avatar rcsmota commented on August 24, 2024

Thanks @roleoroleo

The command also returns a negative value. Is it because it is pointed downwards?

[root@root]# ptz -a get_coord
Current position: (2257, -1519)

It's a photo of the camera positioning.

IMG_20230418_152308

from sonoff-hack.

roleoroleo avatar roleoroleo commented on August 24, 2024

0 should be cam face down and 3500 should be cam face up.
I don't know why it's negative.
Maybe a different position sensor in your model.
Does the cam rotate up/down/left/right when you restart it?

from sonoff-hack.

rcsmota avatar rcsmota commented on August 24, 2024

Thanks @roleoroleo

I did the following, turned off the camera, removed the SD card and boot with the original firmware, the camera rotate up/down/left/right at the beginning, then turned it off and went up again with the SD card, it also rotate up/down/left/right and now everything is working fine.

Thank you very much for the help, I wouldn't go there without help.

from sonoff-hack.

roleoroleo avatar roleoroleo commented on August 24, 2024

I think it's a sync problem.
When the cam reaches the extreme position the sensor reaches the boundary value (example 3500).
But if you continue to move the cam in the same direction, the cam can no longer move but the value of the position sensor continues to increase.

from sonoff-hack.

github-actions avatar github-actions commented on August 24, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from sonoff-hack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.