Go to advanced search

by Hcgrant
Mon Mar 12, 2018 12:02 pm
Forum: Beginners
Topic: what is remote GPIO
Replies: 18
Views: 34360

Re: what is remote GPIO

Just to add to the above ... Using the pigpiod daemon you can control a pi's GPIOs from any computer (mine is a PC running OpenSuse) that can use the pigpio python lib. And further .. the pi can be using its GPIO via the pigpiod daemon and at the same you can remotely control and monitor (read) its ...
by Hcgrant
Wed Feb 07, 2018 8:33 pm
Forum: Automation, sensing and robotics
Topic: MyPi - New iOS App for Home Automation projects
Replies: 34
Views: 26266

Re: MyPi - New iOS App for Home Automation projects

Does this work with python 3.5.3 ?
When i run ..
python3 mypi_server.pyc
... I get ....
RuntimeError: Bad magic number in .pyc file
:(
When i get it working its going to be just what I need
by Hcgrant
Fri Nov 03, 2017 10:56 pm
Forum: Advanced users
Topic: rc.local after upgrade to jessie does not work
Replies: 23
Views: 25960

Re: rc.local after upgrade to jessie does not work

ccosse wrote:
Thu Jun 01, 2017 1:27 am
At the top of /etc/rc.local you need to change

#!/bin/sh -x
to
#!/bin/bash

And it will work!
:D :D :D I had the same problem, I use rc.local to run a python script ... making that change to rc.local fixed things for me
Many thanks
by Hcgrant
Thu Jul 20, 2017 4:32 pm
Forum: Python
Topic: socket.gethostbyname returns wrong interface ip add
Replies: 12
Views: 3447

Re: socket.gethostbyname returns wrong interface ip add

Thanks again for all your inputs .. I think my best soloution is to follow jojopi's advice. I modified the hosts file -- 192.168.254.129 NeTestPi ( removing the 127.0.1.1 address, which, btw, I was confusing with the lo add ) and gethostbyname not unsuprisingly returned 192.168.254.129. :roll:
by Hcgrant
Wed Jul 19, 2017 8:51 am
Forum: Python
Topic: socket.gethostbyname returns wrong interface ip add
Replies: 12
Views: 3447

Re: socket.gethostbyname returns wrong interface ip add

This is Interesting .. Ive connected a monitor and keyboard directly to the pi and run your program DougieLawson and it returns the static IP address I assigned via interfaces! But gethostbyname still returns 127.0.1.1 ! Grrrrrrr
by Hcgrant
Tue Jul 18, 2017 10:09 pm
Forum: Python
Topic: socket.gethostbyname returns wrong interface ip add
Replies: 12
Views: 3447

Re: socket.gethostbyname returns wrong interface ip add

Re DougieLawson .. yes I did configure the static address in /etc/network/interfaces. I'll look at /etc/dhcpcd.conf .. thanks Re jojopi .. Thanks .. I'm going to have to learn a bit more about making connections. I still dont know why get gethostbyname returned the lo IP add .. Ive used this constr...
by Hcgrant
Tue Jul 18, 2017 9:20 pm
Forum: Python
Topic: socket.gethostbyname returns wrong interface ip add
Replies: 12
Views: 3447

Re: socket.gethostbyname returns wrong interface ip add

Thanks everyone for their answers . Re DougieLawson .. I ran your program on the pi but it didn't return the IP I was expecting.. The pi has a fixed IP add but the one returned looks like it was obtained by DHCP . Perhaps a bit more explanation of my aims might help .. there may be a better way of t...
by Hcgrant
Tue Jul 18, 2017 4:17 pm
Forum: Python
Topic: socket.gethostbyname returns wrong interface ip add
Replies: 12
Views: 3447

socket.gethostbyname returns wrong interface ip add

I'm accessing my raspberry pi with "ssh 192.168.254.129 -X -l pi" I'm running idle3 on the pi ( [email protected]:~ $:idle3 & ) but the idle3 windows are X forwarded to my local comp (suse linux) In the idle3 shell the command >>>socket.gethostbyname("NeTestPi") yeilds '127.0.1.1' and not the ip add I use...
by Hcgrant
Thu Jun 02, 2016 9:12 pm
Forum: Troubleshooting
Topic: Time is not updating
Replies: 14
Views: 9933

Re: Time is not updating

I had the problem too, see viewtopic.php?f=28&t=141454, particularly the solution suggested by SR-71. His /Her ? solution worked for me. So many thanks SR-71 :D
by Hcgrant
Sun Jul 27, 2014 8:37 pm
Forum: Advanced users
Topic: B+ "Run"
Replies: 1
Views: 1679

B+ "Run"

On the new B+ , close to the Led's are two through holes. The holes are contained within a white rectangle labelled "RUN"
What is the purpose of this ?
Does anyone know ?
by Hcgrant
Fri Feb 15, 2013 8:33 pm
Forum: Beginners
Topic: Can't get rc.local to run vncserver at boot
Replies: 6
Views: 2973

Re: Can't get rc.local to run vncserver at boot

Hi DBryiant ..thanks for the reply Ive checked for the vnc server running after boot with "ps axu" ...its not running. I wondered if it wont run as root and tried "sudo vncserver" .. that started the vnc server and I can login. So thats not the problem ... :-( I'll try the method given in http://www...
by Hcgrant
Fri Feb 15, 2013 8:26 pm
Forum: Beginners
Topic: Can't get pi to work!
Replies: 2
Views: 368

Re: Can't get pi to work!

Hi sheardo123 what do you mean by connect? Do the led's flash when you plugin the power cable? What do you mean by " I prepped the SD card connected the pi to mains using a HTC phone charger " ? The HDC phone charger , does this produce +5v with at least 700ma ? Have you put an operating system on y...
by Hcgrant
Wed Feb 13, 2013 4:23 pm
Forum: Beginners
Topic: Can't get rc.local to run vncserver at boot
Replies: 6
Views: 2973

Can't get rc.local to run vncserver at boot

Hi , Im hoping someone can explain this to me ... I want to run vncserver at boot so ive added the following to /etc/rc.local .. ---------------------------------------------------- # # my bit to start the VNC server # /usr/bin/vncserver date >> /home/pi/vnclocalran # to monitor that rc.local ran an...

Go to advanced search