Go to advanced search

by Andyroo
Mon May 20, 2019 10:58 pm
Forum: Automation, sensing and robotics
Topic: Magnetometer Project
Replies: 5
Views: 95

Re: Magnetometer Project

Have you seen this guide?

If you Google DIY vehicle detector wire you should come up with a few ideas that are easier to read...
by Andyroo
Mon May 20, 2019 10:45 pm
Forum: Beginners
Topic: Serial connection via USB with no network connection?
Replies: 9
Views: 119

Re: Serial connection via USB with no network connection?

If you use the serial port, can you use a gui, download updates or install new programs over it?

I know you could use Minicom and Kermit it over but is there any easier way?

You may be pleased to know I’ve binned the none working OTG USB cables :lol:
by Andyroo
Mon May 20, 2019 10:36 pm
Forum: Troubleshooting
Topic: how to change the permission so images are written to a folder but not saving over a image with the same name
Replies: 2
Views: 48

Re: how to change the permission so images are written to a folder but not saving over a image with the same name

To be honest I would not want 10,000 files in the same directory (assuming the disk holds that many).

You may want to look at archiving the files possibly by date into easily searchable directories.
by Andyroo
Mon May 20, 2019 10:23 pm
Forum: Beginners
Topic: OctaPi - Python Pickle Error
Replies: 3
Views: 54

Re: OctaPi - Python Pickle Error

Are you running under Python 2?

Python 2 does not support protocol 4 so you would need to use Python 3.4 or above. Four is documented here

You can try your version of Python 3 on the Pi by using the command line

Code: Select all

python3 ––version
and check it’s 3.4 or above.
by Andyroo
Mon May 20, 2019 10:12 pm
Forum: Beginners
Topic: Serial connection via USB with no network connection?
Replies: 9
Views: 119

Re: Serial connection via USB with no network connection?

A Zero does not have a network adapter https://www.raspberrypi.org/products/raspberry-pi-zero/ so you would need to add a WiFi connection or Ethernet adapter and as it has only one USB port a hub would be needed to add a keyboard / mouse. You did ask for a solution without a network - when the Pi is...
by Andyroo
Mon May 20, 2019 7:06 pm
Forum: Troubleshooting
Topic: compatibility problem with microsd-card ?
Replies: 7
Views: 104

Re: compatibility problem with microsd-card ?

What did you write the card with?

I use Etcher as you do not need to unzip the files, no format of the card and it does a verify after the write.
by Andyroo
Mon May 20, 2019 6:57 pm
Forum: General discussion
Topic: Reply with quote stopped working
Replies: 3
Views: 117

Re: Reply with quote stopped working

Not in this version of phpBB :cry:

I normally quote the post and manually remove the bits I’m not interested in replacing them with ‘...’ to show bits are missing and reduce the out of context issues.

It’s a right pain on the iPad.

Edit: I think they use XenForo
by Andyroo
Mon May 20, 2019 6:54 pm
Forum: Off topic discussion
Topic: Ego Search / Own Posts failing
Replies: 13
Views: 368

Re: Ego Search / Own Posts failing

Twenty one posts show for me and mine are returning instantly...

Not the correct number but I’m not fussed as some threads I’ve added to have been killed :lol:
by Andyroo
Mon May 20, 2019 6:52 pm
Forum: Beginners
Topic: Serial connection via USB with no network connection?
Replies: 9
Views: 119

Re: Serial connection via USB with no network connection?

You need to set up the On The Go mode on the Pi as detailed https://desertbot.io/blog/headless-pi-zero-ssh-access-over-usb-windows I’ve not tried the Windows set up but the Mac one worked fine. Note I have had problems with the odd cable or two - it needs to have the OTG cable connected and some of ...
by Andyroo
Mon May 20, 2019 6:48 pm
Forum: Python
Topic: Move ERROR
Replies: 5
Views: 72

Re: Move ERROR

I’ve added code tags </> button to show the indent.

If you could keeps running then the try/except has worked fine.

The try function does not stop if there is an error - it just passes control to the except part of the function.

What exactly are you expecting?
by Andyroo
Mon May 20, 2019 6:45 pm
Forum: Python
Topic: Move ERROR
Replies: 5
Views: 72

Re: Move ERROR

