颜色的色相值
Before you head out the door, it would be handy to know whether you need a coat, or if you can skip it. To give you a quick indicator, you can set one of your Hue light bulbs to change colors when it’s too hot or too cold outside. Here’s how to set it up.
在出门之前,先了解一下是否需要外套或是否可以跳过外套是很方便的。 为了给您快速的指示,您可以设置一个Hue灯泡,以在室外太热或太冷时改变颜色。 设置方法如下。
For this, we’re going to use a service called IFTTT (If This Then That). If you haven’t used IFTTT before, check out our guide to getting started for info on how to create an account and connect apps. Then, come back here to create the necessary recipe.
为此,我们将使用一个称为IFTTT的服务(如果做到了,那么就做到了)。 如果您以前从未使用过IFTTT, 请查看我们的入门指南,以获取有关如何创建帐户和连接应用程序的信息。 然后,回到这里创建必要的配方。
To do this, you’ll need to enable the Philips Hue and Weather Underground channels in IFTTT. You’ll also need a Hue light that can change colors. Some other smart lights like LIFX can also change colors, but we’ll be demonstrating with Philips Hue. For your convenience, we’ve created a sample applet using Philips Hue lights here, or you can follow the steps below to make it for yourself.
为此,您需要在IFTTT中启用Philips Hue和Weather Underground频道。 您还需要可以改变颜色的Hue灯 。 LIFX等其他一些智能灯也可以更改颜色,但是我们将与Philips Hue一起进行演示。 为了方便起见,我们在此处使用Philips Hue灯创建了一个小程序示例 ,或者您可以按照以下步骤自行制作。
To get started, head to IFTTT’s home page and log in. Then, click your profile picture.
首先,请访问IFTTT的主页并登录。然后,单击您的个人资料图片。
Next, click “New Applet.”
接下来,单击“新小程序”。
Click the word “this” highlighted in blue.
单击以蓝色突出显示的单词“ this”。
Search for “Weather Underground” or find it in the grid of products below. Click on it when you find it.
搜索“地下天气”或在下面的产品列表中找到它。 找到它后单击它。
In the list of triggers, there are two that will be relevant here. One, labeled “Current temperature drops below,” and one labeled “Current temperature rises above.” You can set these based on what the weather is like around you and what you’re comfortable with. For example, you may want to get notified if it drops below 40 degrees so you know to wear a coat, or when it gets above 75 so you know it’s time for your warmer weather clothes. Pick the one you want and continue on. We’ll demonstrate with “Current temperature rises above.”
在触发器列表中,有两个与此处相关。 一个标记为“当前温度下降到低于”,另一标记为“当前温度上升到高于”。 您可以根据周围的天气以及您的舒适程度来设置这些值。 例如,如果它下降到40度以下以便您知道要穿一件大衣,或者当它超过75度以便您知道该是时候穿暖和的衣服的时候,您可能希望得到通知。 选择您想要的一个并继续。 我们将通过“当前温度升高到以上”进行演示。
Note: You can only pick one trigger per applet, so if you want your lights to change to one color when it’s very hot and another color when it’s very cold, you’ll need to go through this process twice.
注意:每个小程序只能选择一个触发器,因此,如果您希望灯光在非常热时变为一种颜色,而在非常冷时变为另一种颜色,则需要进行两次此过程。
On the next page, enter a temperature in the first box you want to be notified of. In my case, I want to know any time it’s hotter than 75 degrees outside. You can also choose between Fahrenheit and Celsius in the second box if you need to. When you’re done, click “Create trigger.”
在下一页上,在要通知的第一个框中输入温度。 以我为例,我想知道何时比外界温度高75度。 如果需要,您也可以在第二个框中选择华氏温度和摄氏温度。 完成后,点击“创建触发器”。
On the next page, click the word “that” highlighted in blue.
在下一页上,单击以蓝色突出显示的单词“ that”。
Search for your smart light’s IFTTT channel. In this case, we’re searching for Philips Hue. Click on the channel when you find it. From here on, the steps may differ slightly depending on which brand of smart lights you use, but the basics should all be the same.
搜索您的智能灯的IFTTT频道。 在这种情况下,我们正在搜索Philips Hue。 找到该频道后,单击它。 从此以后,步骤可能会有所不同,具体取决于您所使用的智能灯品牌,但基本知识都应该相同。
Find “Change color” in the list of triggers and click on it.
在触发器列表中找到“更改颜色”,然后单击它。
On the next page, choose the light you want to change from the drop down list. Next, enter a color name or hex code value for the color you want. I preferred to lightly tint the color of my lights without turning them a stark color like solid red or blue. For warm weather, I set my light to #ffee99, and for cold weather, I used #ccddff. These colors provide a distinct enough color different to know that the weather has changed without making the lighting in the room look awful. (Though you could use something more saturated if you were doing this on, say, a porch light.)
在下一页上,从下拉列表中选择要更改的灯光。 接下来,输入所需颜色的颜色名称或十六进制代码值。 我更喜欢轻轻地淡化我的灯的颜色,而不用将它们变成纯红色或蓝色那样的鲜明颜色。 对于温暖的天气,我将灯光设置为#ffee99,对于寒冷的天气,我使用#ccddff。 这些颜色提供了足够明显的不同颜色,可以知道天气已经发生变化,而房间内的照明看起来并不可怕。 (尽管您可以在门廊灯上使用饱和度更高的东西。)
On the last screen, name your applet and click Finish.
在最后一个屏幕上,命名您的applet,然后单击“完成”。
Repeat these steps to create a second recipe for cold weather. This recipe will work best on a light in a room where you’re likely to see it and that you don’t turn off very often. For example, you probably shouldn’t use this in your home theater room. However, it can be very handy for a bedroom lamp or outdoor bulb that you’ll see when you’re getting ready in the morning.
重复这些步骤,为寒冷的天气创建另一个食谱。 在您可能会看到它且不经常关闭的房间的灯光下,此食谱最有效。 例如,您可能不应该在家庭影院室中使用它。 但是,对于早晨准备就绪时会看到的卧室灯或室外灯泡,它可能非常方便。
翻译自: https://www.howtogeek.com/301167/how-to-change-your-hue-lights-color-based-on-the-weather-outside/
颜色的色相值