Go to advanced search

by DougieLawson
Sat Jun 23, 2018 10:36 pm
Forum: Troubleshooting
Topic: Network booting Debian Stretch onto Raspberry Pi 3
Replies: 5
Views: 139

Re: Network booting Debian Stretch onto Raspberry Pi 3

What ancient dinosaurware version of Raspbian are you running?
by DougieLawson
Sat Jun 23, 2018 1:18 pm
Forum: Beginners
Topic: program for pi A+
Replies: 5
Views: 116

Re: program for pi A+

hi Will a program written for pi A+ work on pi 3B thanks crofter It's completely compatible. It's only when you start using features of the 2B, 3B or 3B+ processor that you get incompatible code with the older Raspberries and the Zeros. But compiling on RPi1B, B+, CM or Zero, Zero (with camera) or ...
by DougieLawson
Sat Jun 23, 2018 12:50 pm
Forum: Camera board
Topic: camera 1.3, detected, but raspistill does no picture
Replies: 4
Views: 85

Re: camera 1.3, detected, but raspistill does no picture

Do you have

Code: Select all

start_x=1
in /boot/config.txt?

SUNNY connector fitted correctly?
Is it a non-standard, Chinese clone camera?

Try adding

Code: Select all

disable_camera_led=1
to /boot/config.txt.
by DougieLawson
Sat Jun 23, 2018 11:50 am
Forum: Graphics, sound and multimedia
Topic: Rotating a photo only slightly
Replies: 10
Views: 128

Re: Rotating a photo only slightly

That was a -7.4° rotation.
I did that with GIMP on Windows.

You should be able to use PIL/Pillow in python to do the same.

raspistill only supports positive rotation between 0 and 360 (it appears to accept a decimal 352.6 value).
by DougieLawson
Sat Jun 23, 2018 11:46 am
Forum: Graphics, sound and multimedia
Topic: Rotating a photo only slightly
Replies: 10
Views: 128

Re: Rotating a photo only slightly

voltageRot.jpg
voltageRot.jpg (35.01 KiB) Viewed 122 times
GIMP on Windows is able to do it. GIMP can be run on a Raspberry.
by DougieLawson
Sat Jun 23, 2018 8:49 am
Forum: Beginners
Topic: Raspberry pi 3 b and the industry
Replies: 18
Views: 418

Re: Raspberry pi 3 b and the industry

They're used in a PSA Peugeot Citroën car factory (sorry the video has evaporated).

https://www.raspberrypi.org/magpi/peuge ... en-robots/

https://blog.adafruit.com/2016/11/25/ca ... spberrypi/
by DougieLawson
Sat Jun 23, 2018 8:41 am
Forum: Python
Topic: changing network settings via python subcommand
Replies: 4
Views: 123

Re: changing network settings via python subcommand

import subprocess ssid="MickeyMouse" passkey="MinnieMouse" p1 = subprocess.Popen(["wpa_passphrase", ssid, passkey], stdout=subprocess.PIPE) p2 = subprocess.Popen(["sudo","tee","-a","/etc/wpa_supplicant/wpa_supplicant.conf",">","/dev/null"], stdin=p1.stdout, stdout=subprocess.PIPE) p1.stdout.close()...
by DougieLawson
Sat Jun 23, 2018 8:15 am
Forum: Troubleshooting
Topic: Re-order the DPI pins
Replies: 1
Views: 85

Re: Re-order the DPI pins

You may be able to build a new version of the vga666 overlay.

This is the current source for it.
https://github.com/raspberrypi/linux/bl ... verlay.dts
by DougieLawson
Sat Jun 23, 2018 8:07 am
Forum: Networking and servers
Topic: access the webcam of the clients of my web page
Replies: 1
Views: 68

Re: access the webcam of the clients of my web page

elioputo wrote:
Fri Jun 22, 2018 7:14 pm

in local:

Code: Select all

[img]http://192.168.0.10/images/Captura.PNG[/img]
in server(it dont ask anythig)

Code: Select all

[img]http://192.168.0.10/images/Captura1.PNG[/img]
Your pictures need to be on the public internet not on your LAN based webserver.
by DougieLawson
Fri Jun 22, 2018 6:57 pm
Forum: General discussion
Topic: Ethernet Switch HAT
Replies: 3
Views: 103

Re: Ethernet Switch HAT

I wonder if there is a HAT for the Raspberry Pi 3 with two or three ethernet ports so the RP can also function as an ethernet switch. You could do it at 10Mbps 10-baseT with a couple of SPI ENC28J60s (the Raspberry will drive 5 SPI devices with no special hardware needed), but it will be astounding...
by DougieLawson
Fri Jun 22, 2018 10:55 am
Forum: Advanced users
Topic: Allow user to reboot
Replies: 8
Views: 189

Re: Allow user to reboot

Hack the GUI code, you don't need a GUI to post a dbus reboot() request.

https://www.freedesktop.org/wiki/Softwa ... md/logind/
https://www.freedesktop.org/wiki/Software/systemd/dbus/
by DougieLawson
Fri Jun 22, 2018 10:35 am
Forum: Advanced users
Topic: Allow user to reboot
Replies: 8
Views: 189

Re: Allow user to reboot

There's a program in the desktop GUI that lets you do that. You could hack that to work from a script. https://github.com/lxde/lxsession/tree/master/lxsession-logout /* Handler for "clicked" signal on Reboot button. */ static void reboot_clicked(GtkButton * button, HandlerContext * handler_context) ...
by DougieLawson
Fri Jun 22, 2018 10:23 am
Forum: Windows 10 for IoT
Topic: deployment error
Replies: 1
Views: 34

