Go to advanced search

by DAI-X
Sun Jan 17, 2021 1:25 am
Forum: General discussion
Topic: Plain metal backplate
Replies: 7
Views: 411

Re: Plain metal backplate

Have you thought of buying a cheap plastic case for the Pi, and using THAT as a means of mounting your Pi to the back of your PC. the plastic case will have all the USB and ethernet holes, and you could easily drill mounting holes in the plastic body to bolt it inside the PC case. Added benefit the ...
by DAI-X
Fri Jan 15, 2021 7:57 pm
Forum: General discussion
Topic: Plain metal backplate
Replies: 7
Views: 411

Re: Plain metal backplate

I think the OP wants to mount the Pi end-on rather than flat to a metal plate so the USB and ethernet are accessible through a metal surround on the back of a PC case. Like a PC soundcard for example.
by DAI-X
Thu Nov 19, 2020 8:14 pm
Forum: Troubleshooting
Topic: USB serial weirdness on PI 4 (FIXED - sort of)
Replies: 3
Views: 186

Re: USB serial weirdness on PI 4 (FIXED - sort of)

Yep it has me baffled Hippy, but since a £2 USB->TTL cable fixes it, I'll go with a solution that works rather than spend hours tracking it down. I just wondered if anyone had seen anything similar or could shed some light on it.

cheers!
by DAI-X
Wed Nov 18, 2020 7:41 pm
Forum: Troubleshooting
Topic: USB serial weirdness on PI 4 (FIXED - sort of)
Replies: 3
Views: 186

Re: USB serial weirdness on PI 4

After much mucking about I resorted to connecting to the Arduino via a USB to TTL serial console cable rather than USB

BAM - works straight away from Python and the terminal.

It still doesn't explain why Arduino IDE, Putty and Screen can send data ok over USB, but Python and terminal can't....
by DAI-X
Tue Nov 17, 2020 9:15 pm
Forum: Troubleshooting
Topic: USB serial weirdness on PI 4 (FIXED - sort of)
Replies: 3
Views: 186

USB serial weirdness on PI 4 (FIXED - sort of)

Ok, I'm sure I'm missing something fundamental here. I have an Arduino driving a MAX7219 dot-matrix screen. I have a small program on the Arduino that takes any data sent via the USB port at 9600 baud and displays it to the dot-matrix screen. A scrolling banner effectively. I have it connected to my...
by DAI-X
Sat Nov 14, 2020 12:19 pm
Forum: Troubleshooting
Topic: "Audio renderer error" in Youtube (Pi4, Chromium) FIXED
Replies: 8
Views: 521

Re: "Audio renderer error" in Youtube (Pi4, Chromium) FIXED

I closed down Chromium, re-opened and it seems to work now

:D
by DAI-X
Sat Nov 14, 2020 2:42 am
Forum: Troubleshooting
Topic: "Audio renderer error" in Youtube (Pi4, Chromium) FIXED
Replies: 8
Views: 521

Re: "Audio renderer error" in Youtube (Pi4, Chromium)

Buster is fully updated so I presume its the latest version?

I'll try shutting down chromium as it was open during the update...
by DAI-X
Sat Nov 14, 2020 2:13 am
Forum: Troubleshooting
Topic: "Audio renderer error" in Youtube (Pi4, Chromium) FIXED
Replies: 8
Views: 521

Re: "Audio renderer error" in Youtube (Pi4, Chromium)

I have no idea if I am using kms or not, its just your normal buster full version of PiOS.

It was working fine the other day!
by DAI-X
Sat Nov 14, 2020 1:47 am
Forum: Troubleshooting
Topic: "Audio renderer error" in Youtube (Pi4, Chromium) FIXED
Replies: 8
Views: 521

"Audio renderer error" in Youtube (Pi4, Chromium) FIXED

Well this is strange, I just tried to watch a few Youtube videos through Chromium. The videos try to play, flicker a bit and then are replaced by a message saying "Audio renderer error. Please restart your computer"

What's going on here then?

Pi 4, 4GB
by DAI-X
Sun Nov 08, 2020 2:21 pm
Forum: Beginners
Topic: Power Supply Options For Outdoor Pi Use
Replies: 2
Views: 208

Re: Power Supply Options For Outdoor Pi Use

If you can't run mains power to the pi, could you run a pair of smaller cables carrying e.g. 24V dc and then use a buck converter to drop it to 5V at the Pi end? I use an old 12V DC wall-wart inside the house to power a pi in the shed at the bottom of my garden this way, via cheap 2 way cable (actua...
by DAI-X
Sat Oct 17, 2020 5:53 pm
Forum: General discussion
Topic: BaseHTTPserver image problem
Replies: 14
Views: 346

Re: BaseHTTPserver image problem

Right so I need to trap anything referring to a file as it is dynamically created.

I may end up using CGI scripts with Apache..

Cheers
by DAI-X
Sat Oct 17, 2020 3:07 pm
Forum: General discussion
Topic: BaseHTTPserver image problem
Replies: 14
Views: 346

Re: BaseHTTPserver image problem

Sorry but I don't understand your answer, I just do simple html. What I don't understand is why I can write a trivial .html script (text file) in 'nano' for instance which can happily mix text and images correctly, yet the python simpleHTTPserver cannot apparently do the same. Surely It is just gene...
by DAI-X
Sat Oct 17, 2020 2:45 pm
Forum: General discussion
Topic: BaseHTTPserver image problem
Replies: 14
Views: 346

