Giter Club home page Giter Club logo

api_infinitude's Introduction

pyInfinitude

python API to interact with Infinitude https://github.com/nebulous/infinitude Infinitude is an alternative web service for Carrier Infinity Touch and compatible thermostats.

WARNING: I dont know the expected input to many of the backend settings so I'm not able to guard against them with sanity checks in the functions. That said always use caution when submitting values as it could do harm.

Basic Overview

This class will have a getter and setter function for each value in the infinitude system configuation file.

Pulls json file from http:{IP}:{PORT}/systems.json
and
Publishes to http:{IP}:{PORT}/systems/infinitude

Purpose

I'm writing my own home automation program and tieing in the HVAC system is just one piece. I wasn't able to do all that i wanted using the current Infinitude API.

Example

Setting away profile to hold for 15 minutes into the future

zone=0
dt = datetime.datetime.now()    
newHold = dt.replace(minute=0, second=0) + datetime.timedelta(minutes=(dt.minute//15+1)*15)    `
hvac.pullConfig()     
hvac.set_zone_holdActivity(zone,'away')    
hvac.set_zone_otmr(zone,newHold.strftime("%H:%M"))     
hvac.set_zone_hold(zone,'on')    
hvac.pushConfig()
    

api_infinitude's People

Contributors

7ool 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.