在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:homebridge/homebridge-examples开源软件地址:https://github.com/homebridge/homebridge-examples开源编程语言:TypeScript 100.0%开源软件介绍:homebridge-examplesThis repo bundles some example implementations for homebridge plugins. They provide some example code to get
started with. They are also published on npm like regular plugins, so you can easily run them in your local
homebridge instance. Refer to the respective The examples are all written in Typescript and thus require at least homebridge Run this command once to install all dependencies required by the plugin:
After that run the following command to compile the Typescript files into Javascript (repeat this step every time you change something in the code).
If you need inspiration for a plugin written in Javascript you can just run the above commands and look at the
generated Javascript code located in the Examples for different homebridge plugin typesAccessory PluginsAccessory plugins are the most basic and simplest plugins for homebridge. They should be used if you only want to expose a single accessory and don't require any special functionality.
Platform Plugins:Platform plugins are able to expose multiple accessories. Additionally, they are required if you want to use the Controller API.
Other example plugins |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论