Git Product home page Git Product logo

rpi_web_remote_control's Introduction

RPI_web_remote_control

利用树莓派远程控制空调等家电的开关

简要介绍

这是一个利用网页远程控制树莓派发出红外信号控制空调等家电的小项目or实验,简单来说,可以在回家的路上用手机通过网页控制,提前将空调打开,设定成需要的温度。同时可以在网页上实时监控室内的温度和湿度。

代码主要使用Python的flask框架编写。为了能在公网下远程访问树莓派,使用frp内网穿透工具

功能概要

  1. 远程控制空调
  2. 远程监控室内温湿度
  3. 远程操控LED灯

所用元器件

  1. 树莓派3B+ ×1
  2. SD卡(8GB) ×1
  3. 红外发射和接收模块 ×1
  4. 温湿度传感模块 ×1
  5. 发光二极管 x1
  6. 树莓派拓展板 x2
  7. 杜邦线 若干
  8. 具有公网IP的VPS x1

最终效果图

前端网页效果图

因为对前端不是很熟,这个网页写的很简单。但基本实现了我们需要显示的功能和按键。

image

更多效果图可以查看img文件夹下的图片

实物连接图

image

文件结构说明

RPI_web_remote_control/         
|-- img                     //用于存放README.md演示图片
|-- net_setting             //用于存放内网穿透的设置文件
|-- README.md               
`-- web_interface           //用于存放Python写的flask工程

如何使用

如果你有一定的使用Linux经验和对flask这样的web应用框架有一定的了解,相信你一定能很快的上手,配置好内网穿透和安装好flask后直接运行web_interface下的app.py文件就可以了。

rpi_web_remote_control's People

Contributors

zyzisyz avatar xxyyue avatar wseng avatar

Watchers

James Cloos 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.