Skip to main content

A Python library to communicate with Melnor RainCloud Smart Garden Watering Irrigation Timer (https://wwww.melnor.com/)

Project description

https://badge.fury.io/py/raincloudy.svg 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

raincloudy-0.0.9.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

raincloudy-0.0.9-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file raincloudy-0.0.9.tar.gz.

File metadata

  • Download URL: raincloudy-0.0.9.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for raincloudy-0.0.9.tar.gz
Algorithm Hash digest
SHA256 514de5e8e988a6b893893723c8707cb9d04bdbd5371a33b79376c265eaa00cfd
MD5 958d8ec4e50c098cf1c563f99587307b
BLAKE2b-256 98a9c9e0b409745c6ae1648bb819ef93db6846c37e94f76cbe0783bf6243a582

See more details on using hashes here.

File details

Details for the file raincloudy-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: raincloudy-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for raincloudy-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ff6699b145d4aee5f7bdda7ee476ef673258b9ffd012d1e5cf9a810d1e474869
MD5 7cfb5f8a2dfaa0b297e5586d96dc2db1
BLAKE2b-256 919116322edb187a0b954f90ed56d8b06a29ba1b4139fa459fbb9d70ebdc65bc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page