ich habe von Python nur rudimantaer Ahnung, mach das schon ne Weile aber wohl leider eher selten. Meine Idee ist das ein Programm Daten ein anderes mit Daten versorgt. Das klappt jetzt leider nicht so. Von dem gelesenem
konnte ich fuer mich nichts verwerte. Darum hier mein Versuch:
Code: Alles auswählen
python programm1.py | programm2.py
Code: Alles auswählen
oder halt
python programm1.py < programm2.py
Programm1:
Code: Alles auswählen
#!/usr/bin/python
import sys, time
import Adafruit_DHT
luftf1 = 22
luftf2 = 33
temp1 = 77
temp2 = 56
daten_liste = [luftf1, temp1, luftf2, temp2]
sys.stdout = daten_liste
Code: Alles auswählen
#!/usr/bin/python
import sys, time
x = raw_input
i = 0
while i < len(x):
print x[i]
i = i + 1
Tshau,
noobi