Giter Site home page Giter Site logo

skyformat99 / baozhai Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chzhewl/baozhai

0.0 2.0 0.0 23.65 MB

宝宅智能家居是一套简单、易用、开源的智能家居开发平台

Home Page: http://www.baozhai.cc/

JavaScript 22.58% CSS 16.97% HTML 4.40% Arduino 1.12% C++ 0.33% C 2.33% Java 52.23% Batchfile 0.03%

baozhai's Introduction

#宝宅智能家居介绍

宝宅智能家居是一套简单、易用、开源的智能家居开发平台,宝宅智能家居为爱折腾的开发者们而生,目的是为了简化智能家居系统的开发复杂度,使开发者们可以将更多的精力放到智能家居功能本身的开发上来。
首先,我们先来看下宝宅智能家居的架构图:


从图上可以看出宝宅智能家居由4部分组成,从左向右分别是“手机端”,“云端”,“家庭网关”和“终端设备”,下面我们先来简单了解下各个部分的作用:

  • “手机端” 经过“云端”同“家庭网关”进行通讯,用于实现对终端设备的监控和控制,在“手机端”上宝宅已经实现了账号登录、网络通讯等基础功能,开发者不需要在手机上做开发,只需要在“家庭网关”的“WEB版的集成开发环境”->“设计手机控制界面”里面,使用HTML/CSS来设计自己想要的界面和描述各个控件即触发动作即可。
  • “云端” “手机端”与“家庭网关”之间的通讯桥梁,开发者不需要在此编写代码。
  • “家庭网关” 扮演者整个系统的“大脑”的角色,主要代码在这里完成,通过“云端”桥接“终端设备”和“手机端”,也可以主动给“手机端”和“终端设备”发送指令。“家庭网关”是运行在树莓派上(也可以是其他ARM CPU的设备或PC机)的宝宅网关框架程序(基于Node.js开发),集成了WEB版的网关程序开发和手机控制界面设计环境, 宝宅已经封装好了主要的的核心的功能,开发者只需要编写少量的Javascript和HTML/CSS代码就可以实现网关程序的开发和手机控制界面的设计。
  • “终端设备” 与“家庭网关”直接连接,可能是传感器也可能是需要控制的设备,MCU采用ESP8266 WIFI芯片,接入方便,价格便宜。另外基于Esp8266 for adrduino IDE开发环境+宝宅SDK,开发者无需了解具体的芯片原理和数据通讯过程,完全可以像开发arduino程序一样来编写ESP8266 上的程序。

###宝宅智能家居开发导向图

###网关程序开发示例

###设备程序开发示例

###手机界面设计示例

#继续

baozhai's People

Contributors

chzhewl avatar

Watchers

skyformat99 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.