Re: BaseHTTPserver image problem

but surely that's the point, there IS no index.html

the simpleHTTPserver python code generates it on the fly and serves it, from a python script running in /home/pi

or am I missing something here?
by DAI-X
Sat Oct 17, 2020 2:15 pm
Forum: General discussion
Topic: BaseHTTPserver image problem
Replies: 14
Views: 346

Re: BaseHTTPserver image problem

<img src="cam1.jpg"> That doesn't work either I'm afraid I'm using Raspbian/PiOS Buster. As I said, the html bit works fine with buttons doing their thing but I can't get it to display a simple .jpg on the same page. If my python httpserver is running from home/pi , why on earth can't it ...
by DAI-X
Sat Oct 17, 2020 11:13 am
Forum: General discussion
Topic: BaseHTTPserver image problem
Replies: 14
Views: 346

Re: BaseHTTPserver image problem

Ok I have tried just using this

Code: Select all

<img src="/home/pi/cam1.jpg" alt="HTML 5 icon">
which does not work either.
by DAI-X
Fri Oct 16, 2020 7:53 pm
Forum: General discussion
Topic: BaseHTTPserver image problem
Replies: 14
Views: 346

Re: BaseHTTPserver image problem

at the moment I've tried to set it as an absolute path like this. (the .jpg is in /home/pi) <img src="http://localhost/home/pi/cam1.jpg" alt="HTML 5 icon"> This just shows the alt option. Also looking on Google, some suggest changing "text/html" in the content-type, doe...
by DAI-X
Fri Oct 16, 2020 7:10 pm
Forum: General discussion
Topic: BaseHTTPserver image problem
Replies: 14
Views: 346

BaseHTTPserver image problem

I'm trying to run a simple HTTP server (baseHTTPserver) in python from location /home/pi. This works fine with just plain html (text and buttons) but when I try to include an image on the same page I cannot seem to find an img src path that will load the image, it just shows the alt text. Do I have ...
by DAI-X
Wed Aug 19, 2020 1:56 pm
Forum: General discussion
Topic: Advice on using an USB webcam on an RPi3?
Replies: 8
Views: 450

Re: Advice on using an USB webcam on an RPi3?

Ok here goes. First you need to install the web.py application from https://webpy.org/ (I still use python 2 and the code below is in python 2 so I think for python 2 it is...... pip install web.py you also then need to ensure you have fswebcam installed which will run your USB camera sudo apt insta...
by DAI-X
Tue Aug 18, 2020 8:43 pm
Forum: General discussion
Topic: Advice on using an USB webcam on an RPi3?
Replies: 8
Views: 450

Re: Advice on using an USB webcam on an RPi3?

I have built something similar to what I think you are after Put simply I used "web.py" This is a simple python-based http server which runs a python script when you connect to an IP address on a Pi equipped with a USB webcam (ebay special!). I can do this anywhere via my phone browser. Th...
by DAI-X
Sun Aug 09, 2020 3:39 pm
Forum: General discussion
Topic: Backup SD card to .IMG file
Replies: 25
Views: 2102

Re: Backup SD card to .IMG file

I tried to use this to create an .IMG on a drive attached to another networked Pi but when I enter sudo mount -t cifs //192.168.0.22/media/[450GB]/ /tmp/backup it then asks for the ROOT password to the remote machine "Password for root@192.168.0.22/media/[450GB]/: " What am I doing wrong h...
by DAI-X
Sat Mar 14, 2020 11:07 am
Forum: General discussion
Topic: Why USB-C ?
Replies: 33
Views: 2502

Re: Why USB-C ?

The TVS diode remains in circuit, but there is no polyfuse on the Pi4B. So if you must (IMO, foolishly) use a barrel jack, you should wire an external polyfuse between the socket and the Pi. Then you will have some protection for when you plug in a PSU with the wrong voltage or polarity. Ah, I susp...
by DAI-X
Sat Mar 14, 2020 10:45 am
Forum: General discussion
Topic: Why USB-C ?
Replies: 33
Views: 2502

Re: Why USB-C ?

If you really really really want to power your Pi using a barrel jack, wire one in to the +5v and GND on your GPIO. You will lose overvoltage protection though I think.
by DAI-X
Fri Mar 13, 2020 2:24 am
Forum: Advanced users
Topic: Pi wifi re/connection
Replies: 6
Views: 581

Re: Pi wifi re/connection

If its any help, I have had similar wifi issues in the past where reconnection fails. I tried running a script to ping my router at regular intervals but the pi's got a ping back ok but SSH failed, so gaining control back was not possible. My solution now is to have a wired Pi running a simple webse...
by DAI-X
Fri Jan 31, 2020 1:59 pm
Forum: Advanced users
Topic: Running a Python script from a HTML page
Replies: 6
Views: 2177

Re: Running a Python script from a HTML page

Hippy I have been looking for a python-only solution for AGES. Thanks for posting this!
by DAI-X
Fri Jan 31, 2020 10:34 am
Forum: General discussion
Topic: whish rasperry pi to buy?
Replies: 12
Views: 1558

Re: whish rasperry pi to buy?

Spam first post?

Go to advanced search