Let me see what I can find for this. I am using tasmota to control a Sonoff relay and a basic ESP8266 relay. https://tasmota.github.io/docs/Commands/
I am looking at some commands like this:
I was also trying to figure out how to put space between the buttons. I tried using "padx=20", but it seems to ignore it.
I am looking at some commands like this:
r = requests.get('http://192.168.0.101/control?cmnd=Status,gpio,14') print(r.status_code)It just returns a code 404 which seems to be like a "No Response". So for this I was trying to check the status of the LED that is onboard the Relay. Not much luck here so far.
I was also trying to figure out how to put space between the buttons. I tried using "padx=20", but it seems to ignore it.
def main(): app = tk.Tk() buttons = [ new_button('living_room', "http://192.168.0.101/", app, grid=(0, 0), padx=20), new_button('front_porch', "http://192.168.0.113/", app, grid=(0, 1), padx=20) ]