Go to advanced search

by Hcgrant
Sat Mar 14, 2020 11:49 am
Forum: Advanced users
Topic: Large but flexible project?
Replies: 8
Views: 676

Re: Large but flexible project?

Just my ten peneth ... I would start by looking at all the interface requirements to the devices you want to monitor/control and see if you can match them with Pi's capabilities. Pi zeros are not expensive .. have one per device ? You could then connect them to your "main" computer either ...
by Hcgrant
Fri Mar 13, 2020 10:22 am
Forum: Advanced users
Topic: Pi wifi re/connection
Replies: 6
Views: 588

Re: Pi wifi re/connection

Thanks Dai-x, Paul and bls for your replies, :) :) Ive really just been a user of networking so far but I think Ive got to get to understand it more to solve this. Ive connected to all the pi's via ssh and run the monitoring programs via idle3 which display on my main computer. I was hoping that any...
by Hcgrant
Wed Mar 11, 2020 3:25 pm
Forum: Advanced users
Topic: Pi wifi re/connection
Replies: 6
Views: 588

Re: Pi wifi re/connection

Many thanks for the reply Paul .. I was looking round in /proc to see if I could find a reference to the WAP being connected to ( and didnt find anything ) .. could you give me a clue to how you approached it?
by Hcgrant
Wed Mar 11, 2020 11:14 am
Forum: Advanced users
Topic: Pi wifi re/connection
Replies: 6
Views: 588

Pi wifi re/connection

I have a number of pi's measuring temp and humidity round my house connected by wifi to a central pi which collects the data and then controls the boiler. I also have several Wifi access points and also a not very reliable mains supply which at infrequent intervals dies for very short periods . This...
by Hcgrant
Fri Nov 15, 2019 7:31 pm
Forum: Python
Topic: Logging Python Traceback
Replies: 1
Views: 328

Logging Python Traceback

I have a headless pi in my shed reading temp and humidity. Every now and then the python program fails. Is there a way I can capture the Traceback and log it to a file? I think I might have found the answer in "Introducing Python". There is a module called 'logging' and from a very brief l...
by Hcgrant
Wed Nov 13, 2019 8:28 pm
Forum: Troubleshooting
Topic: Pi Zero W v1.1 - "No wireless interface found" on 2019-09-26 Buster Lite
Replies: 17
Views: 2881

Re: Pi Zero W v1.1 - "No wireless interface found" on 2019-09-26 Buster Lite

Ive got the same problem after I upgraded my 2019-09-26 Buster but on a Pi3
by Hcgrant
Wed Sep 11, 2019 4:39 pm
Forum: Troubleshooting
Topic: Pi not rebooting after power failure
Replies: 4
Views: 341

Re: Pi not rebooting after power failure

Thanks Andyroo, I'll have a look at watchdog timers .. internal and the 555 one.
I didnt know that an internal watchdog existed.
Ta,
H C Grant
by Hcgrant
Wed Sep 11, 2019 4:00 pm
Forum: Troubleshooting
Topic: Pi not rebooting after power failure
Replies: 4
Views: 341

Pi not rebooting after power failure

I have a number of headless pis scattered round my house measuring temperature and humidity. (the cycle is every ten minutes) Unfortunately we suffer from occasional short power failures .. so short that they don't affect the time on my cooker clock. When this happens a number of the pis fail to res...
by Hcgrant
Wed Jul 31, 2019 3:29 pm
Forum: Beginners
Topic: Setting static IP address on a Pi 4
Replies: 20
Views: 14785

Re: Setting static IP address on a Pi 4

I also thought Buster was not letting me set a static ip .. but thanks to this I looked at the router and found that the ip was already in use!
So thanks :)
by Hcgrant
Fri Jul 19, 2019 9:12 pm
Forum: Troubleshooting
Topic: [solved] Cant get hdmi to work from pi4
Replies: 2
Views: 1025

Re: Cant get hdmi to work from pi4

:D :D Done it!
Many thanks Neil ...you know, I missed the Menu/Preferences/Screen Configuration option! How I did I dont know. :oops:
Its now working at the resolution I get with a Pi3. :D
by Hcgrant
Thu Jul 18, 2019 3:53 pm
Forum: Troubleshooting
Topic: [Solved] New Raspberry 4b 4g dead upon arrival
Replies: 17
Views: 1926

Re: [Solved] New Raspberry 4b 4g dead upon arrival

I have the same problem to you Neil I think ..
See my post
https://www.raspberrypi.org/forums/view ... 8&t=246139
Hope this might help
by Hcgrant
Thu Jul 18, 2019 12:53 pm
Forum: Troubleshooting
Topic: [solved] Cant get hdmi to work from pi4
Replies: 2
Views: 1025

[solved] Cant get hdmi to work from pi4

Just bought a pi4.. and cant get it to drive my monitor an HPL1906 .. I see a message ..."Signal out of range Change settings to 1280x1024 @ 60hz" Ive set up the SD card in a Pi3 connected identically to the Pi4 , the Pi3 works perfectly, but the Pi4 gives me the error message above. The S...
by Hcgrant
Mon Mar 12, 2018 12:02 pm
Forum: Beginners
Topic: what is remote GPIO
Replies: 18
Views: 50012

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: 38
Views: 45437

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: 31670

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: 7214

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: 7214

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: 7214

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: 7214

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: 7214

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 ( pi@NeTestPi:~ $: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' ...
by Hcgrant
Thu Jun 02, 2016 9:12 pm
Forum: Troubleshooting
Topic: Time is not updating
Replies: 14
Views: 14213

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: 1834

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: 3924

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...
by Hcgrant
Fri Feb 15, 2013 8:26 pm
Forum: Beginners
Topic: Can't get pi to work!
Replies: 2
Views: 512

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 s...
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: 3924

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