pibakery icon indicating copy to clipboard operation
pibakery copied to clipboard

way to display IP address when GUI is booted?

Open Godley opened this issue 7 years ago • 6 comments

I have my device working with the official touch screen. If I run "ipconfig" on every boot I'm guessing it's going to just run that before the GUI boots. Is there a way or could there be a way to have "On GUI loaded" or something scripts?

Godley avatar Sep 25 '16 18:09 Godley

There's not a way to have a "On GUI loaded" block yet - although it's a good idea and one I'll consider for future versions of PiBakery.

What I have seen other Pi users do (and thought it was a brilliant idea) is have the IP address edited into the desktop picture, so when you boot into the GUI it will show you what the IP address is straight off the desktop. In the next block update, I'll try and add in a block that adds support for this.

davidferguson avatar Sep 26 '16 00:09 davidferguson

I would be interested in helping you clear up some of these btw, but on the RPi side I have no idea where you'd even start - might be an idea to start writing some developer docs on more in depth stuff like this?

Godley avatar Sep 28 '16 14:09 Godley

A simple Python script could do this!

AlexSwensen avatar Oct 10 '16 00:10 AlexSwensen

An even simpler bash script would also do this, but my point is the python script would (I predict) run before you boot to the GUI. So you'd have to be very quick to spot it. Unless there's some way already in raspbian to have a python/bash script run after the GUI is loaded.

Godley avatar Oct 12 '16 23:10 Godley

You can see the IP address if you hover over the the WiFi icon on the RPi task bar. Does this help? I don't have the touch screen.

Barry4679 avatar Oct 13 '16 01:10 Barry4679

that might do the trick if touch can make the cursor hover rather than open the wifi tab. I'll try that out, cheers.

Godley avatar Oct 13 '16 09:10 Godley