GithubHelp home page GithubHelp logo

Time zone setting about yi-hack-v3 HOT 4 OPEN

shadow-1 avatar shadow-1 commented on August 13, 2024
Time zone setting

from yi-hack-v3.

Comments (4)

shadow-1 avatar shadow-1 commented on August 13, 2024 1

@markusd1984
I did a quick experiment in the past and concluded that changing the timezone on the camera using this method does in fact change the visual timestamp on the video feed (it was some time ago now).

However I ended up having all sorts of issues with the Xiaomi app. Because the timezone on the camera did not match the timezone of the app (which is locked to GMT+8 Hours - Shanghai Time for the Chinese version). The timeline in the app and alerts were all over the place. I had alerts from the future or from the past in the app and could not use the timeline as all my recorded events were shown from the future or the past.

The time in the app was offset by the difference between GMT+8 and the timezone I setup on the camera. That is why I was wary of providing such an option in the firmware before something like RTSP gets developed.

To be fair, I have not done a lot of experimenting with timezones on the camera. I am not aware of a way to change the time that shown in the video feed without affecting the app.

It would take a fair bit of hacking of the Xiaomi apps running on the camera to determine whether the Chinese version of the camera can be made to work with the International version of the app. I have not had the time to experiment with this.

from yi-hack-v3.

lezik avatar lezik commented on August 13, 2024

Need adjusting the time display

from yi-hack-v3.

shadow-1 avatar shadow-1 commented on August 13, 2024

@lezik
Through my experimentation when developing the region hack. I can confirm that the cameras timezone information comes from the Xiaomi servers. It is not based on the system timezone on the camera.

What is very annoying is that the International version of the smartphone app has the ability to change the timezone on the camera. However the Chinese version of the smartphone app has the timezone locked to Shanghai, China timezone (GMT+08:00).

It will require some work, however it may be possible to intercept the the timezone that gets returned from the Xiaomi server and modify it before it gets used by the programs running on the camera. However I believe this will cause lots of problems. I believe the smartphone app will be using Shanghai time whilst the camera will be using your modified timezone. Therefore the app will have recorded events that occurred in the 'past' or in the 'future' (depending on the timezone you setup).

from yi-hack-v3.

markusd1984 avatar markusd1984 commented on August 13, 2024

@shadow-1
Might you have already reviewed the ntpclient solution from fritz-smh or others who are using the euip_test.sh file to modify the time zone ie. robinhenniges.com and xiaoyi.querex.be, wondering if this could help?

I understand there is a difference between the timezone used to log the videos to work with alerts and built-in app timeline vs the timestamp put into the video itself.

The visual timestamp in the video would be really great to have adjusted as it remains with the video vs the timestamp in the file properties that might be lost when copying files.

In my case with Chinese app the time is correctly shown for live feed, alerts and even the timeline, except for the timestamp burned into the video.

Besides, I take that it's not possible or too complex to get the international app working with the Chinese camera?

from yi-hack-v3.

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.