Go to advanced search

by drifterf
Thu Apr 11, 2019 12:35 pm
Forum: General discussion
Topic: Run a pi3 on battery for a week ?
Replies: 7
Views: 572

Run a pi3 on battery for a week ?

Hi guys I would like you thoughts on running a pi 3 for a week on battery I can use a leasuire battery for this project so it's not a problem. Could people let me know any calculations for running the pi on a battery so it will last a week. This project would involve using the WiFi but nothing else ...
by drifterf
Thu Apr 11, 2019 12:16 pm
Forum: Other projects
Topic: Proximity fob based game around the town
Replies: 8
Views: 392

Re: Proximity fob based game around the town

I came up with a quick idea of a game of "hide and seek"

Create the box and mount it somewhere in town. When someone finds it they put there fob on it and gives us the details of the user. They can then choose a location for it to be hidden etc
by drifterf
Thu Apr 11, 2019 12:13 pm
Forum: Other projects
Topic: Proximity fob based game around the town
Replies: 8
Views: 392

Proximity fob based game around the town

Hi. Right so just quickly around our town these beat the street boxes have just shown up. It's a game that works in the following way You get given a access proximity fob. It tracks the distance between each box (which is normally mounted on a lamppost) You can track you use with a simple web page a...
by drifterf
Mon Apr 08, 2019 7:11 pm
Forum: Troubleshooting
Topic: when i open terminal i get "running at boot"
Replies: 1
Views: 102

Re: when i open terminal i get "running at boot"

ok as soon as i put this post up i seem to have found out the issue.

in my .bashrc file i put

echo running at boot
on this line i put the directory etc to my script but forgot the "&"

sorry for time waste lol
by drifterf
Mon Apr 08, 2019 7:04 pm
Forum: Troubleshooting
Topic: when i open terminal i get "running at boot"
Replies: 1
Views: 102

when i open terminal i get "running at boot"

hi guys, i got my project so close to finishing but wanted to add a pythons script to auto boot. i ended up editing the rc.local and the home/pi/.bashrc anyway now when i try to load terminal it comes up with a print saying "running at boot" i cant terminal and "sudo nano" to change anything i have ...
by drifterf
Thu Mar 14, 2019 5:57 pm
Forum: Python
Topic: editing a csv for python via webpage/easiest way of editing etc
Replies: 1
Views: 375

editing a csv for python via webpage/easiest way of editing etc

Hi, please let me know as i think this is in the wrong section really but dont know where to post. i have the following script activating from a access control reader to open doors etc via a relay. in simple im building the pi into a box with a 7" touch screen built in the front. i currently have th...
by drifterf
Wed Mar 13, 2019 6:24 am
Forum: General discussion
Topic: clone a PI3 to a new PI3
Replies: 5
Views: 296

Re: clone a PI3 to a new PI3

It's mainly as a backup so I don't lose everything i have done :)
by drifterf
Tue Mar 12, 2019 7:30 pm
Forum: General discussion
Topic: clone a PI3 to a new PI3
Replies: 5
Views: 296

Re: clone a PI3 to a new PI3

awesome so its as simple as using the tool in the PI already to copy to a new card. this is perfect. many thanks
by drifterf
Tue Mar 12, 2019 7:09 pm
Forum: General discussion
Topic: clone a PI3 to a new PI3
Replies: 5
Views: 296

clone a PI3 to a new PI3

Hi, i have had some good times (and annoying) with the PI experience. i have got to a stage now where i would like to clone a pi ? in a ideal world i could just like to copy all the contents of the sd card over to a new one and go from that. is something like this possible ? i have apache etc instal...
by drifterf
Mon Mar 11, 2019 7:21 am
Forum: Python
Topic: PIG PIO Wiegand Reader + Timeout
Replies: 8
Views: 488

Re: PIG PIO Wiegand Reader + Timeout

@paddyg could you help with this ? thanks
by drifterf
Thu Mar 07, 2019 7:45 pm
Forum: Python
Topic: PIG PIO Wiegand Reader + Timeout
Replies: 8
Views: 488

Re: PIG PIO Wiegand Reader + Timeout

my head is indefinably not working at moment (python course booked) ok so i dont this #!/usr/bin/env python import pigpio class decoder: """ A class to read Wiegand codes of an arbitrary length. The code length and value are returned. EXAMPLE #!/usr/bin/env python import time import pigpio import wi...
by drifterf
Thu Mar 07, 2019 7:15 pm
Forum: Python
Topic: PIG PIO Wiegand Reader + Timeout
Replies: 8
Views: 488

Re: PIG PIO Wiegand Reader + Timeout

please can someone help with this please ? i want to make this script read numbers from a file (csv etc ? ) and then grant access so it pulls and input to high to trigger a relay ? please , thanks #!/usr/bin/env python import pigpio class decoder: """ A class to read Wiegand codes of an arbitrary le...
by drifterf
Thu Mar 07, 2019 6:16 am
Forum: Python
Topic: PIG PIO Wiegand Reader + Timeout
Replies: 8
Views: 488

