Go to advanced search

by drifterf
Sat Aug 24, 2019 4:08 pm
Forum: Python
Topic: control a GPIO from bluetooth
Replies: 2
Views: 162

Re: control a GPIO from bluetooth

thank you, to put it simple when the device is in range and connects to bluetooth i want it to trigger a gpio pin and do this everytime it connects Your question is very broad. It is not clear if you are asking how an Android app automatically connects to a Bluetooth device in range, how do you use ...
by drifterf
Thu Aug 22, 2019 3:25 pm
Forum: Python
Topic: control a GPIO from bluetooth
Replies: 2
Views: 162

control a GPIO from bluetooth

hi everyone, i have seen you can download a app on android to control the GPIO of the pi via bluetooth. i am after doing this but simply want the following. when the phone is on with the app and it comes into range and connects to the pi it triggers a gpio automatically, then when out of range and l...
by drifterf
Wed Aug 21, 2019 5:33 pm
Forum: Python
Topic: Check and overwrite a old file on the pi from usb
Replies: 1
Views: 277

Check and overwrite a old file on the pi from usb

hi everyone. cut a long story short. ....... i have a csv database stored on the pi, it checks every minuite and downloads a online csv so if any changed occur its up to date. obviously this is only working if the pi is online, if it cannot download the file from the location on the web it has a tem...
by drifterf
Sun Aug 18, 2019 11:21 am
Forum: Python
Topic: Quckest Bootable OS For Python Scripts ?
Replies: 3
Views: 1514

Re: Quckest Bootable OS For Python Scripts ?

i currently have the terminal only verion of raspbian and its booting my script from startup no problem etc, just wondered if was a way of it running from power up after a few seconds, take about 15 seconds at moment
by drifterf
Sat Aug 17, 2019 4:23 pm
Forum: Python
Topic: Quckest Bootable OS For Python Scripts ?
Replies: 3
Views: 1514

Quckest Bootable OS For Python Scripts ?

Hi, i have some stuff running perfectly on the terminal based version of Raspbian. all of the scripts i use are python. what would be the fastest os to run my python script (its ascript which when a input is pressed it triggers a gpio to trigger a relay) i require SSH and the GPIO pins to work etc t...
by drifterf
Sat Aug 17, 2019 4:17 pm
Forum: Python
Topic: RFID MFRC522 Change Card Type (Wrong UID)
Replies: 5
Views: 2174

Re: RFID MFRC522 Change Card Type (Wrong UID)

hi, i believe you will find that the encryption sometimes is down to the producer of the cards/tokens

i had this problem with using a wiegand reader as the bits etc varied as so did the card numbers.
by drifterf
Thu Aug 15, 2019 6:05 pm
Forum: HATs and other add-ons
Topic: Best GPIO Relay Addon ?
Replies: 2
Views: 845

Re: Best GPIO Relay Addon ?

gordon77 wrote:
Thu Aug 15, 2019 5:52 pm
This one appears to use 3 GPIO's...

https://www.waveshare.com/rpi-relay-board.htm
awesome find !! thank you !!
by drifterf
Thu Aug 15, 2019 5:36 pm
Forum: HATs and other add-ons
Topic: Best GPIO Relay Addon ?
Replies: 2
Views: 845

Best GPIO Relay Addon ?

Hi, im after a gpio relay board (only looking for 1 relay at the moment) that will sit on top of a pi 3 model b i have a project which is gret except for the cables coming out the gpio ports etc. if i could get a clip on module with a relay on the gpio would be awesome. i have the I2c relay from see...
by drifterf
Wed Aug 14, 2019 6:38 pm
Forum: Python
Topic: Script to download a file from internet at time intervals
Replies: 4
Views: 1461

Re: Script to download a file from internet at time intervals

Try this version of the command in the crontab wget http://www.furniss.uk/Databases/database.csv -O /home/pi/furniss/database/database.tmp && mv /home/pi/furniss/database/database.tmp /home/pi/furniss/database/database.csv That will download to a temporary file, and then overwrite the real file onl...
by drifterf
Wed Aug 14, 2019 5:41 pm
Forum: Python
Topic: Script to download a file from internet at time intervals
Replies: 4
Views: 1461

Re: Script to download a file from internet at time intervals

Use cron to schedule a simple script the uses wget wget https://example.com/files/mydiwnload.dat hi, thank you for this, this seems to work great. the only problem is if the file doesent exist or the pi dosent have internet it dosent retain the existing data as a failover ? im using this wget to ge...
by drifterf
Wed Aug 14, 2019 4:39 pm
Forum: Python
Topic: Script to download a file from internet at time intervals
Replies: 4
Views: 1461

Script to download a file from internet at time intervals

hI, is there a simple python script that when i run it, it downloads a file from a location on the web to a folder on the pi ? or one that could auto do this every hour or so ? thanks
by drifterf
Tue Aug 13, 2019 5:24 pm
Forum: Python
Topic: reading a online database but have a fall over on the pi ?
Replies: 7
Views: 1636

Re: reading a online database but have a fall over on the pi ?

