Go to advanced search

by dalgibbard
Sun Jan 05, 2014 8:49 pm
Forum: General programming discussion
Topic: rc.local won't execute python mailer script (solved)
Replies: 11
Views: 11167

Re: rc.local won't execute python mailer script (solved)

Peculiar, but at least it works!!
by dalgibbard
Sun Jan 05, 2014 4:56 pm
Forum: General programming discussion
Topic: rc.local won't execute python mailer script (solved)
Replies: 11
Views: 11167

Re: rc.local won't execute python mailer script (solved)

I made a small error in my first reply, I missed out setting the defaults for the init script; so, the "update-rc.d" lines should actually be (replacing "scriptname" with the actual name in the next steps): sudo update-rc.d scriptname defaults sudo update-rc.d scriptname enable At which point, you s...
by dalgibbard
Mon Dec 23, 2013 12:30 pm
Forum: General programming discussion
Topic: rc.local won't execute python mailer script (solved)
Replies: 11
Views: 11167

Re: rc.local won't execute python mailer script (solved)

Apologies for the delay; here's an example one which i've been using to run a Python script as a daemon on startup- Just be sure to put it into /etc/init.d : #!/bin/sh ### BEGIN INIT INFO # Provides: moonlighter # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start...
by dalgibbard
Tue Dec 17, 2013 11:32 pm
Forum: General programming discussion
Topic: rc.local won't execute python mailer script (solved)
Replies: 11
Views: 11167

Re: rc.local won't execute python mailer script (solved)

Sure I'll try and get around to posting an example tomorrow. Stay tuned :)
by dalgibbard
Mon Oct 14, 2013 10:14 am
Forum: General programming discussion
Topic: rc.local won't execute python mailer script (solved)
Replies: 11
Views: 11167

Re: rc.local won't execute python mailer script (solved)

Really sorry for digging up an old thread... but the use of rc.local bugs me somewhat (and stumbled across this whilst doing something else :D) The correct way to do this (as stated here: http://www.debian.org/doc/manuals/debian-faq/ch-customizing.en.html ) is to create a valid init script in /etc/i...
by dalgibbard
Sun Sep 22, 2013 11:06 pm
Forum: Other projects
Topic: Adding a Web Interface to a HDMI Switcher
Replies: 2
Views: 1546

Adding a Web Interface to a HDMI Switcher

Thought i'd post up my first completed, working project! Just added a nice simple Web Interface to my HDMI switcher, so I can switch inputs from the comfort of [wherever!] without the need to track down the tiny little remote that i seem to lose on a constant basis. It runs off of my existing RaspBM...
by dalgibbard
Mon Jun 17, 2013 10:59 pm
Forum: Automation, sensing and robotics
Topic: Rasdoser - Automated Aquarium Additives Doser
Replies: 8
Views: 3390

Re: Rasdoser - Automated Aquarium Additives Doser

OK, so maybe i'm just misunderstanding whats going on here. With three LEDS connected, all light up at first. Thats fair enough! Set ONE of the to HIGH; and only that single LED lights up. Set another to HIGH, and that will light up too, and the last one stays off still. Set all three to high, and t...
by dalgibbard
Mon Jun 17, 2013 10:50 pm
Forum: Automation, sensing and robotics
Topic: Rasdoser - Automated Aquarium Additives Doser
Replies: 8
Views: 3390

Rasdoser - Automated Aquarium Additives Doser

Hello all! Thought i'd start putting my thoughts on to paper and get my first project on the road. So a quick summary; What i'm trying to acheive is to initially have the Raspberry Pi control about 5 LEDs, and between two and four 12V peristaltic motors. For those that aren't aware; peristaltic pump...
by dalgibbard
Mon Jun 10, 2013 7:07 am
Forum: Troubleshooting
Topic: Pi Powers Itself Off
Replies: 1
Views: 382

Pi Powers Itself Off

Hello all, I'm having an issue with my raspberry pi 512mb model B board which it's had since it's arrival back in July last year from RS (I just haven't had the time/need to look at it until now!). Basically, powering it on with the latest rasbian (or any builds, doesn't matter) with just HDMI, powe...

Go to advanced search