Re: PIG PIO Wiegand Reader + Timeout

Feels a bit like Dragons Den (UK TV programme) where the wrong Dragon offers to invest and disappoints the money seeker... Just to say I spent a while looking at reversed and bit-flipped versions of binary representations of your numbers and like @joan failed to find a predictable mapping. Is it si...
by drifterf
Wed Mar 06, 2019 6:37 pm
Forum: Python
Topic: PIG PIO Wiegand Reader + Timeout
Replies: 8
Views: 488

Re: PIG PIO Wiegand Reader + Timeout

thank you so much joan, was hoping you would reply :) what i am aiming for is on a number being produced and allowed then it triggers pins to power a relay etc. so changing a pin from low to high etc. i would like to use the a CSV file or txt to edit these permissions so i can in the end create a we...
by drifterf
Wed Mar 06, 2019 5:58 pm
Forum: Python
Topic: PIG PIO Wiegand Reader + Timeout
Replies: 8
Views: 488

Re: PIG PIO Wiegand Reader + Timeout

no one on either of these issues ? #!/usr/bin/env python import pigpio class decoder: """ A class to read Wiegand codes of an arbitrary length. The code length and value are returned. EXAMPLE #!/usr/bin/env python import time import pigpio import wiegand def callback(bits, code): print("bits={} code...
by drifterf
Tue Mar 05, 2019 7:35 pm
Forum: Python
Topic: PIG PIO Wiegand Reader + Timeout
Replies: 8
Views: 488

PIG PIO Wiegand Reader + Timeout

Hi guys, i have Pig PIO running the wiegand script on the website and reading cards perfectly fine. only problem i am having is that the code being read on python is differnt to the ones printed on the card. for example i have presented 3 cards to the reader and get the following: Bits=26 value=4564...
by drifterf
Mon Mar 04, 2019 6:05 am
Forum: Python
Topic: ImportError: No module named 'spi'
Replies: 4
Views: 1474

Re: RFID Reader question

have you enabled SPI in raspi-config ?
by drifterf
Fri Mar 01, 2019 5:25 pm
Forum: Python
Topic: Part Of Script Not Writing To a File
Replies: 3
Views: 284

Re: Part Of Script Not Writing To a File

appreciated paddy, im still learning. any ideas on my original post ?
by drifterf
Wed Feb 27, 2019 8:23 pm
Forum: Python
Topic: Part Of Script Not Writing To a File
Replies: 3
Views: 284

Part Of Script Not Writing To a File

Heya, i have been working on a script for a while and really thank everyone on here for helping me. i may be doing something stupid but i have checked loads of times and cant fine where i am going wrong i am writing events to a txt file and reading them in a html. all seems fine except for 1 part. w...
by drifterf
Thu Feb 21, 2019 6:07 pm
Forum: Python
Topic: Read from CSV to part of my code (attached)
Replies: 32
Views: 1711

Re: Read from CSV to part of my code (attached)

have just tested this and works like dream, will be continuing with this last script :) thank you so much. Just need to get it integrated into a webpage so i can edit the details via the webpage that way and im laughing :) thanks
by drifterf
Thu Feb 14, 2019 8:29 am
Forum: Python
Topic: Read from CSV to part of my code (attached)
Replies: 32
Views: 1711

Re: Read from CSV to part of my code (attached)

i will try this out later today, thank you :)
by drifterf
Wed Feb 13, 2019 6:07 am
Forum: Python
Topic: Read from CSV to part of my code (attached)
Replies: 32
Views: 1711

Re: Read from CSV to part of my code (attached)

brilliant thanks once again !! defiantly learnt alot on this :) appreciate it to everyone who helped, thank you
by drifterf
Tue Feb 12, 2019 8:02 pm
Forum: Python
Topic: Read from CSV to part of my code (attached)
Replies: 32
Views: 1711

Re: Read from CSV to part of my code (attached)

if i wanted to add another data line on the following how would i do it ? file.write("Access Granted 1\n") print (" Number: ",data[count][0]) print (" Name: ",data[count][1]) print (" Tel No: ",data[count][2]) just add print ("another", data[count][3]) and add another , to the source ? like this pri...
by drifterf
Tue Feb 12, 2019 7:32 pm
Forum: Python
Topic: Read from CSV to part of my code (attached)
Replies: 32
Views: 1711

Re: Read from CSV to part of my code (attached)

gordon77 wrote:
Tue Feb 12, 2019 7:19 pm
Remove the line GPIO.setmode (GPIO.BCM) near the beginning.
thank you so much, i have been constantly looking at this and you guys helping has got me fault finding myself now as i do understand alot better. really appreciate it !!

Go to advanced search