During the Microsoft Build keynote last week - that you can watch free online here - we snuck in a LOT of detail and easter eggs. We planned the whole thing out like a live stage play (I have a background in theatre) and one of the things that mattered to me was lighting.
在上周的Microsoft Build主题演讲中(您可以在这里免费在线观看) ,我们在其中详细介绍了很多细节和复活节彩蛋。 我们把整个事情计划得像现场表演(我在剧院有背景)一样,而对我来说最重要的事情之一就是照明。
If you're going to watch something you for an extended time you'll need a little visual interest. Ya gotta mix it up! So I partnered with LIFX and Isaac Levin to accomplish two things:
如果您想长时间观看某些东西,则需要一点视觉上的兴趣。 你要把它混起来! 因此,我与LIFX和Isaac Levin合作完成了两件事:
- Can we change room lighting to match Teams/Skype/Slack/Whatever presence status? 我们可以更改房间照明以匹配“团队” /“ Skype” /“松弛” /“任何状态”吗?
Red for busy, green for available, etc. I've been exploring "busy lights" for over 10 years. This is a fun DIY project.
红色表示忙碌,绿色表示可用,等等。我已经探索“繁忙的灯光”已有10多年了。 这是一个有趣的DIY项目。
- Can we change room lighting to match the Windows Theme/Background accent color? 我们可以更改房间的灯光以使其与Windows主题/背景的配色相匹配吗?
- If I'm not mirroring my pretense status, pull the accent color out and change the light. 如果我没有镜像自己的伪装状态,请拉出强调色并更改灯光。
Here's what it looked like in the keynote:
主题演讲如下:
![Purple light and Purple background Purple light and Purple background](https://i-blog.csdnimg.cn/blog_migrate/29c0442b33b93ac50b484a688c11db2e.png)
![Green light and green background Green light and green background](https://i-blog.csdnimg.cn/blog_migrate/0b299086a037de96e5d5abc5f2610f84.png)
The PresenceLight app is open source and up on Github by Isaac Levin and you can get it on the Windows Store free or in Chocolatey, WinGet, or download a nightly build.
PresenceLight应用程序是开源的,由Isaac Levin在Github上启动,您可以在Windows Store中免费获取它,也可以在Chocolatey,WinGet中获取它,或下载每晚版本。
So what's needed? We need an API to pull presence from and an API to push our chosen color to. So that's the Microsoft Graph that includes presence APIs. On the lighting side, using LIFX as an example, they have a great clean LIFX HTTP API.
那么需要什么呢? 我们需要一个API来吸引用户,并需要一个API来推动我们选择的颜色。 这就是包含状态显示API的Microsoft Graph 。 在照明方面,以LIFX为例,它们具有出色的LIFX HTTP API 。
RANDOM: If you're looking for my wallpapers from the BUILD keynote, I've put them up here.
随机:如果您要从BUILD主题演讲中寻找我的壁纸,请把它们放在这里。
Here's what the app looks like. You can auth against Phillips Hue, Yeelight or LIFX. The code for LIFX, as an example, is very clean.
这是应用程序的外观。 您可以对Phillips Hue,Yeelight或LIFX进行身份验证。 举例来说,LIFX的代码很干净。
![PresenceLight PresenceLight](https://i-blog.csdnimg.cn/blog_migrate/a944b805cc9e72061dcda9b48f22df49.png)
Check out Isaacs detailed blog post about PresenceLight with code samples and explanations! The LIFX folks also set up a 10% off coupon "BUILD" for use on their online store. I'm sure they'll sell out, but the LIFX Beam that I have is $99 refurbished.
查看Isaacs关于PresenceLight的详细博客文章,其中包含代码示例和说明! LIFX员工还设置了10%的优惠券“ BUILD”,可在其在线商店中使用。 我敢肯定他们会卖光的,但我拥有的LIFX Beam已翻新了99美元。