import requests

def makeUrl(ip,port):
    return "http://" + str(ip)+":"+port

class humidityClient:
    def __init__(self,ip,port):
        self.ip = ip
        self.port = port
    
    def getHumidity(self):
        url = makeUrl(self.ip,self.port)
        res = requests.post(url,json={"func":"getHumidity"})
        return res.json()["data"]
    
    def setSprinkler(self):
        url = makeUrl(self.ip,self.port)
        res = requests.post(url,json={"func":"setSprinkler"})
8ab2cad8577667cadeae7ca9e4642d64bdf32df3
<mask token>


class humidityClient:

    def __init__(self, ip, port):
        self.ip = ip
        self.port = port

    def getHumidity(self):
        url = makeUrl(self.ip, self.port)
        res = requests.post(url, json={'func': 'getHumidity'})
        return res.json()['data']
    <mask token>

<mask token>


class humidityClient:

    def __init__(self, ip, port):
        self.ip = ip
        self.port = port

    def getHumidity(self):
        url = makeUrl(self.ip, self.port)
        res = requests.post(url, json={'func': 'getHumidity'})
        return res.json()['data']

    def setSprinkler(self):
        url = makeUrl(self.ip, self.port)
        res = requests.post(url, json={'func': 'setSprinkler'})

<mask token>


def makeUrl(ip, port):
    return 'http://' + str(ip) + ':' + port


class humidityClient:

    def __init__(self, ip, port):
        self.ip = ip
        self.port = port

    def getHumidity(self):
        url = makeUrl(self.ip, self.port)
        res = requests.post(url, json={'func': 'getHumidity'})
        return res.json()['data']

    def setSprinkler(self):
        url = makeUrl(self.ip, self.port)
        res = requests.post(url, json={'func': 'setSprinkler'})

import requests


def makeUrl(ip, port):
    return 'http://' + str(ip) + ':' + port


class humidityClient:

    def __init__(self, ip, port):
        self.ip = ip
        self.port = port

    def getHumidity(self):
        url = makeUrl(self.ip, self.port)
        res = requests.post(url, json={'func': 'getHumidity'})
        return res.json()['data']

    def setSprinkler(self):
        url = makeUrl(self.ip, self.port)
        res = requests.post(url, json={'func': 'setSprinkler'})

import requests

def makeUrl(ip,port):
    return "http://" + str(ip)+":"+port

class humidityClient:
    def __init__(self,ip,port):
        self.ip = ip
        self.port = port
    
    def getHumidity(self):
        url = makeUrl(self.ip,self.port)
        res = requests.post(url,json={"func":"getHumidity"})
        return res.json()["data"]
    
    def setSprinkler(self):
        url = makeUrl(self.ip,self.port)
        res = requests.post(url,json={"func":"setSprinkler"})