Inkyshot Weather

Variable, LOCALE - what goes in the value parameter?

Arrow: Better dates & times for Python — Arrow 🏹 1.1.1 documentation is supposed to help, but I’m lost.

Thank you.

Thanks @richard238 for reaching out. You can find more information about the LOCALE usage here: GitHub - balena-io-experimental/inkyshot: Get a daily random inspirational quote delivered direct to your desk with Inkyshot. Build multiple Inkyshots and share the inspiration with your friends, family and loved ones ❤️

LOCALE variable allows to display the date of temperature reading in any language supported by the date library.
You can skip this to default, if you don’t want a custom lang, or set to one of the values available in docs: Language Codes (look at the LanguageCode).

Also, following is the fallback logic if you want to checkout some internals: https://github.com/balenalabs/inkyshot/blob/77d644089ce0606a280ef3d0cb922ccf43dc5894/inkyshot/update-display.py#L271

Hope that helps. Let us know if you have any other questions here.

Regards,
N

No, that doesn’t help.
I’ve already looked at the git hub, and you linked the link I mentioned.
I just need to know - what goes in the value parameter?

Thank you.

@richard238
, the locales listed in the Arrow docs allow you to see the supported languages for the inkyshot weather date display. The LOCALE variable should be set to the language code for whatever language you are interested in using. The default is en for “English”, but can be changed to any of the language codes listed in this table: Language Codes - Sorted by. For example, if you wanted the Danish locale, you would set LOCALE to da and then the date would be displayed in Danish. Let us know if this clears up your question or if you run into any issues!

Ok, so for English in the UK, I need not do anything?

Correct Richard. You do not need to do anything in that case. :slight_smile: