Comments (5)
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/server.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.
thank for your answer but in /home/pi/pi-weather-station/server/ i have only 3 files : index, geolocationCtrl and settingsCtrl.js , not server.js idea ? i cant go to the next steps
from pi-weather-station.
Sorry, I copied from the reddit page. The file to edit is the index.js not the server.js (at least in the current version).
from pi-weather-station.
thank a lot , i check !
i havnt directory .config ...
from pi-weather-station.
Create the .config directory manually if it does not already exist.
from pi-weather-station.
Related Issues (20)
- Client Build Production version and Deploy to Web Container.
- Error 403 for 7-day weather forecast HOT 23
- 7 Day forecast no longer working HOT 1
- Startup Screen flashes and disappears HOT 1
- Cannot see map HOT 3
- NOT AN ISSUE...Just a question about map colors HOT 3
- 5 Day Forecast on docker HOT 7
- Entering API keys on browser pop-up. HOT 1
- Font size
- Errors in Docker version HOT 2
- blinking clouds
- No temperature, wrong weather icon
- Map, weather, geolocation populates with keys, precipitation map cover shows, but no map layer underneath showing countries, cities, etc.
- 5 Day Forecast Error with Status Code 403
- openweathermap option?
- Adding localization option HOT 1
- Action Required: Migrate Your Tomorrow.io API Domain HOT 3
- Another map API? HOT 1
- code: 'MODULE_NOT_FOUND',
- Map not showing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pi-weather-station.