Go to advanced search

by DougieLawson
Wed Apr 25, 2018 5:08 am
Forum: Other projects
Topic: MFRC522 Issues
Replies: 1
Views: 42

Re: MFRC522 Issues

Check your wiring.

Try this: https://github.com/mxgxw/MFRC522-python
With https://github.com/lthiery/SPI-Py

That works on all versions of Raspberry running current Raspbian Stretch.
by DougieLawson
Tue Apr 24, 2018 5:14 pm
Forum: Python
Topic: Cant Import cv2 (Pi 3 Mobel B) Python 3.5
Replies: 7
Views: 109

Re: Cant Import cv2 (Pi 3 Mobel B) Python 3.5

Sorry, it's another of the common python2 vs python3 complete messes.

You'll have to write your code using python2 or you'll have to build OpenCV from source for python3.
by DougieLawson
Tue Apr 24, 2018 5:04 pm
Forum: Python
Topic: Noob trying to run dB_App.py
Replies: 8
Views: 133

Re: Noob trying to run dB_App.py

You could write a simple MQTT program that talks to your "black box" and subscribes or publishes messages from it.

MQTT in a RYO socket program isn't beyond the bounds of sensibility.
by DougieLawson
Tue Apr 24, 2018 4:49 pm
Forum: Python
Topic: Cant Import cv2 (Pi 3 Mobel B) Python 3.5
Replies: 7
Views: 109

Re: Cant Import cv2 (Pi 3 Mobel B) Python 3.5

Try sudo apt install python3-opencv
by DougieLawson
Tue Apr 24, 2018 4:00 pm
Forum: Python
Topic: Noob trying to run dB_App.py
Replies: 8
Views: 133

Re: Noob trying to run dB_App.py

If you want to start sending IoT messages from RPi sensors, Arduinos and ESPs take a look at MQTT. sudo apt install mosquitto mosquitto-clients On the Ardunios/ESPs take a look at https://github.com/knolleary/pubsubclient and https://pubsubclient.knolleary.net On your Raspberry take a look at https:...
by DougieLawson
Tue Apr 24, 2018 2:02 pm
Forum: General discussion
Topic: Enable Predictable names
Replies: 19
Views: 303

Re: Enable Predictable names

Run this
sudo apt update
sudo apt install --reinstall raspi-config
by DougieLawson
Tue Apr 24, 2018 1:47 pm
Forum: General discussion
Topic: Enable Predictable names
Replies: 19
Views: 303

Re: Enable Predictable names

Are you sure? It should be the 20180406+1 version. root@hitchhiker:~ # dpkg -l | grep raspi-config ii raspi-config 20180406+1 all Raspberry Pi configuration tool ii rc-gui 1.18 armhf raspi-config GUI root@hitchhiker:~ #
by DougieLawson
Tue Apr 24, 2018 1:43 pm
Forum: Python
Topic: Noob trying to run dB_App.py
Replies: 8
Views: 133

Re: Noob trying to run dB_App.py

