Go to advanced search

by greatdane
Fri Aug 02, 2019 10:19 pm
Forum: Automation, sensing and robotics
Topic: PiHAT - Rasberry Pi Home Automation Transmitter
Replies: 194
Views: 77360

Re: PiHAT - Rasberry Pi Home Automation Transmitter

Excellent, Happy it helped and thanks for the heads-up :)
by greatdane
Mon Apr 30, 2018 10:45 pm
Forum: Python
Topic: Run python scrpit from php
Replies: 1
Views: 324

Re: Run python scrpit from php

In this line your are missing a single quote: $output=shell_exec(python /home/pi/hello.py'); Should be: $output=shell_exec('python /home/pi/hello.py'); However, you may also have to provide the full path to your python executable like this: $output=shell_exec('/usr/bin/python /home/pi/hello.py'); (y...
by greatdane
Wed Aug 17, 2016 4:38 pm
Forum: General discussion
Topic: USB Audio no longer working
Replies: 0
Views: 325

USB Audio no longer working

I have a Raspberry Pi v3 which has the following tasks: 1) Controlling X10 appliances via USB-to-serial cable 2) Controlling 433MHz appliances wirelessly (GPIO) 3) IR Remote Control Extender using LIRC 4) Media player via USB Audio device So, as you can see from the above I have 2 USB devices connec...
by greatdane
Tue Jul 05, 2016 1:18 pm
Forum: Automation, sensing and robotics
Topic: Running a python program at powerup
Replies: 20
Views: 3905

Re: Running a python program at powerup

As topguy says, it's beneficial to write logging info from the application itself (use the full path for the output file). A quick check could be to start it like this from rc.local /usr/bin/python /home/pi/KilnServer.py >> /tmp/KilnServer.log & Restart Pi and examine /tmp/KilnServer.log for any mes...
by greatdane
Tue Jul 05, 2016 11:16 am
Forum: Automation, sensing and robotics
Topic: Running a python program at powerup
Replies: 20
Views: 3905

Re: Running a python program at powerup

At startup your Pi doesn't know your environment. That means it doesn't know where your python executable resides. On my Pi it is /usr/bin/python, but could be different on yours. Find out by typing: which python in a terminal. Then replace 'python' with the full string in the startup script. Btw., ...
by greatdane
Fri May 13, 2016 6:00 pm
Forum: Automation, sensing and robotics
Topic: PiHAT - Rasberry Pi Home Automation Transmitter
Replies: 194
Views: 77360

Re: PiHAT - Rasberry Pi Home Automation Transmitter

Excellent. Happy it helped :)
by greatdane
Wed Mar 30, 2016 12:15 pm
Forum: Automation, sensing and robotics
Topic: PiHAT - Rasberry Pi Home Automation Transmitter
Replies: 194
Views: 77360

Re: PiHAT - Rasberry Pi Home Automation Transmitter

For anyone interested: I have successfully upgraded the Status RCS-K09 receivers to remember the configured address after power loss, simply by adding a 24LC16B EEPROM and a 22k resistor to the units. The components, marked as U3 and R15, are originally missing from the PCB, but are easily added. Se...
by greatdane
Sat Jul 25, 2015 2:26 pm
Forum: General discussion
Topic: Radio?
Replies: 2
Views: 526

Re: Radio?

There are lots of radio stations also broadcasting over the internet. If that works for you, you can use VLC to play them on the Raspberry Pi, but I suggest you add an external USB sound card for the best output.

VLC can also be controlled from command line so you can use it on a headless Pi as well.
by greatdane
Wed Mar 05, 2014 8:13 am
Forum: General programming discussion
Topic: sudo python script in crontab
Replies: 9
Views: 30999

Re: sudo python script in crontab

You know if you were logged in as root when you created the job.

Check like this:
-Log in as root
- in a terminal type: crontab -l

If the job is listed it was created as root.
by greatdane
Sun Nov 17, 2013 8:43 am
Forum: General programming discussion
Topic: sudo python script in crontab
Replies: 9
Views: 30999

Re: sudo python script in crontab

if the cron job is run as root, sudo is not necessary
by greatdane
Tue Sep 24, 2013 5:10 am
Forum: General programming discussion
Topic: sudo python script in crontab
Replies: 9
Views: 30999

Re: sudo python script in crontab

