Code Monkey home page Code Monkey logo

rainmachine-weewx's Introduction

rainmachine - weewx extension that sends data to RainMachine smart irrigation controler
Copyright 2018 Green Electronics LLC

This extension only works on the local network (doesn't work with RainMachine 
Remote Access service). RainMachine IP address and http port 8081 or 
https port 8080 must be accessible from WeeWX installation. The usessl parameter 
controls if connection to RainMachine should be http or https. On certain version of 
weewx the usessl=true (https) might not work because of RainMachine self-signed certificate 
for local network.

This extension requires RainMachine to be updated to latest version and have RainMachine API 4.6 to work.


Installation instructions:

1) run the installer:

wee_extension --install weewx-rainmachine-v0.3.tar.gz

2) modify weewx.conf:

[StdRESTful]
    [[RainMachine]]
        token = RAINMACHINE_ACCESS_TOKEN
        ip = RAINMACHINE_IP_ADDRESS
	usessl = False

The token can be obtained with a POST request:
curl -X POST -k -d ' { "pwd": "your_password", "remember":1}' https://rainmachine_ip:8080/api/4/auth/login

More details can be found here: 
https://support.rainmachine.com/hc/en-us/articles/228022248-Controlling-RainMachine-through-REST-API

3) restart weewx

sudo /etc/init.d/weewx stop
sudo /etc/init.d/weewx start

rainmachine-weewx's People

Contributors

nicupavel avatar tkeffer 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.