瀏覽代碼

changed ip for grafana plot

tsi 6 年之前
父節點
當前提交
0752ea095f
共有 1 個文件被更改,包括 1 次插入1 次删除
  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.