The software installation needs sudo, but running the simple python application should work without it (depending on the ownership and permission on the USB device you're trying to access).

You may need to write a udev rule to change that ownership and permission.
by DougieLawson
Tue Apr 24, 2018 11:49 am
Forum: Beginners
Topic: How can the raspberry be shutdown with a python script and no sudo?
Replies: 6
Views: 168

Re: How can the raspberry be shutdown with a python script and no sudo?

That program uses sudo. It's very difficult to shutdown a Linux system without using sudo (or a setuid program owned by root) as the trigger for the systemd init program to run an orderly shutdown needs elevated privileges. You can add a line to /etc/sudoers pi raspberrypi =NOPASSWD: /usr/bin/system...
by DougieLawson
Tue Apr 24, 2018 11:33 am
Forum: Advanced users
Topic: Project ROS/Web/MySQL on Raspberry
Replies: 1
Views: 39

Re: Project ROS/Web/MySQL on Raspberry

Usually works fine unless you're going to load the server with hundreds of MySQL clients.

sudo apt install apache2 phpmyadmin mariadb-server-10.1
will get you a stock LAMP stack.
by DougieLawson
Tue Apr 24, 2018 11:28 am
Forum: General discussion
Topic: Conditional config.txt
Replies: 17
Views: 382

Re: Conditional config.txt

jamesh wrote:
Tue Apr 24, 2018 10:38 am

I've already, I think, done most of the work of incorporating the ELinux stuff to our docs. If there is anything missing, let me know via github.
I think you're right (and it's a good job, that's been well done), but that won't stop me looking for missing pieces.
by DougieLawson
Tue Apr 24, 2018 11:19 am
Forum: General discussion
Topic: Adobe Photoshop on Pi 3
Replies: 5
Views: 258

Re: Adobe Photoshop on Pi 3

That's aside from the fact that you'd be violating the terms and conditions of your purchased PhotoShop licence.
by DougieLawson
Tue Apr 24, 2018 11:17 am
Forum: Advanced users
Topic: How to expand Virtual Memory on RPi B3 +?
Replies: 20
Views: 390

Re: How to expand Virtual Memory on RPi B3 +?

After you edit the file you need to run the sudo dphys-swapfile program to implement your changes.
by DougieLawson
Tue Apr 24, 2018 10:10 am
Forum: General discussion
Topic: Conditional config.txt
Replies: 17
Views: 382

Re: Conditional config.txt

I've added a github issue: https://github.com/raspberrypi/documentation/issues/892 JamesH will love you for doing that ;) It's an addendum to one I opened. I'd like every possible external option (not the hidden secret squirrel parms) to be documented in glorious detail so we can get away from poin...
by DougieLawson
Tue Apr 24, 2018 9:32 am
Forum: General discussion
Topic: Conditional config.txt
Replies: 17
Views: 382

Re: Conditional config.txt

[pi0w] and [pi3+] both exist - yet more documentation updates required. Looking at the code it appears you can also filter based on the state of a gpio using [gpio<num>=[0|1]], eg [gpio4=1]. One to confirm with dom and also document. (That could be really useful for switching between boot configs o...
by DougieLawson
Tue Apr 24, 2018 8:22 am
Forum: General discussion
Topic: Enable Predictable names
Replies: 19
Views: 303

Re: Enable Predictable names

The predictable names stuff is in Jessie but it was disabled. I'm not sure if the latest Stretch version of raspi-config (which would need manual installation on Jessie) would work to activate it on there.

The simple answer is nobody should be using Jessie now, she's been retired for six months.
by DougieLawson
Tue Apr 24, 2018 8:03 am
Forum: General discussion
Topic: Conditional config.txt
Replies: 17
Views: 382

Re: Conditional config.txt

RaTTuS wrote:
Tue Apr 24, 2018 7:52 am
or for temp stuff use
the serial number stuff .... i.e.
[0x12345678]
I use that for all fifteen Raspberries. It means I can boot any Raspberry from any SDCard with my unified config.txt.
by DougieLawson
Tue Apr 24, 2018 8:02 am
Forum: General discussion
Topic: Enable Predictable names
Replies: 19
Views: 303

Re: Enable Predictable names

You have an old operating system. Upgrade to Stretch.
by DougieLawson
Tue Apr 24, 2018 7:57 am
Forum: General discussion
Topic: Industrial Reliability for 24/7 Use
Replies: 31
Views: 915

Re: Industrial Reliability for 24/7 Use

Certainly the SD card is a worry. But my approach to that is to make them read only such that no inadvertent file system corruption can happen and there is no worrying about wearing them out. Any data that needs saving can be on an attached USB stick, or better yet kept off the Pi and accessed over...
by DougieLawson
Tue Apr 24, 2018 7:52 am
Forum: General discussion
Topic: Enable Predictable names
Replies: 19
Views: 303

Re: Enable Predictable names

sudo raspi-config choose "2 Network Options" from the main menu then "N3 Network interface names" from the sub-menu and that will enable predictable names on the next reboot. I've been using predictable names since it was introduced. I have fifteen Raspberries that use a copy of the same dhcpcd.conf...
by DougieLawson
Tue Apr 24, 2018 7:46 am
Forum: Troubleshooting
Topic: Official touchscreen is upside down.
Replies: 6
Views: 134

Re: Official touchscreen is upside down.

Are you using NOOBS?
If you are then use the NOOBS recovery system (beat the [SHIFT] key to death during boot to activate it) to find the correct /boot/config.txt and edit it.
by DougieLawson
Tue Apr 24, 2018 7:39 am
Forum: Beginners
Topic: make pi web radio
Replies: 2
Views: 93

Re: make pi web radio

by DougieLawson
Tue Apr 24, 2018 7:36 am
Forum: Troubleshooting
Topic: Official touchscreen is upside down.
Replies: 6
Views: 134

Re: Official touchscreen is upside down.

Add

Code: Select all

lcd_rotate=2
to /boot/config.txt and reboot.

Go to advanced search