this is exactly as i want tbh !! could you help me put this in the code i posted above please ? as mentioned if i could see the differnce i could continue this project greatly on my own and learn. appreciated I would use something like wget to download the file and if that fails then use the local c...
by drifterf
Tue Aug 13, 2019 4:17 pm
Forum: Python
Topic: reading a online database but have a fall over on the pi ?
Replies: 7
Views: 1636

Re: reading a online database but have a fall over on the pi ?

thank you for the comments and thats great. also thanks for the fallover-failover thing :) isit possible you could help me add it to the code, im new and learning and if could see the differnce between my original code and one with the option of what i asked above this would really help me so i coul...
by drifterf
Mon Aug 12, 2019 6:45 pm
Forum: Python
Topic: reading a online database but have a fall over on the pi ?
Replies: 7
Views: 1636

reading a online database but have a fall over on the pi ?

hi, i have a system that reads a csv file on the pi itself at the moment and does its job as needed. i can update this csv file wih new data as i need. ithe system is an access control system so when the proximity reader reads the correct number it triggers a gpio pin. what i want to so is have my s...
by drifterf
Sat Aug 10, 2019 8:45 am
Forum: Python
Topic: Running Python Scripts From A Html
Replies: 36
Views: 944

Re: Running Python Scripts From A Html

thanks, i have tornado redirecting to a page called return.html and in that page it has that javascript to tell it to direct to a differnt page.

as said if i do it through the localhost:8787 it shows the page once i click the link but never redorects. if i just launch the return.html it works fine
by drifterf
Sat Aug 10, 2019 6:28 am
Forum: Python
Topic: Running Python Scripts From A Html
Replies: 36
Views: 944

Re: Running Python Scripts From A Html

can anyone help with this so i can continue my project over the weekend ? thanks
by drifterf
Fri Aug 09, 2019 3:43 pm
Forum: Python
Topic: Running Python Scripts From A Html
Replies: 36
Views: 944

Re: Running Python Scripts From A Html

so much for the last question i promise thing lol i have it working as i want but made a html file which redirects back to the main page after 5 seconds. so when you press a button it calls the opendoor_1_success and shows my return.html (which has the javascript redirect in it) but it stays on this...
by drifterf
Thu Aug 08, 2019 4:54 pm
Forum: Python
Topic: Running Python Scripts From A Html
Replies: 36
Views: 944

Re: Running Python Scripts From A Html

hi, thanks thats excellent, i cant appreicate your time enough with me on this !!! thanks !!
by drifterf
Thu Aug 08, 2019 4:14 pm
Forum: Python
Topic: Running Python Scripts From A Html
Replies: 36
Views: 944

Re: Running Python Scripts From A Html

sorry one last thing (i promise) the main html page (localhost:port) isit possible to put a better html in this location, if i was to create a html in a web design software and then copy replace the code to the self.write("""<html> part would this show my designed website or can i ask it to read the...
by drifterf
Wed Aug 07, 2019 5:38 pm
Forum: Python
Topic: Running Python Scripts From A Html
Replies: 36
Views: 944

Re: Running Python Scripts From A Html

Hi, thank you so much for your help, i found the issue was actually with the script i was trying to launch. as i was launching server.py with python3 the old script was missing the brackets from the print part of the script i changed the old script from print "door released" to print ("door released...
by drifterf
Wed Aug 07, 2019 4:14 pm
Forum: Python
Topic: Running Python Scripts From A Html
Replies: 36
Views: 944

Re: Running Python Scripts From A Html

Hi, no luck :( all i get now is the following in the terminal when i click something MyOpenDoor_2_Handler.get() WARNING:tornado.access:404 GET /favicon.ico (::1) 3.04ms MyOpenDoor_2_Handler.get() call script opendoor_2.py ERROR:tornado.access:500 GET /opendoor_2 (::1) 3.56ms MyOpenDoor_1_Handler.get...
by drifterf
Tue Aug 06, 2019 6:15 pm
Forum: Python
Topic: Running Python Scripts From A Html
Replies: 36
Views: 944

Re: Running Python Scripts From A Html

- the last line of code is missing tornado.ioloop.IOLoop.current().start() - html code usually has links inside <body>... here goes the page ...</body>. Your page works unexpectedly. - in the Popen, add ", shell=True". Or try using /usr/bin/python which is more precise. - the url mappings contain r...
by drifterf
Tue Aug 06, 2019 5:51 pm
Forum: General discussion
Topic: Large Raspberry Pi Case
Replies: 2
Views: 241

Re: Large Raspberry Pi Case

hi mate, thanks i shall continue custom building. might come up with a set design and see if someone can 3d print i suppose, thanks
by drifterf
Tue Aug 06, 2019 5:49 pm
Forum: General discussion
Topic: Seamonkey Browser
Replies: 1
Views: 97

Seamonkey Browser

Hi, i have done a search on the forum and turned up nothing with regards to installing seamonkey browser on the pi i would like seamonkey on raspbian but i also run ubuntu mate so either would be great. the work devices we use are web based and seamonkey runs its exactly how we cant it. any help ple...

Go to advanced search