Hello, I have this code : import time import shutil from random import randint RegRasp="/home/pi/Desktop/new" def MoveToServer(): data=(time.strftime('%d-%m-%Y')) hora=(time.strftime('%H-%M-%S')) Random1 = randint(1, 10000) + randint(10000, 90000) fileNome= str(data) + "_" + str(hora) + "_" + str(Ra...
by Andyroo
Mon May 20, 2019 5:56 pm
Forum: Troubleshooting
Topic: RPI Zero doesnt work
Replies: 5
Views: 129

Re: RPI Zero doesnt work

If it works when powered up via the USB port you could always set it up to boot that way and just use it for development of testing. Set up details for a Mac is https://desertbot.io/blog/ssh-into-pi-zero-over-usb and he has a Windows version at https://desertbot.io/blog/headless-pi-zero-ssh-access-o...
by Andyroo
Mon May 20, 2019 5:51 pm
Forum: Camera board
Topic: How to find RTSP User & Pass for ip camera
Replies: 6
Views: 100

Re: How to find RTSP User & Pass for ip camera

You would do best to ask either your supplier or on the manufactures support forum rather than on a board for Raspberry Pi support.
by Andyroo
Mon May 20, 2019 4:55 pm
Forum: Beginners
Topic: remote screen that runs code from raspberry
Replies: 2
Views: 75

Re: remote screen that runs code from raspberry

You can use Python as a web server using flask - http://flask.pocoo.org

You can also go 'full framework' and spend hours comparing https://wiki.python.org/moin/WebFrameworks to find 'the one' :lol:
by Andyroo
Mon May 20, 2019 4:16 pm
Forum: Advanced users
Topic: Run Stretch wifi GUI from command line
Replies: 4
Views: 98

Re: Run Stretch wifi GUI from command line

The GUI needs the desktop :cry: You could try this from the good folk at Balena https://github.com/balena-io/wifi-connect - it turns the Pi into an AP where the users can enter the local WiFi details and then it connects to that. Drawback is that it needs another device to set up. If you know the Wi...
by Andyroo
Mon May 20, 2019 4:09 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: Edited fstab, rebooted, Cannot access to console, the root account is locked
Replies: 2
Views: 29

Re: Edited fstab, rebooted, Cannot access to console, the root account is locked

I have this problem - made an error in the fstab file and now I am locked out. The problem I have is that I can't just edit a file on the SD card. I installed the Raspberry Pi for Desktop on an old MacMini. It was running very nicely until I tried to add a mount. I can get into GRUB but have no clu...
by Andyroo
Mon May 20, 2019 1:01 pm
Forum: Beginners
Topic: Questions about webSocket server
Replies: 4
Views: 80

Re: Questions about webSocket server

I know it sounds a bit boring but why not use MQTT - the ESP has libraries for it, the Pi Zero W is overkill for the broker (in most home cases) and you can also use the code to talk to systems like io.adafruit without inventing an interface? Maybe I’m just to lazy and have fallen into the reuse tra...
by Andyroo
Mon May 20, 2019 12:52 pm
Forum: Troubleshooting
Topic: PI 3 apache web server "href " link to anither html page
Replies: 9
Views: 149

Re: PI 3 apache web server "href " link to anither html page

oshry70 wrote:
Mon May 20, 2019 8:55 am
many thanks it's works :D
the problem that is all the files need to be with lower case
Do not do it by hand - a quick Google will show you lots of ways to do it from the command line - if you do not understand the command try it on a backup first :lol:
by Andyroo
Mon May 20, 2019 12:40 pm
Forum: Advanced users
Topic: Lan file/HD server
Replies: 2
Views: 58

Re: Lan file/HD server

You have to mount the hard drives onto the Pi using systemd or fstab Once that has been done you have to set the share up in SAMBA by manually editing the config file Then you have to set up a user (assuming that you are using the default security in Samba) Finally you have to restart the Samba serv...
by Andyroo
Mon May 20, 2019 12:32 pm
Forum: Beginners
Topic: Push button to kill a process
Replies: 1
Views: 50

Re: Push button to kill a process

Welcome to the forum I would tackle the problem by creating a program that 1) Looped forever 2) Detected when the button is presses - you may want to say for three to five seconds to allow for human error 3) Identify the PID (process ID) of the program 4) Issue the kill command 5) Check the program ...
by Andyroo
Mon May 20, 2019 1:08 am
Forum: General discussion
Topic: Weird boot up
Replies: 5
Views: 116

Re: Weird boot up

Start by unsoldering the screen and see if the Pi boots without.

Make sure all solder and flux is removed.
by Andyroo
Mon May 20, 2019 12:03 am
Forum: General discussion
Topic: Weird boot up
Replies: 5
Views: 116

Re: Weird boot up

It’s possible the download is corrupt.

Try the standard lite image and check the SHA value and use Etcher to make the image.

See if that boots.

Also check you soldering for shorts. Please explain what you soldered...
by Andyroo
Sun May 19, 2019 10:16 pm
Forum: Off topic discussion
Topic: Ego Search / Own Posts failing
Replies: 13
Views: 368

Re: Ego Search / Own Posts failing

Mine shows 6 less. Have a been edited?
by Andyroo
Sun May 19, 2019 10:15 pm
Forum: Off topic discussion
Topic: Ego Search / Own Posts failing
Replies: 13
Views: 368

Re: Ego Search / Own Posts failing

Interesting as the search only report 4851 posts for you at https://www.raspberrypi.org/forums/sear ... 9&sr=posts not the number shown next to your user name...
by Andyroo
Sun May 19, 2019 5:40 pm
Forum: Python
Topic: Python program throws error when starting as service. Why?
Replies: 4
Views: 101

Re: Python program throws error when starting as service. Why?

... This did the trick. Before doing this I also changed the default python from 2.7.x to 3.5.x Just a bit concerned about the change - that may break other things within the OS that are expecting that Python 2 is the default. It may be better to make the Python3 the executable program with your pr...

Go to advanced search