Go to advanced search

by kghunt
Wed Mar 08, 2017 8:31 am
Forum: Troubleshooting
Topic: rPi3 fresh install, no ssh connection via wired Ethernet
Replies: 7
Views: 2046

Re: rPi3 fresh install, no ssh connection via wired Ethernet

I had the same issue on the latest raspbian on my zerow.

I had to remove the existing files first though.

Code: Select all

sudo rm /etc/ssh/ssh_host*
Also

Code: Select all

sudo ssh-keygen -A
Does all the keys for you.

One liner

Code: Select all

sudo rm /etc/ssh/ssh_host* && sudo ssh-keygen -A
by kghunt
Sat Dec 17, 2016 7:11 am
Forum: Media centres
Topic: Max number of USB Tuners
Replies: 4
Views: 1719

Re: Max number of USB Tuners

Do you have any idea what the power draw on a USB tuner is?
by kghunt
Wed Dec 14, 2016 1:57 pm
Forum: Media centres
Topic: Max number of USB Tuners
Replies: 4
Views: 1719

Max number of USB Tuners

I have just set up one of my Pi 2's as a tvheadend server with a win Nova T ministick USB tuner. It only took around an hour and works a treat (most of the time was scanning & scraping). As my Pi3 is currently in use as a retro console I was concerned that the Pi2 would not be man enough especially ...
by kghunt
Wed Dec 14, 2016 1:50 pm
Forum: General discussion
Topic: Edis free Colo 1 year on...
Replies: 1
Views: 607

Re: Edis free Colo 1 year on...

In Case anyone is interested I am still using this pi at Edis 4 years on and still going strong.
by kghunt
Wed Dec 14, 2016 1:36 pm
Forum: Raspbian
Topic: Hauppauge WinTV NOVA stick does not find channels
Replies: 3
Views: 1229

Re: Hauppauge WinTV NOVA stick does not find channels

I know this is an old case but I have this exact setup working. i did find that I need to do a "force scan" and then all the channels came through.
by kghunt
Fri Jul 01, 2016 3:35 pm
Forum: Python
Topic: RPi.GPIO Wiegand capture speed?
Replies: 68
Views: 28086

Re: RPi.GPIO Wiegand capture speed?

If you do a read without applying any formatting do you get 26 bits?

if so you need to do

Code: Select all

result = int(bits[1:24],2)
I use a relay for the lock it will pass too much current for most transistors.
by kghunt
Fri Jul 01, 2016 4:59 am
Forum: Automation, sensing and robotics
Topic: Can someone recommend a popular GSM modem?
Replies: 13
Views: 11527

Re: Can someone recommend a popular GSM modem?

Provider is underneath. It tells wvdial which config to dial.
by kghunt
Thu Jun 30, 2016 8:32 am
Forum: Python
Topic: RPi.GPIO Wiegand capture speed?
Replies: 68
Views: 28086

Re: RPi.GPIO Wiegand capture speed?

Hi Mark_M As for the binary I would just pull out bits 2-25 and convert them to decimal. I can't remember what the code looks like (it was some time ago I last looked) but for example. I think this is what you are currently doing: binary = "01010101010101010101010101" print(int(binary,2)) This is wh...
by kghunt
Thu Jun 30, 2016 7:07 am
Forum: Automation, sensing and robotics
Topic: Can someone recommend a popular GSM modem?
Replies: 13
Views: 11527

Re: Can someone recommend a popular GSM modem?

I use a huawei E156G and it works a treat. I use WVDial to make the connection. You can even set the interfaces file to keep the connection alive and dial as soon as the device is plugged in. Here is my wvdial.conf [Dialer giffgaff] Init2 = ATZ Init3 = ATQ0 V1 &D2 &C1 S0=0 +IFC=2,2 ;Init3 = ATQ0 V1 ...
by kghunt
Thu Jun 30, 2016 7:01 am
Forum: Python
Topic: RPi.GPIO Wiegand capture speed?
Replies: 68
Views: 28086

Re: RPi.GPIO Wiegand capture speed?

Joan is right. The number you are getting below converted to binary: 19634708 1001010111001101000010100 The number you want in binary: 9817354 100101011100110100001010 As you can see the binary is almost identical apart from the last bit. You need to change the code to drop the last bit before conve...
by kghunt
Tue May 10, 2016 5:35 pm
Forum: Media centres
Topic: CEC Remote Keymap the easy way..
Replies: 4
Views: 16947

Re: CEC Remote Keymap the easy way..

Glad it helped. Mine still works fine.
by kghunt
Sun Jan 24, 2016 3:59 pm
Forum: Python
Topic: RPi.GPIO Wiegand capture speed?
Replies: 68
Views: 28086

Re: RPi.GPIO Wiegand capture speed?

When I last looked at this I found that wiring-python was much faster than RPI.gpio. Thats probably because it is python wrappers on c code. But even then it still errored too much. The only working solution I had was to use C code to read the pins and pass the binary result and bit length to python...
by kghunt
Mon Jan 18, 2016 2:01 pm
Forum: General discussion
Topic: Pi powered Pi.....
Replies: 15
Views: 2005

