|
|
@@ -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.
|