头图

Preface

Things are like this. Today, as usual, I took a look at several open source technology exchange QQ groups I built after get off work, trying to find valuable construction information. Because I am usually too busy at work, I basically don’t look at it. This information, and few valuable construction opinions can be obtained in it, so I did not have much expectations.

But today, I actually found a XUI in the QQ group, and it is also a relatively popular smart home project in the near future. It has a management backend, front end, mobile end and hardware end, which can be fully commercialized. s project!

Maybe you want to ask me, what is XUI?

XUI is the Android native UI framework that I open sourced at the beginning of 2019.It allows a developer who has never touched Android to easily write a set of simple and elegant apps.

The following is the Star trend chart of the XUI project on Github:
在这里插入图片描述

get back to business, let’s take a look at the true face of this project together!


Portal

Project name : Wumart Smart

project address : https://gitee.com/kerwincui/wumei-smart

Project Description

  1. Wumei Smart ( wumei-smart )] is an open source software and hardware system that can be used for secondary development and learning to quickly build your own smart home system. hardware engineers can integrate their own equipment into the system; software engineers can use the equipment in the project to be familiar with software and hardware interactions.

说明

  1. The server uses spring boot, database mysql and redis, front-end vue, mobile end android, hardware end ESP-IDF and Arduino, etc. The software and hardware interaction is based on the Mqtt protocol and the EMQ proxy server is used. The system architecture diagram is as follows:

图片
图片

  1. The hardware side provides access documentation, and the device needs to support network functions. The project contains hardware codes and access examples for ESP-IDF and Arduino. At the same time, a smart switch (wifi switch) board was made, which can be used in study and life to control electrical equipment below 2500W.

案例

  • Mobile phone, computer remote control
  • Remote pairing, clearing and control
  • Air temperature and humidity monitoring
  • Radar sensing and alarm
  • 220V and 5V voltage power supply, resistive load 2500W, inductive load 250W

References

  1. NodeMCU development board to make a smart switch
    案例
  2. Wifi controller and LED light board to make colorful smart lights
    案例
  3. Raspberry Pi installs wumei-smart as a server to save costs
    案例

Technology stack

  • rear end

    • Related technologies: Spring boot, MyBatis, Spring Security, Jwt, Mysql, Redis, Mongodb, Mqtt, etc.
    • Development tool: IDEA
  • front end

    • Related technologies: ES6, Vue, Vuex, Vue-router, Vue-cli, Axios, Element-ui, etc.
    • Development tools: Visual Studio Code
  • Android

  • Hardware side

    • Related technologies: ESP-IDF, Arduino, FreeRTOS, etc.
    • Development tools: Visual Studio Code

Rapid deployment system

  1. Install docker
  2. Run the following commands in the command window (complete the back-end, front-end, database, EMQX deployment):
docker run \
--name wumei-smart \
--publish 80:80 \
--publish 18083:18083 \
--publish 1883:1883 \
--publish 3306:3306 \
--publish 6379:6379 \
--restart always \
--detach \
kerwincui/wumei-smart:1.0
  1. Scan the code to download the APP and install it, open the APP, skip the login, and configure the server address
    APP下载

Test account: wumei admin123; default account after successful configuration: admin admin123

  1. Burn the hardware code to the device

Part of the system picture

分类
设备列表
EMQX
设备详情
配置

Related tutorials


At last

I hope everyone can, like this classmate, not only develop their own apps through self-study of XUI, but also share their own interesting projects, so that more people can see the results you wrote, and make XUI cases become Richer!

If you also have interesting projects developed using XUI, you are welcome to leave your project information on the issue of XUI's official Github homepage, so that more people can see your results!

Click here to share your project now!

I am xuexiangjys, a technical up master who loves learning, programming, and is committed to Android architecture research and open source project experience sharing. For more information, welcome to search the public number on : 160e356bd9046a [My Android Open Source Journey]

xuexiangjys
357 声望4.1k 粉丝