Re: Pi powered Pi.....

In case anyone is interested I have made a Pitendo logo for the front flap of my case. I have printed them onto clear laser sticker/decal paper.

I have attached the files in case anyone wants to print their own.
by kghunt
Fri Jan 15, 2016 6:38 am
Forum: General discussion
Topic: Pi powered Pi.....
Replies: 15
Views: 2005

Re: Pi powered Pi.....

It's pretty amazing. It's a 3d printed one. I brought it off a guy on Etsy for £13 plus delivery.

I got some stickers coming to put a Pitendo logo on the flap.
by kghunt
Thu Jan 14, 2016 7:02 pm
Forum: General discussion
Topic: Pi powered Pi.....
Replies: 15
Views: 2005

Re: Pi powered Pi.....

You don't need to. I'm no noob. I'm a Linux system administrator I have over a dozen pi's and have had one since the initial batch in 2012. ( which is now in a data centre in Austria with 525 days uptime.) I understand perfectly well how sensitive they are to voltage drop etc I have corrupted many S...
by kghunt
Thu Jan 14, 2016 6:34 am
Forum: General discussion
Topic: Pi powered Pi.....
Replies: 15
Views: 2005

Re: Pi powered Pi.....

Seems to work fine for me. I have a good power supply and the pi zero only pulls around 200mah which is less than my 3g Dongle that I use with the pi2. If my pi2 was maxed out or had loads plugged into it I could maybe see that. But all I have is the zero and a WiFi adapter and the 2 isn't doing any...
by kghunt
Wed Jan 13, 2016 6:28 pm
Forum: General discussion
Topic: Pi powered Pi.....
Replies: 15
Views: 2005

Pi powered Pi.....

:-)
https://www.dropbox.com/s/hu62ibo7dyljb ... 8.jpg?dl=0

They are becoming self sufficient.

I had better watch my back...
by kghunt
Tue Dec 15, 2015 6:22 am
Forum: Off topic discussion
Topic: BlackSwift tiny pc
Replies: 11
Views: 1846

Re: BlackSwift tiny pc

I totally forgot I ordered one. Thought the project had died.
by kghunt
Tue Feb 10, 2015 4:59 pm
Forum: Raspbian
Topic: rc.local command not running??
Replies: 6
Views: 1044

Re: rc.local command not running??

Is there a specific log for rc.local or is it syslog or messages? I cant see any errors relating to it.
by kghunt
Tue Feb 10, 2015 1:47 pm
Forum: Raspbian
Topic: rc.local command not running??
Replies: 6
Views: 1044

Re: rc.local command not running??

I realised that. I took it out but still no dice.
by kghunt
Mon Feb 09, 2015 3:37 pm
Forum: Raspbian
Topic: rc.local command not running??
Replies: 6
Views: 1044

rc.local command not running??

I have synergy set up on my laptop and I can get the pi to connect to it no problem. I cannot however get rc.local to run the command. sudo /usr/bin/synergyc 10.10.9.55 _IP=$(hostname -I) || true if [ "$_IP" ]; then printf "My IP address is %s\n" "$_IP" exit 0 The original IP bit still works so the ...
by kghunt
Wed Jan 28, 2015 10:46 am
Forum: Off topic discussion
Topic: BlackSwift tiny pc
Replies: 11
Views: 1846

BlackSwift tiny pc

I just found and backed this kickstarter https://www.kickstarter.com/projects/1133560316/black-swift-tiny-wireless-computer I have a project in mind where space and power consumption are a concern but an arduino won't cut it. I'm still developing it on a pi but I plan to uses this (if they are succe...
by kghunt
Tue Dec 30, 2014 9:03 am
Forum: Python
Topic: DHT22 Python and Cron issue
Replies: 4
Views: 1359

Re: DHT22 Python and Cron issue

I can't see the "attempting to get" messages in your script are they from the dht library? The problem seems to be there. When you run it manually do you use sudo?
by kghunt
Mon Oct 20, 2014 8:09 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to protect GPIO from 12v Short?
Replies: 1
Views: 594

How to protect GPIO from 12v Short?

A bit of background. I want to make a pcb the interfaces with a wiegand proximity reader that is 12v. So I plan to put a 12v switching PSU on the board which will supply the pi with 5v and also give me the 12v I need to power the reader. The reader interface will look like this. 1 - 12v 2 - 0v 3 - D...
by kghunt
Fri Oct 17, 2014 10:04 pm
Forum: Media centres
Topic: CEC Remote Keymap the easy way..
Replies: 4
Views: 16947

CEC Remote Keymap the easy way..

After recently getting my pi re purposed as a medium for watching my DVD rips (which I own). I was delighted to see that my TV remote worked out of the box (ish) in openelec. The one major flaw was that I had no back button! With no back but to the pi is unusable. I had the android remote installed ...

Go to advanced search