-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmatrix10.py
65 lines (37 loc) · 945 Bytes
/
matrix10.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import max7219.led as led
from random import randint
import time
from xml.dom.minidom import *
import urllib
matrix = led.matrix(cascaded = 4)
# matrix = led.matrix()
matrix.brightness(0)
matrix.orientation(90)
#deviceiD=1
#matrix.show_message("Display Ausgaben")
#matrix.clear()
#i = 1
#for i in range (1, 2):
# matrix.show_message(str(i))
# time.sleep(1)
#matrix.clear()
#n = int(input("Zahl bitte: "))
#for n in range (1, n):
# matrix.show_message(str(n))
# time.sleep(1)
#matrix.clear()
# w = raw_input("Text bitte: ")
# Adresse einer XML-Datei
URL = "http://wetter.ringelberger.de/RSS/weewx_rss.xml"
# URL oeffnen und XML Daten einlesen
Baum = urllib.urlopen(URL).read()
# Ausgabe des XML-Baums
print Baum
# w = "Es folgt Datum / Uhrzeit"
matrix.show_message(str(Baum))
time.sleep(5)
t = (time.strftime("%d.%m.%Y %H:%M:%S"))
matrix.show_message(str(t))
time.sleep(2)
matrix.clear()
matrix.clear()