Sfoglia il codice sorgente

One must refresh the data before requesting it

Christopher Nethercott 3 anni fa
parent
commit
1c08a8f1ff
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      main.py

+ 1 - 0
main.py

@@ -69,6 +69,7 @@ def main():
     init_db()
 
     while(1):
+        pihole.refresh()
         data = get_data_for_influxdb()
         if influxdb_client.write_points(data) == True:
             print("{} - Data written to DB successfully".format(datetime.datetime.now()))