Git Product home page Git Product logo

Comments (1)

mlcampbe avatar mlcampbe commented on August 20, 2024 1

Take a look at the reddit thread at https://www.reddit.com/r/raspberry_pi/comments/il03rk/i_made_weather_station_app_and_designed_it_for_a/ and you will get some pointers. The general directions are:

Step 1. Comment out the line in /home/pi/pi-weather-station/server/index.js that says:

// await open(http://localhost:${PORT});
Save that file.

Then create a file, /home/pi/.config/lxsession/LXDE-pi/autostart

touch /home/pi/.config/lxsession/LXDE-pi/autostart
Edit with your favorite editor and put in code similar to the following:

@xset s noblank
@xset s off
@xset -dpms
@bash /home/pi/weather.sh

Then create the referenced /home/pi/weather.sh and add the following:

#!/bin/bash
cd ~/pi-weather-station/
/usr/local/bin/npm start ~/pi-weather-station/server/index.js &
chromium-browser --noerrdialogs --disable-inforbars --incognito --kiosk http://localhost:8000/&

Then chmod +x weather.sh to make it executable. Reboot, and your display will pop up Chromium in kiosk mode, incognito, with no errors. I did get the upgrade dialog though so I need to find a way to disable that.

I found that when the pi boots chromium starts up but initially gets a page not found error. That goes away about 10 sec later automatically though once the npm server starts up.

from pi-weather-station.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.