cron doesn't know about your environment such as the defined PATH. You must provide the full path for the python executable:
/usr/bin/python
by greatdane
Tue Jul 09, 2013 12:40 pm
Forum: General discussion
Topic: Network Configuration Query
Replies: 5
Views: 869

Re: Network Configuration Query

I assume you mean dnsmasq :?:
by greatdane
Fri May 31, 2013 9:56 am
Forum: Other projects
Topic: 433MHz RF signal repeater? (solved)
Replies: 10
Views: 10661

Re: 433MHz RF signal repeater? (solved)

I think the signal loss in such kind of RF switch will be too high to make sense, however, with TX boards selling for just a few quid, adding another seems like the easiest AND most efficient solution.
by greatdane
Thu May 30, 2013 11:33 am
Forum: Other projects
Topic: 433MHz RF signal repeater? (solved)
Replies: 10
Views: 10661

Re: 433MHz RF signal repeater? (solved)

If you use a separate TX board per aerial I can't see why that wouldn't work.
by greatdane
Wed May 29, 2013 7:44 pm
Forum: Other projects
Topic: 433MHz RF signal repeater? (solved)
Replies: 10
Views: 10661

Re: 433MHz RF signal repeater?

I added one of these aerials to my setup and can now use my Pi to control sockets more than 15m away.

http://www.ebay.co.uk/itm/3db-Antenna-a ... 43b91d5989
by greatdane
Thu May 09, 2013 8:14 pm
Forum: HATs and other add-ons
Topic: C++ code for the PCD8544 LCD
Replies: 3
Views: 1769

Re: C++ code for the PCD8544 LCD

Thanks :)
by greatdane
Sat Apr 06, 2013 7:40 pm
Forum: RISCOS
Topic: !VNCsever ? Anyone?!
Replies: 2
Views: 1310

Re: !VNCsever ? Anyone?!

Did you ever make this work ? If so, can you share the solution please ?

Thanks
by greatdane
Sun Mar 31, 2013 6:14 pm
Forum: HATs and other add-ons
Topic: C++ code for the PCD8544 LCD
Replies: 3
Views: 1769

Re: C++ code for the PCD8544 LCD

really .... ?
by greatdane
Tue Mar 26, 2013 4:55 pm
Forum: General discussion
Topic: CEC turning on the Raspberry Pi
Replies: 5
Views: 3306

Re: CEC turning on the Raspberry Pi

I don't do anything to the Pi before turning off the TV. It actually takes a while before the power disappears from the USB socket, but it does eventually die. Never had any problems with booting up afterwards (RaspBMC).

Not sure if you could intercept the CEC code, but would think so.
by greatdane
Sun Mar 24, 2013 6:07 pm
Forum: HATs and other add-ons
Topic: C++ code for the PCD8544 LCD
Replies: 3
Views: 1769

C++ code for the PCD8544 LCD

Hi.

Has anyone written some code in C++ to control the PCD8544 type LCD ?

I so, would you like to share ?

Cheers
by greatdane
Fri Mar 22, 2013 7:14 pm
Forum: General discussion
Topic: CEC turning on the Raspberry Pi
Replies: 5
Views: 3306

Re: CEC turning on the Raspberry Pi

I do that by connecting Pi (micro USB) to a USB output on my TV. Works fine for XBMC on Pi.
by greatdane
Tue Feb 26, 2013 1:46 pm
Forum: For sale
Topic: GPIO Breadboard Breakout PCB with Rainbow Cable and Gift
Replies: 32
Views: 4932

Re: GPIO Breadboard Breakout PCB with Rainbow Cable and Gift

Excellent service. Thanks.

Ordered Sunday night. Was contacted Monday and received goods Tuesday.


Perfect. Also good value for money.
by greatdane
Tue Feb 19, 2013 7:47 pm
Forum: Other projects
Topic: Flash EEPROM programmer
Replies: 21
Views: 30692

Re: Flash EEPROM programmer

try running as root or use sudo
by greatdane
Thu Jan 24, 2013 4:52 pm
Forum: Automation, sensing and robotics
Topic: PiHAT - Rasberry Pi Home Automation Transmitter
Replies: 194
Views: 77360

Re: PiHAT - Rasberry Pi Home Automation Transmitter

I think it may have a lot of potential.

What are the levels of the digital & analogue signals respectively ?

Do you have some screenshots of those signals ?

Go to advanced search