Go to advanced search

by DirkS
Mon Sep 24, 2018 3:36 pm
Forum: Beginners
Topic: Sunwait + cron, but it's not working
Replies: 12
Views: 259

Re: Sunwait + cron, but it's not working

ferdi-t wrote:
Mon Sep 24, 2018 3:07 pm
Now, how do I actually go about troubleshooting?
Don't use cron.
Start off with minimal parameters (e.g. just a start time) and build it up from there.
by DirkS
Mon Sep 24, 2018 11:26 am
Forum: AIY Projects
Topic: Sing me a song ...
Replies: 6
Views: 161

Re: Sing me a song ...

topguy wrote:
Mon Sep 24, 2018 11:20 am
"Happy Birthday to you" is still a licensed song afaik, so that might be an issue..
Not anymore: https://en.wikipedia.org/wiki/Happy_Birthday_to_You
by DirkS
Mon Sep 24, 2018 10:46 am
Forum: Python
Topic: Python 3.x as standard
Replies: 9
Views: 142

Re: Python 3.x as standard

Use a shebang pointing to python 3?
Or use an alias?

Code: Select all

alias python=python3
You can add this to ~/.bashrc or ~/.bash_aliases
by DirkS
Mon Sep 24, 2018 10:33 am
Forum: Beginners
Topic: While loops
Replies: 1
Views: 50

Re: While loops

In which language?

But in general it would look something like this:
While True
Ask for input
Do something depending on input
End While
by DirkS
Mon Sep 24, 2018 10:07 am
Forum: Python
Topic: Slight Issue with Python Script
Replies: 11
Views: 128

Re: Slight Issue with Python Script

bmattila55 wrote:
Mon Sep 24, 2018 9:50 am
Any ideas on why it prints on two lines?
Yes. The text that comes back from the date command ends with a newline, so you will see that in your output.
Use something like this to strip last character (the newline char) off the text

Code: Select all

time, _= a.communicate()
time = time[:-1]
by DirkS
Mon Sep 24, 2018 9:31 am
Forum: General discussion
Topic: Raspberry Pi 3 Model B+ Cannot SSH
Replies: 3
Views: 52

Re: Raspberry Pi 3 Model B+ Cannot SSH

jorah987 wrote:
Mon Sep 24, 2018 9:13 am
Any ideas as to what is wrong with this? How can I resolve this?
Try the IP address.
by DirkS
Mon Sep 24, 2018 9:28 am
Forum: Python
Topic: Slight Issue with Python Script
Replies: 11
Views: 128

Re: Slight Issue with Python Script

It may be easier to use the built in time or datetime modules? Of course there is probably a reason you're using a system call. To be honest I didn't even think of that. Would you be able to give me and example? The post above yours shows one of the many ways to do that: https://www.raspberrypi.org...
by DirkS
Mon Sep 24, 2018 7:45 am
Forum: Troubleshooting
Topic: "No Splash screen" problems
Replies: 1
Views: 64

Re: "No Splash screen" problems

