Git Product home page Git Product logo

airconditioner_webthing's Introduction

airconditioner_webthing

An airconditioner web thing connector

This project provides a webthing API to Midea air conditioners

The airconditioner_webthing package exposes a http webthing endpoint which supports controlling the air conditioner via http. E.g.

# webthing has been started on host 192.168.0.23

curl http://192.168.0.23:7122/properties 

{
   "outdoor_temperature": 4,
   "indoor_temperature": 22,
   "target_temperature": 23,
   "operational_mode": "heat",
   "fan_speed": 102,
   "power": false,
   "run_util": ""
}

To install this software you may use PIP package manager such as shown below

sudo pip install airconditioner_webthing

After this installation you may start the webthing http endpoint inside your python code or via command line using

sudo aircon --command listen --port 7122 --ip 10.31.33.90 --id 957548654462565 

Here, the webthing API will be bound to the local port 7122. Additionally, the ip address of the air conditioner has to be set as well as the device id of the air conditioner. To discovery the device id you may use midea-msmart library as shon below

midea-discover -a YOUR_ACCOUNT -p YOUR_PASSWORD

Alternatively to the listen command, you can use the register command to register and start the webthing service as systemd unit. By doing this the webthing service will be started automatically on boot. Starting the server manually using the listen command is no longer necessary.

sudo aircon --command register --port 7122 --ip 10.31.33.90 --id 957548654462565 

airconditioner_webthing's People

Contributors

grro avatar

Watchers

 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.