fix
This commit is contained in:
parent
223da32d62
commit
2fdac3ec14
@ -32,10 +32,11 @@ while(1):
|
|||||||
cuaca = browser.find_element_by_xpath("//*[@id=\"wob_dc\"]").get_attribute('textContent')
|
cuaca = browser.find_element_by_xpath("//*[@id=\"wob_dc\"]").get_attribute('textContent')
|
||||||
last_update = browser.find_element_by_xpath("//*[@id=\"wob_dts\"]").get_attribute('textContent')
|
last_update = browser.find_element_by_xpath("//*[@id=\"wob_dts\"]").get_attribute('textContent')
|
||||||
|
|
||||||
|
|
||||||
|
suhu = suhu + "℃"
|
||||||
|
|
||||||
|
|
||||||
payload = suhu + "=" + kelembapan + "=" + presipitasi + "=" + angin + "=" + cuaca + " GMT+7" + "=" + last_update + "=" + dt_string + "=" + key
|
payload = suhu + "=" + kelembapan + "=" + presipitasi + "=" + angin + "=" + cuaca + "=" + last_update + "=" + dt_string + " GMT+7" + "=" + key
|
||||||
|
|
||||||
|
|
||||||
print(payload)
|
print(payload)
|
||||||
@ -52,4 +53,6 @@ while(1):
|
|||||||
|
|
||||||
except:
|
except:
|
||||||
print("Error gak jelas, skip")
|
print("Error gak jelas, skip")
|
||||||
browser.quit()
|
browser.quit()
|
||||||
|
print("Sleep for 1 hour")
|
||||||
|
time.sleep(60*60)
|
Loading…
Reference in New Issue
Block a user