Then I run the sudo ./HeatController.py, but that gives me these errors: ./HeatController.py: line 1: #!/usr/bin/python: No such file or directory ./HeatController.py: line 6: import: command not found These errors come from bash, not python, so the system has not recognised the #! line in the scri...
Hi Fellow Pi Pythons :) I have been struggling with this for hours, now im giving up and turning to you Guys, so i Really hope you can help me. I have a script called HeatController.py (controls the house' heating system.) I would like it to start running via init.d. So I have made this .sh for the ...
Hi Fellow RPi's :) My RPi had a bad startup, so i ran a fsck, and it now boots Again, but it gives me some wierd errors now :( The problem is that when the RPi at startup loads: kernel module snd-bcm2835 kernel module w1_gpio kernel module w1_therm It gives me a skill: "modprobe" is not support For ...
Hmm it says: rc0.d: K01heatcontroller rc1.d: K01heatcontroller rc2.d: S01heatcontroller rc3.d: S01heatcontroller rc4.d: S01heatcontroller rc5.d: S01heatcontroller rc6.d: K01heatcontroller So that's ok right? I have run the sudo update-rc.d heatcontroller enable 2 3 4 5 That made no difference.. Can ...
Ok, i have made a new startup scrip that points to a .sh command. When i run the "sudo /etc/init.d/heatcontroller start" It Works perfectly :D But i have addet it to the startup with: sudo update-rc.d heatcontroller defaults But it just dont start :/ When i run: ls /etc/rc*.d It shows up in the list...
Hi :) Sorry for the late answer, been busy :) I get this: + PATH=/home/pi:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin + DAEMON=/home/pi/heatcontroller.py + NAME=HeatController + DESC=HeatController + test -x /home/pi/heatcontroller.py + exit 0 when I run: sudo bash -x /etc/init.d/he...
Hi All. :) I have made a Pythonscript to control my house heat system :) I have made a daemon in /etc/init.d and run. sudo chmod 755 /etc/init.d/heatcontroller sudo update-rc.d heatcontroller defaults But the script dont start, even when i run: sudo /etc/init.d/heatcontroller start Nothing happens, ...