在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):home-assistant/brands开源软件地址(OpenSource Url):https://github.com/home-assistant/brands开源编程语言(OpenSource Language):Shell 100.0%开源软件介绍(OpenSource Introduction):Home Assistant BrandsThis repository holds the icons and logos for all the brands Home Assistant supports. This repository is used to generate a static website, serving these images for use in our Home Assistant projects. The goal is to have a centralized repository of brand images. Inner workingsThis repository provides two main folders to store images in:
Each of these two main folders contain domain folders. Each domain folder is
named to the integration A domain folder can contain four files:
Those images are served in the following format:
Missing image handlingThe website can service images with and without a fallback to a placeholder image. Without placeholder fallbackThis method uses the plain URLs, WITHOUT the For example: <
With placeholder fallbackThis method uses the plain URLs, WITH the For example: < CachingAll icons are cached on the client-side browser end for 900 seconds, and cached by Cloudflare for 604800 seconds. Placeholder images are excepted from this. Placeholder images have a 900 seconds cache on the client-side and are cached for 1 hour on Cloudflare. This allows us to replace placeholder images within an acceptable time frame without losing our cache. Image additions and changes may take time to take effect due to caching. The cache is fully flushed in each major version of Home Assistant Core. Image specificationAll images must have the following requirements:
Icon image requirementsAdditional to the general image requirements listed above, for the icon image, the following requirements are applied as well:
Logo image requirementsAdditional to the general image requirements listed, for the logo image, the following requirements are applied as well:
Using the same image for logo & iconIf the brand uses the same image for the logo and icon (e.g., if the logo has a square aspect ratio), only add the icon images. The icon will be used as a fallback for the logo. Using the same logo & icon for different brandsTo keep the size of this repository as efficient as possible, symlinking domain folders for the same icon/logos is allowed for core integrations. The deployment process at our hosting provider will unpack these symlinks to actual files during the deployment process. Please note, symlinks should only be created between integration domain
directories. The Symlinks are currently not allowed in the custom integrations folder. The names of directories must always match the integration domain. Additional directories are not allowed. Integration domain conflict between custom and core integrationsIt is possible for a custom integration and a core integration to collide on
a Tips, Tools & ResourcesWhen adding a new set of icons and logos, the following resources can help you finding the needed images and getting them to match our specifications:
A lot of brands (especially the larger ones) often offer a press kit on their (corporate) website, that contains high quality images. Trademark Legal NoticesAll product names, trademarks and registered trademarks in the images in this repository, are property of their respective owners. All images in this repository are used by the Home Assistant project for identification purposes only. The use of these names, trademarks and brands appearing in these image files, do not imply endorsement. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论