brockayers
Posts: 16
Joined: Mon Jan 30, 2017 7:49 pm
Location: West Bend, Wi, USA

How to boot browser page from startup

Tue Aug 07, 2018 10:00 pm

Im pretty green when it comes to the pi. I have a homebrewing fermentation chamber setup with my pi being the interface and Wi-Fi thingy. I want my pi to boot and load the browser interface page as soon as i turn on the pi. How can i achieve this?

klricks
Posts: 6155
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: How to boot browser page from startup

Tue Aug 07, 2018 11:51 pm

To start the web browser using autostart do this:

Open the autostart file using the Nano editor:

Code: Select all

nano /home/pi/.config/lxsession/LXDE-pi/autostart
Add this to the end of autostart:

Code: Select all

@chromium-browser www.raspberrypi.org
Save and exit by typing CTRL x then answer y

logout and back in to desktop or reboot

There are several options you can do such as fullscreen or kiosk modes etc.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Stretch w/ Desktop OS.

brockayers
Posts: 16
Joined: Mon Jan 30, 2017 7:49 pm
Location: West Bend, Wi, USA

Re: How to boot browser page from startup

Tue Aug 07, 2018 11:54 pm

How do I have it load a certain ip address location for a different device? Also, how do I get it to go full screen?
Please bare with me as im new at this

klricks
Posts: 6155
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: How to boot browser page from startup

Wed Aug 08, 2018 2:37 am

brockayers wrote:
Tue Aug 07, 2018 11:54 pm
How do I have it load a certain ip address location for a different device? Also, how do I get it to go full screen?
Please bare with me as im new at this
For full screen mode:

Code: Select all

chromium-brower --start-fullscreen raspberrypi.org
Use F11 to toggle between full screen and normal

For Kiosk mode:

Code: Select all

chromium-brower --kiosk raspberrypi.org
Like full screen but user can't use F11 so can't change to different website.
Can only use alt-F4 or ctrl w to quit browser

Substitute any URL you want to use.
Specifying more than 1 URL will open each in a TAB. Use Shift-CTRL-Tab to switch tabs.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Stretch w/ Desktop OS.

brockayers
Posts: 16
Joined: Mon Jan 30, 2017 7:49 pm
Location: West Bend, Wi, USA

Re: How to boot browser page from startup

Wed Aug 08, 2018 9:33 am

Ive tried setting it as an ip address, but it doesnt work...

DirkS
Posts: 9733
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How to boot browser page from startup

Wed Aug 08, 2018 9:36 am

brockayers wrote:
Wed Aug 08, 2018 9:33 am
Ive tried setting it as an ip address, but it doesnt work...
How exactly? Please show the command you used.
And exactly does 'it doesn't work' mean? What happens? Error messages?

brockayers
Posts: 16
Joined: Mon Jan 30, 2017 7:49 pm
Location: West Bend, Wi, USA

Re: How to boot browser page from startup

Wed Aug 08, 2018 9:44 am

nano /home/pi/.config/lxsession/LXDE-pi/autostart

@chromium-browser xxx.xxx.x.xxx #ip address#


When I reboot, it doesnt load anything.

DirkS
Posts: 9733
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How to boot browser page from startup

Wed Aug 08, 2018 11:06 am

brockayers wrote:
Wed Aug 08, 2018 9:44 am
nano /home/pi/.config/lxsession/LXDE-pi/autostart

@chromium-browser xxx.xxx.x.xxx #ip address#


When I reboot, it doesnt load anything.
Works for me...

Are you sure you got the right file?
No typos in the command itself?

klricks
Posts: 6155
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: How to boot browser page from startup

Wed Aug 08, 2018 12:44 pm

brockayers wrote:
Wed Aug 08, 2018 9:44 am
nano /home/pi/.config/lxsession/LXDE-pi/autostart

@chromium-browser xxx.xxx.x.xxx #ip address#


When I reboot, it doesnt load anything.
Try from the lxterminal command line. This should bring up Google:

Code: Select all

