Jelajahi Sumber

changed ip for grafana plot

tsi 6 tahun lalu
induk
melakukan
0752ea095f
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      scripts/send_email.py

+ 1 - 1
scripts/send_email.py

@@ -1,7 +1,7 @@
 import urllib.request, tempfile, smtplib, email, time
 from datetime import datetime
 tmpdir = tempfile.TemporaryDirectory() 
-urllib.request.urlretrieve("http://192.168.178.201:3000/render/d-solo/-wCxs6mgk/solaranlage?orgId=1&refresh=10s&panelId=2&from=" + str((1000*int(time.time()))-(24*3600000)) + "&to=" + str(1000*int(time.time())) + "&width=600&height=300&tz=Europe%2FBerlin", tmpdir.name + "/leistung.png")
+urllib.request.urlretrieve("http://localhost:3000/render/d-solo/-wCxs6mgk/solaranlage?orgId=1&refresh=10s&panelId=2&from=" + str((1000*int(time.time()))-(24*3600000)) + "&to=" + str(1000*int(time.time())) + "&width=600&height=300&tz=Europe%2FBerlin", tmpdir.name + "/leistung.png")
 
 # Send an HTML email with an embedded image and a plain text message for
 # email clients that don't want to display the HTML.