pibakery-blocks icon indicating copy to clipboard operation
pibakery-blocks copied to clipboard

Suggestions

Open lurch opened this issue 7 years ago • 18 comments

Some other nice "first boot" blocks might be some of the stuff that you typically use raspi-config to do just once, e.g. setting timezone, enabling camera, setting localisation, setting memory split, etc. etc. You could look at https://github.com/RPi-Distro/rc_gui/blob/master/src/rc_gui.c to see how to 'drive' raspi-config using just command-line options.

lurch avatar Sep 07 '16 16:09 lurch

Thanks - I'll look into it.

davidferguson avatar Sep 07 '16 17:09 davidferguson

I agree this would be useful. It looks like you already have one block (Set hostname) that calls raspi-config and another (Set Boot Option) that is mostly copied from raspi-config. However, using one block per raspi-config option probably does not scale well, especially with all blocks currently in the same top-level directory.

dkirkby avatar Sep 08 '16 16:09 dkirkby

However, using one block per raspi-config option

From what little I know of pibakery, that's the way it should work (although probably not necessary to cover every raspi-config option?)

especially with all blocks currently in the same top-level directory.

I wasn't aware of that. Maybe have different subdirectories for different categories?

lurch avatar Sep 08 '16 17:09 lurch

From what little I know of pibakery, that's the way it should work (although probably not necessary to cover every raspi-config option?)

That's right, and I agree that not every option from raspi-config is needed (expand filesystem is redundant anyway, I believe the camera is auto-enabled now, etc).

The way PiBakery loads blocks at the moment requires them to all be in one directory. I can't see this being a problem in the immediate future, as I've worked with directories that contain many, many, many more directories than that (8 million at the last count).

davidferguson avatar Sep 08 '16 17:09 davidferguson

With 5-10 raspi-config options, I agree that one per block is best for the new user but if you implemented all possible options (which someone will eventually ask for), the sheer number could be overwhelming unless there is some way to organize them hierarchically, and separate out the less common options.

dkirkby avatar Sep 08 '16 17:09 dkirkby

If you're talking about how the blocks are viewed in Blockly, there is a way for me to set the order that blocks are displayed in each category in Blockly, and of course I can also add (and remove) categories as needed.

If you're talking about how they're saved in the pibakery-blocks directory, there's not much I can do about that now.

davidferguson avatar Sep 08 '16 17:09 davidferguson

there's not much I can do about that now.

As an outside observer, it's great to see you putting so much emphasis on maintaining backwards-compatibility :+1:

lurch avatar Sep 08 '16 19:09 lurch

As another outside observer, the overall idea and execution of this project is great - thanks!!

dkirkby avatar Sep 08 '16 19:09 dkirkby

I've added in blocks for Set SPI and Set I2C - any other suggestions from raspi-config?

davidferguson avatar Sep 18 '16 22:09 davidferguson

I vote for setting the locale, timezone and keyboard map although the raspi-config menus are not very user friendly for this. It would be great to provide two versions, e.g. basiclocalize and expertlocalize, where basiclocalize has a single menu parameter of common choices (UK, USA, ...) and takes care of all three settings, while expertlocalize has three text parameters and requires that you know what you are doing.

dkirkby avatar Sep 18 '16 23:09 dkirkby

FYI I just added a pull request for memsplit as I had need of this on a project I'm working on. I might take a try at the other ones mentioned above too if nobody else grabs them first.

cognitivegears avatar Sep 21 '16 03:09 cognitivegears

Hi :)

My suggestions :

  • Internationalization
  • GPIO Server (advanced options)
  • Audio (force output to jack, hdmi or auto)

maitredede avatar Oct 11 '16 07:10 maitredede

First of all: Thank you and congratulations for PiBakery!! One question: I enable VPN server, but I don't know wich username and password it has configured. I configured RealVPN viewer on Mac and when I try to connect, it refuse my connection without more information.

rmayol avatar Oct 25 '16 15:10 rmayol

Did you mean "VNC" instead of "VPN"? If you did, have a look at https://www.raspberrypi.org/documentation/remote-access/vnc/README.md

lurch avatar Oct 25 '16 15:10 lurch

i have an audio block (submitted for a pull request along with a few others), force to jack or hdmi but not the auto setting: https://github.com/eddwatts/pibakery-blocks/tree/master/setaudio

eddwatts avatar Jan 06 '17 09:01 eddwatts

In addition to setting the locale, a good idea would be an option to set the WiFi regulatory domain.

nsayer avatar Mar 21 '17 15:03 nsayer

WiFi regulatory domain: have done this myself a few months ago - just not been added to the main section my updated block: https://github.com/eddwatts/pibakery-blocks/tree/master/wifisetup

eddwatts avatar Mar 21 '17 15:03 eddwatts

Hmmm - did a fresh PiBakery write today - sadly looks like Camera is not enabled by default:

picamera.exc.PiCameraError: Camera is not enabled. Try running 'sudo raspi-config' and ensure that the camera has been enabled.

dannystaple avatar May 06 '17 10:05 dannystaple