Cron will waterpi.py nicht ausführen #8
-
Hallo, erstmal ein großes Lob für dieses Projekt an sich.
Die kapazitiven Sensoren liefern Werte.
der log dazu
Auf dieser Seite hatte ich gesehen, dasss man das Script eventuell erst ausführbar machen muss: in der waterpi.py steht ja aber muss man eventuell noch was hiermit machen
Vielleicht kannst du mir ja helfen, da ich ein absoluter Rooky bei Linux bin |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hallo & Danke an deinem Interesse an dem Projekt :) Das die Ausgänge nicht zurück gesetzt werden ist sehr komisch. Dazu müsstest den Inhalt deiner waterpi.py posten, nur dort kann ein Fehler sein der das Verhalten erklärt. Den Cron muss man nach jeder Änderung neu starten. Das geht mit
Folgende Links könnten dir beim Einstieg in Linux / Raspberry Pi helfen: Schöne Grüße aus Wien, |
Beta Was this translation helpful? Give feedback.
-
Hi Christian, lang ist es her.
Habe heute alle Schläuche entfernt und frustriert aufgegeben, aber das hat
nicht mit deinem Projekt sondern mit meiner Dachterasse zu tun. Ohne
Wasseraschluss ist der Druck mit 5V Pumpen einfach zu gering für eine 30m2
Fläche und ich habe jetzt keine Lust mehr noch mehr Geld zu investieren.
Deine Softwareänderung hat bei mir leider so nicht funktioniert. Es gab
keine Fehler aber der Nullpunkt wurde nicht korrekt ermittelt.
Wie auch immer Engagement will belohnt werden und ich habe dir per
Paypal gerade was in die Kaffee-Kasse. Liebe Grüße
Mit freundlichen Grüßen
*Benjamin Korntheuer*
Am Mi., 19. Mai 2021 um 21:47 Uhr schrieb Christian <
***@***.***>:
… Stimmt, das Thema das mein minimaler Wert nicht 0 ist, hatte ich bei
meinen Sensoren nicht. Da muss man die Formel (per = .....) ändern. Heute
ist es schon etwas zu spät dafür, vielleicht morgen oder Du kannst gerne
die Formel posten ;)
Da bin ich glaube ich noch zu sehr Raspian Anfänger für aber cool währe es
schon
*ZEILE ERGÄNZEN*
https://github.com/DIY-Blub/plant-watering-system1.0/blob/master/waterpi.py#L10
from decimal import Decimal
*ZEILEN ERSETZEN*
https://github.com/DIY-Blub/plant-watering-system1.0/blob/master/waterpi.py#L26
per =
round((0+((100-0)/Decimal(maxValue-minValue))*Decimal(data-minValue))*2,-1)
/ 2
https://github.com/DIY-Blub/plant-watering-system1.0/blob/master/waterpi.py#L27
return int(per)
die Variablen "maxValue" und "minValue" sind glaub ich selbst erklärend ;)
Bitte testen, eine Rückmeldung ob es funktioniert wäre schön.
Schöne Grüße,
Christian
PS: hat nun doch etwas länger gedauert, aber da Du im Urlaub bist hatte
ich da keinen Stress :)
Vielen Dank für Deine Spende! 👍
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOT5K3GES27WWGVXWQ43ACTTOQIWHANCNFSM4452PDGA>
.
|
Beta Was this translation helpful? Give feedback.
Hallo & Danke an deinem Interesse an dem Projekt :)
Das die Ausgänge nicht zurück gesetzt werden ist sehr komisch. Dazu müsstest den Inhalt deiner waterpi.py posten, nur dort kann ein Fehler sein der das Verhalten erklärt.
Den Cron muss man nach jeder Änderung neu starten. Das geht mit
sudo /etc/init.d/cron restart
oder mit einem Neustart vom Raspi. Das könnte ein Grund dafür sein, warum es nicht ganz so klappt. Ein anderer Grund könnten die fehlende Ausführungsrechte sein, wie du richtig erkannt hast. Mitchmod +x waterpi.py boot.py led.py
erhalten die Dateien zusätzlich ("+") das Recht "x" = Ausführen. (EDIT: hab das auf meiner Webseite ergänzt)