Do you have this problem on a standard Raspbian install or are you using @JamesH experimental dual screen setup (https://www.raspberrypi.org/forums/view ... 3&t=216399)?
by DirkS
Mon Sep 24, 2018 7:40 am
Forum: Python
Topic: Slight Issue with Python Script
Replies: 11
Views: 128

Re: Slight Issue with Python Script

The time you see is actually the output of the 'date' command, not the returned value. (you can verify that by commenting out the print command) time = subprocess.call(["date", "+%H.%M"]) This runs the command and then assigns the return code of the command to 'time' The value 0 indicates that it wa...
by DirkS
Sun Sep 23, 2018 9:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PCF8523 install on Pi3 Stretch
Replies: 13
Views: 236

Re: PCF8523 install on Pi3 Stretch

Biologist wrote:
Sun Sep 23, 2018 8:32 pm
changed it and it still did not work
Please give more detail. 'doesn't work' is not very helpful. How do you know it's not working?
And can you post a link to the tutorial you're following?
by DirkS
Sun Sep 23, 2018 9:12 pm
Forum: Python
Topic: Raspberry doesnt respond during openCV instalation
Replies: 4
Views: 90

Re: Raspberry doesnt respond during openCV instalation

If you're interested you could have a look at https://www.piwheels.org/
As I said it's already configured on Raspbian Stretch
by DirkS
Sun Sep 23, 2018 5:54 pm
Forum: General discussion
Topic: 7-zip build dependencies/instructions?
Replies: 7
Views: 18985

Re: 7-zip build dependencies/instructions?

However, if you get an error when trying to extract a .7z file saying that 7za could not be found, you'll also need to compile p7zip from source (see above replies). Maybe you need to install p7zip-full: https://packages.debian.org/stretch/p7zip-full The dependent package, p7zip, provides 7zr, a li...
by DirkS
Sun Sep 23, 2018 5:45 pm
Forum: Beginners
Topic: Adding to recommended software?
Replies: 4
Views: 137

Re: Adding to recommended software?

W. H. Heydt wrote:
Sun Sep 23, 2018 4:05 pm
apt-cache search <package/program name>
Preferred program is now 'apt':

Code: Select all

apt search <package/program name>
by DirkS
Sun Sep 23, 2018 5:37 pm
Forum: Troubleshooting
Topic: NFS Server stopped working
Replies: 18
Views: 319

Re: NFS Server stopped working

Is /home/pi/secam a normal directory or is it a mount point for a local (USB) drive?
by DirkS
Sun Sep 23, 2018 3:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PCF8523 install on Pi3 Stretch
Replies: 13
Views: 236

Re: PCF8523 install on Pi3 Stretch

Code: Select all

dtoverlay=i2c-rtc,pcf853
You're missing the '2' in pcf8523
by DirkS
Sun Sep 23, 2018 11:37 am
Forum: Troubleshooting
Topic: PIR Motion sensor always outputting
Replies: 26
Views: 9131

Re: PIR Motion sensor always outputting

Or maybe https://gpiozero.readthedocs.io/en/stab ... -d-sun-pir
If you have the same sensor, of course
by DirkS
Sun Sep 23, 2018 9:45 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: extending the SPI /CS ?
Replies: 3
Views: 76

Re: extending the SPI /CS ?

You have 2 channels on SPI0.
You can add up to 3 channels by activating SPI1. Details are in /boot/overlays/README (look for spi1-Xcs, with X = 1, 2 or 3)
And you can bitbang SPI on any set of GPIO pins.
by DirkS
Sun Sep 23, 2018 9:06 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PCF8523 install on Pi3 Stretch
Replies: 13
Views: 236

Re: PCF8523 install on Pi3 Stretch

Can you post your config.txt and the output of i2cdetect?
Are you sure the module is connected correctly?
by DirkS
Sun Sep 23, 2018 9:04 am
Forum: General discussion
Topic: Updated FAQ page.
Replies: 16
Views: 511

Re: Updated FAQ page.

jamesh wrote:
Sat Sep 22, 2018 10:28 pm
Not sure what's happened to all the links, it all worked in my tests so something went pear shaped when transferred to the website.
Somehow 'faqs' worked its way into the URL.
by DirkS
Sat Sep 22, 2018 4:03 pm
Forum: General discussion
Topic: Updated FAQ page.
Replies: 16
Views: 511

Re: Updated FAQ page.

Second table in the power 'Power' section: on the last row all values are shifted to the right (an the last one disappears). There's an empty cell to the right of 'Avg'

Raw content from Github:

Code: Select all

| Stress | Max | 0.35 | 0.82 | 1.34 | 0.35 |
| | Avg || 0.32 | 0.75 | 0.85 | 0.23 |
by DirkS
Sat Sep 22, 2018 3:52 pm
Forum: Python
Topic: Raspberry doesnt respond during openCV instalation
Replies: 4
Views: 90

Re: Raspberry doesnt respond during openCV instalation

Just leave it for a couple of hours... FYI: if you're on Raspbian Stretch you can actually access pre-compiled opencv (and other) wheels with 'pip3' (IIRC they are just available for Python 3.4 and 3.5 ATM) Both opencv-python and opencv-contrib-python are available. It is possible to do this on othe...
by DirkS
Sat Sep 22, 2018 11:41 am
Forum: General discussion
Topic: Anyone know where I can get a copy of the default config.txt file?
Replies: 3
Views: 121

Re: Anyone know where I can get a copy of the default config.txt file?

I think this is it: https://github.com/RPi-Distro/pi-gen/bl ... config.txt
Pretty much empty. Everything is commented out apart from

Code: Select all

dtparam=audio=on
by DirkS
Sat Sep 22, 2018 9:39 am
Forum: Troubleshooting
Topic: NFS Server stopped working
Replies: 18
Views: 319

Re: NFS Server stopped working

Now I am completely lost. It looks to me you're confusing the client and server. /mnt/nfsserver 192.168.0.15(rw,fsid=0,insecure,no_subtree_check,sync) The first entry is what you want to share and that's probably not /mnt/nfsserver but something like /home/pi (if you want to share the home director...
by DirkS
Sat Sep 22, 2018 9:27 am
Forum: Device Tree
Topic: gpio-poweroff doesn't work on Raspbian Lite
Replies: 3
Views: 81

Re: gpio-poweroff doesn't work on Raspbian Lite

I thought may I have to unload this before reload, but strange: [email protected]:~ $ dtoverlay -l No overlays loaded but I have a set overlays loaded and working fine write at this moment! IIRC 'dtoverlay -l' will only show overlays that are manually loaded. And I'm also fairly sure that you cannot ...

Go to advanced search