Go to advanced search

by MacsandaPi
Sun Oct 06, 2019 5:44 pm
Forum: Python
Topic: Help with code for ZeroSeg
Replies: 2
Views: 180

Re: Help with code for ZeroSeg

Yes, 10 seconds is the duration for the time display.

I added main() in the button section in an attempt to get the time to display again after the text had completed. Without main() at that location, the text just stays on the screen.
by MacsandaPi
Sun Oct 06, 2019 4:41 pm
Forum: Python
Topic: Help with code for ZeroSeg
Replies: 2
Views: 180

Help with code for ZeroSeg

My RPi 1B+ has a ZeroSeg 7-segment display ( https://thepihut.com/products/zeroseg ). My objective is to have the display begin with current time and date, show text when a button is pushed, and then return to the time and date in a "while True" loop, i.e., continuously showing time/date until a but...
by MacsandaPi
Thu Jul 18, 2019 9:02 pm
Forum: General discussion
Topic: Which SSD to buy for raspberry pi?
Replies: 63
Views: 7231

Re: Which SSD to buy for raspberry pi?

I'm using Silicon Power 128GB (model A55) SSDs with my old (first generation) B+ and a Pi 2B (version 1.1). Both are set up to boot to the SSDs from their microSD cards which contain only the bootcode.bin file.
by MacsandaPi
Fri May 31, 2019 4:42 pm
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 757

Re: How to access an active program on headless Pi?

To follow up on my use of the Screen tool, it's working perfectly for my simple[minded] purpose. I'm indeed grateful to HawaiianPi for bringing it to my attention. I'd never heard of it before. The only problem I foresee is remembering the few commands and their sequence to access the active screen ...
by MacsandaPi
Thu May 30, 2019 10:30 pm
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 757

Re: How to access an active program on headless Pi?

I've installed screen and am still trying to learn how to use it, but these early explorations make me think this is what I'm looking for to enable me to work directly with the python script while it's running. Many thanks, HawaiianPi for that suggestion. My thanks, too, to DougieLawson and Andyroo ...
by MacsandaPi
Thu May 30, 2019 6:34 pm
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 757

Re: How to access an active program on headless Pi?

HawaiianPi wrote:
Thu May 30, 2019 5:58 pm
I use the screen command to interact with my headless Minecraft multiplayer servers.
"screen" must not be installed by default (I have the latest version of Raspbian); I get "No manual entry for screen" when I enter

Code: Select all

man screen
by MacsandaPi
Thu May 30, 2019 6:00 pm
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 757

Re: How to access an active program on headless Pi?

I would have thought it was unlikely a click program would have any files open though. Do you have a link to the source? Handling kill commands (from Ctrl-c or the command line / system) can be added to most programs easily though. I don't know what a "click program" is. Ctrl-C works fine with my s...
by MacsandaPi
Thu May 30, 2019 4:43 pm
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 757

Re: How to access an active program on headless Pi?

I'd considered using

Code: Select all

top
to identify the PID process and then kill that, but was reluctant to try, not knowing if that would produce a "clean" quit and exit.

Would your suggested termination likely result in possible file corruption?
by MacsandaPi
Thu May 30, 2019 4:20 pm
Forum: General discussion
Topic: How to access an active program on headless Pi? [SOLVED]
Replies: 14
Views: 757

How to access an active program on headless Pi? [SOLVED]

My Pi is used as a clock. It's set up headlessly with a 7-segment display add-on and runs a Python script to show the time. When I SSH into the Pi, how do I access that active program to stop it and then exit the program cleanly (like using Ctrl-C)? Do I simply launch the Python script again from th...
by MacsandaPi
Wed Dec 12, 2018 11:50 pm
Forum: Beginners
Topic: GPIO Zero Cleanup Command?
Replies: 4
Views: 938

Re: GPIO Zero Cleanup Command?

Thanks, rhubarbdog, for your suggestion. I've used that "while True/except KeyboardInterrupt:" combination with the RPI.GPIO library before, but haven't been able to get it to work yet with the gpiozero library. I'll keep trying.
by MacsandaPi
Tue Dec 11, 2018 5:01 pm
Forum: Beginners
Topic: GPIO Zero Cleanup Command?
Replies: 4
Views: 938

Re: GPIO Zero Cleanup Command?

I think you link is a bit odd Hi Andyroo--Thanks for pointing out that malformed link; I've corrected it in my original post. Have you seen the documents for the commands at all https://gpiozero.readthedocs.io/en/stable/api_boards.html I did look at that site before I posted my question. The inform...
by MacsandaPi
Mon Dec 10, 2018 4:59 pm
Forum: Beginners
Topic: GPIO Zero Cleanup Command?
Replies: 4
Views: 938

GPIO Zero Cleanup Command?

I'm using the 3D Xmas tree with LEDs from the Pi Hut https://thepihut.com/products/3d-xmas-tree-for-raspberry-pi with the following code: from gpiozero import LEDBoard from gpiozero.tools import random_values from signal import pause tree = LEDBoard(*range(2,28),pwm=True) for led in tree: led.source...
by MacsandaPi
Wed Oct 17, 2018 3:53 pm
Forum: Beginners
Topic: What Command is Used to Display RPi Firmware Number?
Replies: 3
Views: 534

Re: What Command is Used to Display RPi Firmware Number?

Thank you for the helpful information, epoch1970. The installed OS seems to be running without problem. I was just curious about the apparent discrepancy between the firmware number in the release notes and what is in my Pi.
by MacsandaPi
Wed Oct 17, 2018 1:32 am
Forum: Beginners
Topic: What Command is Used to Display RPi Firmware Number?
Replies: 3
Views: 534

What Command is Used to Display RPi Firmware Number?

The 2018 release notes for "Raspbian Stretch With Desktop" list Raspberry Pi firmware numbers. What command is used to display the installed firmware? I tried

Code: Select all

vcgencmd version
but the number shown from that command doesn't match any of the ones in the release notes.
by MacsandaPi
Fri Apr 13, 2018 11:12 pm
Forum: General discussion
Topic: Using your Pi with an SSD (Solid State Drive)
Replies: 50
Views: 71914

Re: Using your Pi with an SSD (Solid State Drive)

HawaiianPi--This is to report success in getting my Pi 2B (v.1.1) to boot into the external SSD using the bootcode.bin method. I used the same SSD and SATA connector that you identified in your post above. Still don't know why the bootcode.bin approach didn't work with the HDD that I'd been using wi...
by MacsandaPi
Tue Apr 10, 2018 10:30 pm
Forum: General discussion
Topic: Using your Pi with an SSD (Solid State Drive)
Replies: 50
Views: 71914

Re: Using your Pi with an SSD (Solid State Drive)

OK! Thanks for the good information. I thought maybe the SSD required an external power supply for use with the earliest version of Pi2B.

I think I'll order the USB adapter and Silicon Power SSD you've used successfully and give it a go.
by MacsandaPi
Tue Apr 10, 2018 4:11 pm
Forum: General discussion
Topic: Using your Pi with an SSD (Solid State Drive)
Replies: 50
Views: 71914

Re: Using your Pi with an SSD (Solid State Drive)

Given my recent unsuccessful attempts ( https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=208796 ) to get my original version Pi2B to run Stretch from an external HD, I'm curious to know if you tried your Pi2B version 1 with the Silicon Power SSD and SATA-USB adapter. Were you able to use that...
by MacsandaPi
Mon Mar 26, 2018 3:02 am
Forum: Troubleshooting
Topic: Running Raspbian from external hard drive--"no space left"
Replies: 38
Views: 3778

Re: Running Raspbian from external hard drive--"no space left"

The latest attempt resulted in the same outcome: it boots to the "Welcome to the Raspbian Desktop" screen, then text scrolls down the left side and stops in a Terminal/console mode. I think I'm ready to throw in the towel, at least for now. However, your comment about the possibility of an incompati...
by MacsandaPi
Sun Mar 25, 2018 11:13 pm
Forum: Troubleshooting
Topic: Running Raspbian from external hard drive--"no space left"
Replies: 38
Views: 3778

Re: Running Raspbian from external hard drive--"no space left"

Answers to your questions in bold/red text in the quote. If you don't think you need the additional delay you can delete the timeout file, and either delete or overwrite the bootcode.bin file when you copy everything over from the HDD boot partition (1st FAT32 partition on the HDD). Followed the ab...
by MacsandaPi
Sun Mar 25, 2018 9:03 pm
Forum: Troubleshooting
Topic: Running Raspbian from external hard drive--"no space left"
Replies: 38
Views: 3778

Re: Running Raspbian from external hard drive--"no space left"

It stops because the PARTUUID changes when the partition is resized. So pull the power and copy cmdline.txt from the HDD to the SD again, and now the system should boot the HDD with a properly resized rootfs partition. If that works, then edit the /etc/fstab file so that /dev/mmcblk0p1 is mounted a...
by MacsandaPi
Sun Mar 25, 2018 7:31 pm
Forum: Troubleshooting
Topic: Running Raspbian from external hard drive--"no space left"
Replies: 38
Views: 3778

Re: Running Raspbian from external hard drive--"no space left"

I attempted to use the FAT32 SD card and the bootcode.bin on it, but the boot process stalled at the initial splash screen. The screen with the 4 Raspberries on it, or the Welcome to the Raspberry Pi Desktop screen? The screen showed the 4 Raspberries and the two message lines and stopped there; th...
by MacsandaPi
Sun Mar 25, 2018 1:44 am
Forum: Troubleshooting
Topic: Running Raspbian from external hard drive--"no space left"
Replies: 38
Views: 3778

Re: Running Raspbian from external hard drive--"no space left"

Okay let me find my Pi2B v1.1 to see if there is something funky going on with that model (it really should not be this hard)... Great! Thanks again for your willingness to help. Not to belabor this, but, as I mentioned previously, I had this Pi2B with Jessie running on the same HDD with very littl...
by MacsandaPi
Sat Mar 24, 2018 11:05 pm
Forum: Troubleshooting
Topic: Running Raspbian from external hard drive--"no space left"
Replies: 38
Views: 3778

Re: Running Raspbian from external hard drive--"no space left"

Plug the drive back into your Linux Mint machine and mount it, then try ls -l /dev/disk/by-partuuid again. Check the PARTUUID against the one in your cmdline.txt and fstab files (cmdline.txt on the SD card, and /etc/fstab on the HDD). I plugged the HDD back into Linux Mint, but the only volume that...
by MacsandaPi
Sat Mar 24, 2018 9:16 pm
Forum: Troubleshooting
Topic: Running Raspbian from external hard drive--"no space left"
Replies: 38
Views: 3778

Re: Running Raspbian from external hard drive--"no space left"

Because it is a bit tricky to resize a partition that is in use, (I'm not that familiar with gparted, it may be able to do it in two steps), it may be easier to boot off the SD card with the USB disk unplugged, then connect the USB disk and run gparted on /dev/sda2 from there. Yup, that would be th...
by MacsandaPi
Sat Mar 24, 2018 8:17 pm
Forum: Troubleshooting
Topic: Running Raspbian from external hard drive--"no space left"
Replies: 38
Views: 3778

Re: Running Raspbian from external hard drive--"no space left"

Obviously, I don't know how to add attachments. The Options tab under "Post a Reply" says "You may also attach files by dragging and dropping them in the message box." That's what I did.

Go to advanced search