Re: deployment error

by DougieLawson
Fri Jun 22, 2018 9:13 am
Forum: General discussion
Topic: Raspbian Autostart Web browser with 2 webpages
Replies: 3
Views: 61

Re: Raspbian Autostart Web browser with 2 webpages

Build your own HTML. You can load a remote web page into an IFRAME container.

Code: Select all

<!DOCTYPE html>
<html>
<body>

<iframe src="https://www.bbc.co.uk/news">
</iframe>

<iframe src="https://www.raspberrypi.org/">
</iframe>
</body>
</html>
You'll need some CSS to control position and size.
by DougieLawson
Fri Jun 22, 2018 8:40 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Raspberry PI Zero W + Raspbian Stretch + ttyS0 + GPS Ublox Neo 6M
Replies: 7
Views: 142

Re: Raspberry PI Zero W + Raspbian Stretch + ttyS0 + GPS Ublox Neo 6M

Unplug your ublox, plug it back in. Then run a dmesg command. You should see a device appear (on my system it's /dev/ttyACM0).
by DougieLawson
Thu Jun 21, 2018 9:41 pm
Forum: General discussion
Topic: Pi Is Too Complicated
Replies: 66
Views: 1778

Re: Pi Is Too Complicated

All was fine until people started arguing "that's not what they're using in business and industry" also presents a compelling reason to keep the official operating system as close to Debian as possible. At the same time, if I understand the original idea correctly, the golden age of learning enable...
by DougieLawson
Thu Jun 21, 2018 6:13 pm
Forum: Troubleshooting
Topic: Mount HD from 'Pi-B' to 'Pi-A' - Unable to find suitable address
Replies: 2
Views: 56

Re: Mount HD from 'Pi-B' to 'Pi-A' - Unable to find suitable address

On RPi-B create /etc/exports

Code: Select all

/media/tvshows 192.168.1.0/24(rw,sync,no_subtree_check,no_root_squash)
On RPi-A add a line to /etc/fstab

Code: Select all

192.168.1.111:/media/tvshows /media/tvshows nfs defaults,noatime,x-systemd.automount 0 0
Complete docs here: https://help.ubuntu.com/community/SettingUpNFSHowTo
by DougieLawson
Thu Jun 21, 2018 6:06 pm
Forum: Troubleshooting
Topic: /etc/sudoers: syntax error near line 28
Replies: 4
Views: 105

Re: /etc/sudoers: syntax error near line 28

If you can still use sudo then run sudo visudo. That sanity checks your sudoers file before saving it.
by DougieLawson
Thu Jun 21, 2018 6:04 pm
Forum: General discussion
Topic: Formatting a pendrive which is flashed with raspbian jessie using ethcer
Replies: 3
Views: 89

Re: Formatting a pendrive which is flashed with raspbian jessie using ethcer

Install gparted on your Raspberry. Use that to reformat it with a MBR partition table and one single FAT/exFAT/vFAT partition.
by DougieLawson
Thu Jun 21, 2018 6:02 pm
Forum: Troubleshooting
Topic: Unable to fully set up phpmyadmin
Replies: 19
Views: 336

Re: Unable to fully set up phpmyadmin

sudo a2enmod php
by DougieLawson
Thu Jun 21, 2018 5:43 pm
Forum: Windows 10 for IoT
Topic: How to find the IP of Pi 3 without monitor
Replies: 14
Views: 276

Re: How to find the IP of Pi 3 without monitor

Is it wired to your router or are you assuming it's going to connect to your WiFi without any credentials?

If it's wired and booted you should be able to find it with Fing, NMAP or advanced IP scanner (or any other LAN scanner).
by DougieLawson
Thu Jun 21, 2018 12:59 pm
Forum: Troubleshooting
Topic: Socket error [101]: Network not rechable
Replies: 5
Views: 147

Re: Socket error [101]: Network not rechable

So get the output from the following commands

traceroute 37.187.106.16
traceroute test.mosquitto.org
ping -c3 37.187.106.16
ping -c3 test.mosquitto.org


mosquitto_sub -t 'F215166/test' -v -h test.mosquitto.org &
mosquitto_pub -t 'F215166/test' -h test.mosquitto.org -m "$(date +%Y%m%d)"
by DougieLawson
Thu Jun 21, 2018 8:28 am
Forum: Advanced users
Topic: How to get udev ignoring GPIO states upon bootup?
Replies: 6
Views: 164

Re: How to get udev ignoring GPIO states upon bootup?

GPIO28 and 29 are not externalised on any 40-pin Raspberry Pi. They're only available on a CM/CM3/CM3L and on the RPi1B with the P5 header https://elinux.org/RPi_Low-level_peripherals#P5_header.
by DougieLawson
Thu Jun 21, 2018 12:29 am
Forum: General discussion
Topic: Pi Is Too Complicated
Replies: 66
Views: 1778

Re: Pi Is Too Complicated

Could you give an example of something that doesn't work on Stretch, that does work on Wheezy? What no longer works are the tutorials, learning resources and human knowledge base of how to do things. Moreover, it is difficult to make a case for creating soon-to-be-useless teaching resources when th...
by DougieLawson
Thu Jun 21, 2018 12:24 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: UART communication between Raspberry Pi 3 and PIC18F4550
Replies: 13
Views: 701

Re: UART communication between Raspberry Pi 3 and PIC18F4550

Code: Select all

#!/usr/bin/python3

bytes_1 = b'some bytes from serial here'
string_1 = bytes_1.decode()

print (bytes_1)
print (string_1)

Go to advanced search