Giter VIP home page Giter VIP logo

raincloudy's Introduction

RainCloudy

https://travis-ci.org/vanstinator/raincloudy.svg?branch=master https://coveralls.io/repos/github/vanstinator/raincloudy/badge.svg?branch=master

RainCloudy is a library written in Python 3.x that manages the Melnor RainCloud Smart Garden Watering Irrigation Timer.

Currently Melnor WifiAquaTimer not provide an official API. The results of this project are merely from reverse engineering. This project does not have any official relationship or support by Melnor.com. Use it at your own risk.

Melnor RainCloud official page: http://www.melnor.com/16043-raincloud-smart-water-timer

Source code documentation: http://raincloudy.readthedocs.io/

Usage

from raincloudy.core import RainCloudy
raincloudy = RainCloudy('username@domain', 'secret')

# list controllers linked with account
raincloudy.controllers
[<RainCloudyController: control_unit:abdcd1234 valve_unit:a123>]

# show valve unit battery status
raincloudy.controller.faucet_battery
99%

# show status
raincloudy.controller.status
'Online'

raincloudy.controller.name
'MelnorC001'

raincloudy.controller.faucet.name
'Backyard'

raincloudy.controller.faucet.status
'Online'

# 4 zones controlled per faucet
len(raincloudy.controller.faucet.zones)
4

# show details from zone1
raincloudy.controller.faucet.zone1
{
 'auto_watering': True,
 'manual_watering': False
 'next_cycle': 'Delayed',
 'rain_delay': 1,
 'watering_time': 0
 }

 # update attributes and show all zones
 raincloudy.controller.update()
 raincloudy.controller.faucet.zones
 {
    'zone1': {
        'auto_watering': True,
        'droplet': 'https://wifiaquatimer.com/static/images/blank.gif',
        'is_watering': False,
        'next_cycle': 'Delayed',
        'name': 'Backyard Flowers',
        'rain_delay': 1,
        'watering_time': 0
    },
    'zone2': {
        'auto_watering': True,
        'droplet': 'https://wifiaquatimer.com/static/images/blank.gif',
        'is_watering': False,
        'next_cycle': 'Delayed',
        'name': 'Tree Patio',
        'rain_delay': 2,
        'watering_time': 0
    },
    'zone3': {
        'auto_watering': True,
        'droplet': 'https://wifiaquatimer.com/static/images/blank.gif',
        'is_watering': False,
        'next_cycle': '3:17 AM',
        'name': 'Grass Backyard',
        'rain_delay': 0,
        'watering_time': 0
    },
    'zone4': {
        'auto_watering': True,
        'droplet': 'https://wifiaquatimer.com/static/images/blank.gif',
        'is_watering': False,
        'next_cycle': '4:00 AM',
        'name': 'Grass Front yard',
        'rain_delay': 0,
        'watering_time': 0
    }
}


# set faucet name
raincloudy.controller.faucet.name = 'Outside Left'
raincloudy.controller.faucet.name
'Outside Left'

# enable automatic program for zone1
raincloudy.controller.faucet.zone1.auto_watering = True

# run water for 15 minutes on zone3
raincloudy.controller.faucet.zone3.manual_watering = 15

# set rain delay for 2 days on zone2
raincloudy.controller.faucet.zone2.rain_delay = 2

Current Limitations

  • Only 1 (one) controller is supported.
  • Only 1 (one) valve unit is supported.

raincloudy's People

Contributors

tchellomello avatar vanstinator avatar renovate[bot] avatar eavanvalkenburg avatar fabaff 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.