chromium-browser 172.217.5.14
Try entering ip into a web browser on a desktop computer, Windows or Mac

If it does not work in the above then it's not going to work in autostart.

Note to test autostart log out and back in is faster than reboot.
Unless specified otherwise my response is based on the latest and fully updated Raspbian Stretch w/ Desktop OS.

brockayers
Posts: 16
Joined: Mon Jan 30, 2017 7:49 pm
Location: West Bend, Wi, USA

Re: How to boot browser page from startup

Wed Aug 08, 2018 11:17 pm

I type it all the way I'm.supposed to, but it doesnt load the ip address... Itll load Google or this page.
When i have it set to load the ip address, i cant open the browser. It just wont open, no error messages, nothing. But i go and erase the lines i put in autostart and reboot, and everything works fine again.

klricks
Posts: 6155
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: How to boot browser page from startup

Thu Aug 09, 2018 12:22 am

brockayers wrote:
Wed Aug 08, 2018 11:17 pm
I type it all the way I'm.supposed to, but it doesnt load the ip address... Itll load Google or this page.
When i have it set to load the ip address, i cant open the browser. It just wont open, no error messages, nothing. But i go and erase the lines i put in autostart and reboot, and everything works fine again.
Not clear if you have done everything in my previous reply.
Did you try the command from terminal?
Did you try from another computer?
Where is the IP........ Public Internet or something on your local network?
What exact lines did you put in autostart?
Unless specified otherwise my response is based on the latest and fully updated Raspbian Stretch w/ Desktop OS.

brockayers
Posts: 16
Joined: Mon Jan 30, 2017 7:49 pm
Location: West Bend, Wi, USA

Re: How to boot browser page from startup

Thu Aug 09, 2018 12:30 am

Terminal is all i use for it.
I can type the ip address in any browser on my phone or pc and it comes up right away.
The IP is on my network and also outside my network.
Ive tried these at different times
@chromium-browser xxx.xxx.x.xxx (didnt work)
@chromium-browser --start-fullscreen xxx.xxx.x.xxx (didnt work)
@chromium-browser www.google.com (works)

DirkS
Posts: 9733
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How to boot browser page from startup

Thu Aug 09, 2018 4:54 am

Can you ping the IP address from your Pi?

brockayers
Posts: 16
Joined: Mon Jan 30, 2017 7:49 pm
Location: West Bend, Wi, USA

Re: How to boot browser page from startup

Thu Aug 09, 2018 9:32 am

How do I do that?

DirkS
Posts: 9733
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: How to boot browser page from startup

Thu Aug 09, 2018 9:35 am

brockayers wrote:
Thu Aug 09, 2018 9:32 am
How do I do that?
Open a terminal window and then use

Code: Select all

ping xxx.xxx.xxx.xxx

lrhorer
Posts: 31
Joined: Sun Feb 22, 2015 6:35 pm

Re: How to boot browser page from startup

Fri Oct 12, 2018 1:35 am

It works for me, however it still brings up the desktop before loading the browser. 'Not a big deal, really, but is there any way to prevent the desktop from popping up at all? It would be nice if the system booted straight into the browser.

PhatFil
Posts: 926
Joined: Thu Apr 13, 2017 3:55 pm
Location: Oxford UK

Re: How to boot browser page from startup

Fri Oct 12, 2018 2:14 am

hi have you checked out brewpi?
https://www.brewpi.com/

you may wish to consider running your pi headless and using other computers to access it via a hosted web interface, that way you wont need to dedicate a screen and keyboard/mouse to the job and can pack your pi into a hidden corner.

another brewing related project worth a look-see imho is the https://github.com/matsstaff/stc1000p stc1000+ add a 433mhz RF transmitter to the stc1000 and either hook your pi or an esp8266/arduino etc to a receiver to log time/temps/heating/cooling status..

Also check out the ispindel a floating electronic hydrometer project based on an esp8266 :) https://github.com/universam1/iSpindel
which you can integrate with brewpi ;)

Return to “Beginners”