Giter VIP home page Giter VIP logo

Comments (3)

al-one avatar al-one commented on June 14, 2024

The descriptions are from the petkit cloud server and this component cannot translate them.

from petkit.

rethamazur avatar rethamazur commented on June 14, 2024

ok, thank you for the explanation.
Could it be possible to make a simple translating-ish script?
Example:
if text from Desc attribute is "chinese_words_for_next_feeding_time hh:mm" than set the value to "Next Feeding: hh:mm"

Of course this would be useless if the problem with petkit's server persists.

from petkit.

igorsantos07 avatar igorsantos07 commented on June 14, 2024

I'd rather call this sort of a bug/feature request... It's possible to add X-Locale: en_US to the requests and responses come in English - at least error messages do. This could be a config option, if there's interest in keeping the Chinese messages for those who want it, but I'd default to English since that's the standard language in which HA is documented and such.

I discovered this by fiddling with https://reqbin.com/vljzzpwl (trying to find wether lack of P3 details is an API issue or missing implementation) and some reversed-engineering docs from https://github.com/morganpartee/pyPetKit (which do not have any docs on P3, but I would suggest the developer to join forces with @morganpartee since he seems to be interested in integrating some stuff in HA as well :)

from petkit.

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.