Rechercher dans les propriétés de la page

Rechercher dans les propriétés de la page

Entrer soit une page et une propriété, ou seulement une propriété, pour récupérer toutes les valeurs affectées.

Affichage de 20 résultats à partir du n°1.

Voir (20 précédentes | 20 suivantes) (20 | 50 | 100 | 250 | 500).


    

Liste de résultats

  • - If you already have a webhooks account, skip this step Otherwise, click the '''connect''' button and follow the steps on their website to create a webhooks account  +
  • <nowiki><div class="mw-highlight
    import network
    import urequests as requests
    from machine import Pin
    from dht import DHT22
    from time import sleep
    #Replace the values below with the correct WIFI SSID and Password
    wifi_ssid = "WIFI NAME"
    wifi_password = "WIFI PASS"

    #This is the webhook URL with API Key from IFTTT

    webhook_url = "https://maker.ifttt.com/trigger/esp32/with/key/"


    sta_if = network.WLAN(network.STA_IF)
    sta_if.active(True)

    if sta_if.isconnected() == False:
    sta_if.connect(wifi_ssid, wifi_password)

    while sta_if.isconnected() == False:
    #sta_if = network.WLAN(network.STA_IF)
    #sta_if.active(True)
    #sta_if.connect(wifi_ssid, wifi_password)
    sleep(1)
    print(".", end = "")

    dht22 = DHT22(Pin(15))

    while True:
    dht22.measure()
    temperature = dht22.temperature()
    humidity = dht22.humidity()
    temp = temperature * 9/5 + 32
    url = webhook_url + "?value1=" + str(temp) + " F" + "&value2=" + str(humidity) + "%"
    try:
    r = requests.get(url)
    print(r.text)
    except Exception as e:
    print(e, "error")
    sleep(30)

    gt;<span class="p">(</span><span class="n">url</span><span class="p">)</span><br /> <span class="nb">print</span><span class="p">(</span><span class="n">r</span><span class="o">.</span><span class="n">text</span><span class="p">)</span><br /> <span class="k">except</span> <span class="ne">Exception</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span><br /> <span class="nb">print</span><span class="p">(</span><span class="n">e</span><span class="p">,</span> <span class="s2">"error"</span><span class="p">)</span><br /> <span class="n">sleep</span><span class="p">(</span><span class="mi">30</span><span class="p">)</span><br /></pre></div><br/></nowiki>  
  • Click '''documentation''' on the webhooks page  +
  • Click the '''Connect''' button  +
  • First, click '''create''' in the upper right hand corner <br/>  +
  • Go to https://ifttt.com/join Sign up and create an account using the appropriate options <br/>  +
  • In the search bar, search '''sheets''' and click '''google sheets'''  +
  • Name the event for the trigger '''esp32''' (it is case sensitive so be careful)  +
  • On webhooks, select '''receive a web request'''  +
  • Once the trigger is set up, click '''Add''' next to '''Then That'''  +
  • Once you are on "'''choose a service'''", type in '''Webhooks''' in the search bar and click '''Webhooks'''  +
  • Once you get onto this page, copy the api key and URL to paste into the code in Thonny  +
  • Once you have finished all the previous steps, hit continue on the applet page  +
  • Rename the applet to an appropriate name  +
  • Select '''Add row to spreadsheet'''  +
  • Select all the values you want returned to the spreadsheet, along with the path the sheet has to follow in your drive. For this project, we are returning Temperature and Humidity values from the DHT22, so we will select '''Value1''' and '''Value2'''  +
  • Select the '''Webhooks''' icon on the finished page  +
  • Then, hit '''Add''' next to '''IF THIS'''  +
  • This is how your circuit should look like.This is how your circuit should look like. You will need the ESP32 microcontroller, DHT22 temp/humidity module, breadboard and jumper wires. * + pin on DHT22 to VCC on ESP * out pin on DHT22 to GPIO pin 15 on ESP(can change depending on code) * - pin on DHT22 to GND on ESPng on code) * - pin on DHT22 to GND on ESP  +
  • Use your gmail to sign in to sheets  +