Raspberry Pi Weather Display

  Рет қаралды 24,282

KM4ACK

2 жыл бұрын

A super cool Raspberry Pi Weather display which give you the forecast and live radar.
🔹My Favorite Gear - www.amazon.com/shop/km4ack
Monitor used in video - amzn.to/3LHDXsW
🔹Commands used in the video
github repo - github.com/elewin/pi-weather-station
API Websites:
locationiq.com/
app.tomorrow.io/development/keys
www.mapbox.com/
install commands:
git clone github.com/elewin/pi-weather-station
cd pi-weather-station
curl -sL deb.nodesource.com/setup_14.x | sudo bash -
sudo apt install nodejs
npm install
npm start
startup script:
#!/bin/bash
#script used to start weather station display
#km4ack 19APRIL2022
cd $HOME/pi-weather-station/
/usr/bin/npm start &
sleep 30
sudo killall chromium-browser
sleep 120
export DISPLAY=:0 && /usr/bin/firefox-esr --kiosk localhost:8080
crontab entry:
@reboot sleep 20 && export DISPLAY=:0 && /home/km4ack/Desktop/start-weather
🔹Raspberry Pi Build Guide - tiny.cc/pi4guide
🔹Frequently Asked Questions - tiny.cc/km4ack-faq
🔹Weekly Newsletter - mailchi.mp/40da1fe472e3/km4acknewsletter
🔹Follow Me
Twitter @km4ack
🔹FREE Get Started Guide - tiny.cc/getstartedguide
🔹Cool Ham Gear - km4ack.com
🔹Support the channel through Patreon - www.patreon.com/km4ack
🔹Did you just get a raspberry pi and want to hook it up to your radio? Start here kzbin.info/www/bejne/e2K2dpqGe7aeaq8
Want your raspberry pi to play nice with your ham radio? Are you into digital modes like FT8, JS8Call, FLDIGI, Winlink, APRS, Digipeaters and others? Each week I put out new content showing you exactly what steps to take to get the latest ham radio software on your raspberry pi. Whether you just want to ragchew or are seriously into emergency preparedness, emcomm, or ARES and want to learn all you can about using the raspberry pi to drive your ham radio, this channel has something for you. Be sure to click the subscribe button and ring the bell before heading off. That way you will get notified of all future videos.
🔹🔹🔹🔹🔹
As an Amazon Associate I earn from qualifying purchases

Пікірлер: 112
@KM4ACK
@KM4ACK 2 жыл бұрын
Monitor used in video - amzn.to/3LHDXsW
@LifeAtTerminalVelocity
@LifeAtTerminalVelocity 2 жыл бұрын
Excellent video Jason!
@imarunner2
@imarunner2 2 жыл бұрын
Well done. I feel inspired to do this.
@Liberty4Ever
@Liberty4Ever 2 жыл бұрын
You weren't kidding about using a leftover Pi 3. I had a notion to pick up another Pi 4 last week and they cost twice as much as I paid last year. I thought computers obeyed Moore's Law and became cheaper over time. Apparently NOTHING is cheaper these days. :-( I'm pretty happy with the National Weather Service forecast for my area, NEXRAD radar and the NWS IR map bookmarked in my browser to quickly check the weather whenever I like, but this is a pretty neat hack for anyone who wants a dedicated weather display. I love these How To videos. While the goal is clearly to get us to the end point with a functioning project as quickly as possible, a lot of Linux can be learned by osmosis along the way. It's sort of like giving us a fish while also giving us a little bit of a fishing lesson as well.
@KM4ACK
@KM4ACK 2 жыл бұрын
Thanks for the kind words Bruce. Due to the worldwide chip shortage, Pi's are ridiculously expensive on Amazon. The last one I purchased (Pi Zero 2W) I got from Canakit. I had to pre order and wait around 2 months but they are still selling them at the normal price. You might also check out rpilocator.com/
@pbrstreetgang9543
@pbrstreetgang9543 2 жыл бұрын
Perfect. Thanks!
@nesr8786
@nesr8786 Ай бұрын
great job works perfect please keep coming with the tutorials ,very helpfull.regards john
@send2gl
@send2gl 2 жыл бұрын
Interesting project and well explained.
@LizzyTheLizard
@LizzyTheLizard 2 жыл бұрын
Great vid just subed hope to see more pi videos
@thuff3207
@thuff3207 2 жыл бұрын
Too cool and when I find a spare Pi I will give this a try.
@discipleoftheword1785
@discipleoftheword1785 5 ай бұрын
Thank you! The node js section is outdated, and chromium is working.
@ik04
@ik04 2 жыл бұрын
Fun with Bash scripts!
@johngilson7085
@johngilson7085 2 жыл бұрын
I like how you say "press RETURN", takes me back to my Commodore 64 days
@KM4ACK
@KM4ACK 2 жыл бұрын
That term will certainly give away my age :-)
@trevorputterill
@trevorputterill 2 жыл бұрын
Hi Jason, I like it. !! Any chance of a temp and humidity display using a DHT sensor on Build a Pi for field or off grid use i run my build a pi with a 4inch display when away from home.
@sergebertuzzo7407
@sergebertuzzo7407 2 жыл бұрын
Thanks Jason/all. It was indeed the Lat / Long issue (used 4 decimal places) and it is now working as it should! 73 Serge
@Travelinmatt1976
@Travelinmatt1976 Жыл бұрын
can you tell me what format the Lat / Long needs to be in? is it decimal degrees like 28.0000 / -95.0000 or degrees decimal minutes like 28 00.0000 / -95 00.0000
@kevinshumaker3753
@kevinshumaker3753 2 жыл бұрын
Are you going to look at using the GPS data from /run/user/1000/gridinfo.txt (the actual GPS coordinates are available too, just not saved there)? Since it seems to be all javascript, I wonder if it can be run in another OS, like maybe Debian for a home server (I have ADS-B, and a scanner streamer running on the same Debian VM server, might try to add it to it) and give that port 8080 feed to my home network.... It'd be cool to make available to others without internet on my Go-Network for emcomms, too (Pi4 running the scanner streamers and Citadel BBS and Internet connectivity)...
@ericfowler4397
@ericfowler4397 2 жыл бұрын
Jason, thanks for the terific tutorial! Chromium is opening properly on my up-to-date Buster install. Do you happen to know the command line switch to launch Chromium in full-screen mode? Thanks again! 73 de WV3E.
@kevinshumaker3753
@kevinshumaker3753 2 жыл бұрын
@km4ack BTW, for the weather key, it's the same as the "Secret Key" just above where you copied out the API key...
@johngallagher7762
@johngallagher7762 11 ай бұрын
How do I change the port from 8080 to some other port? I already have something else running on port 8080.
@KB5WCK_Radio
@KB5WCK_Radio 2 жыл бұрын
Question and comment: Love this. Thanks for showing how this is done. One question/request though.... Is there a way to connect through a web browser from another computer? That would be a nice add-on if possible because I can't always be next to it.
@n0nz613
@n0nz613 2 жыл бұрын
yes, you should be able to by entering [ ip-address of the WeatherPi]:8080 but you have to punch a hole through the pi's firewall. -- haven't tried it though. I use Remote Desktop by doing "sudo apt install xrdp -y" on the pi and using the free app from Microsoft (native on most window machines) Remote Desktop and available on the iOS/Mac App Store and Google Play Store. It's also available for Linux. Much simpler but you have to have VMC installed on the client machine.
@user-uq9lz4ob8i
@user-uq9lz4ob8i 3 ай бұрын
Great video. Just started learning the PI. Got to MAPBox and trying to figure it out. Do you have any videos on it? 73
@kevinshumaker3753
@kevinshumaker3753 2 жыл бұрын
I have completed both a Pi3 version, and a Debian Bullseye 11 VM version, and both maps have a major issue with Radar artifact that doesn't seem to clear. We had storms roll through last night and one particular artifact was always there. (Look NW of Louisville KY for a bad one, but they are all over the country)
@KM4ACK
@KM4ACK 2 жыл бұрын
I have had this running for a month now and several days ago I started noticing the same thing. Not sure what the deal is but it's something with the radar feed.
@fredhulesii1435
@fredhulesii1435 2 жыл бұрын
Jason, I just completed this project. It works flawlessly. Thanks for sharing it with us. I do have a couple of questions. 1) I built this at our home QTH in Phoenix. i will be using this weather monitor at our mountain home. How will the unit know the new location? Will it be automatic due to the internet connection ore will I need a new map key? 2) I noticed that after a period of time the display went blank I assume this is due to a screen saver. Do you have any suggestions to disable the screen saver? Thanks again! de Fred/N7PN
@KM4ACK
@KM4ACK 2 жыл бұрын
Glad you found it useful :-) For the screensaver, go to the main Pi menu->Preferences->Raspberry Pi Config. Look under the display tab and disable screen blanking. As for the location, it may auto update based on the internet connection but I believe you will need to update the Geolocation API Key
@jeffscheeler2532
@jeffscheeler2532 2 жыл бұрын
I made the weather station that you show how to install. Chromium worked just fine so I didn't go any farther to change to Firefrox.
@KM4ACK
@KM4ACK 2 жыл бұрын
Thanks for the update on Chromium
@PatrickDickey52761
@PatrickDickey52761 2 жыл бұрын
So, I'm doing this the way you have set up. When I reboot in VNC, I see chromium start then get killed, but I never see Firefox start. If I open Firefox though, it's open in kiosk mode and if I type in localhost:8080, I get the option to go to that tab. Am I not waiting long enough, or is there something else that I'm missing? One difference is that I have the start-weather script in the pi-weather-station directory.
@KM4ACK
@KM4ACK 2 жыл бұрын
It shouldn't take more than 5 minutes for the display to start. Post your startup script to the forum and let me take a look to see if I can spot anything that might be tripping you up. groups.io/g/KM4ACK-Pi/topics
@scottvowell9852
@scottvowell9852 6 ай бұрын
followed tutorial to the letter and can not get this to work. Need help
@mrpaulvoline1275
@mrpaulvoline1275 6 ай бұрын
Please help! I'm stuck at the npm install it says file not found. What do I do???
@DukeCitgo1
@DukeCitgo1 8 ай бұрын
Thanks! great project I do have one issue where it does not want to boot fully. I have to ssh into the pi and npm start each time?
@KM4ACK
@KM4ACK 8 ай бұрын
Thanks for the super chat! It is probably an issue with your cron command.
@station-wb4izc
@station-wb4izc 2 ай бұрын
Very nice little project, can you tell me how often the radar image is updated and also how often the temp is updated. Thanks, WB4IZC
@PatrickDickey52761
@PatrickDickey52761 Жыл бұрын
If you have a GPS Hat (or the dongle if you're using Build-a-Pi), is there a way to get this to start up using the location from the GPS?
@KM4ACK
@KM4ACK Жыл бұрын
I don't think using the GPS is an option.
@rogermedley8043
@rogermedley8043 2 жыл бұрын
Great project! Has anyone tried adjusting transparency of the radar layer? I'd like to make the radar layer pop a little more. N1ROG
@n0nz613
@n0nz613 2 жыл бұрын
One more suggested fix. In the line "@reboot sleep 20 && export DISPLAY=:0 && /home/km4ack/Desktop/start-weather" change it to read "@reboot sleep 20 && export DISPLAY=:0 && ~/Desktop/start-weather" for the start script. The Tilde Character (~) -- the key below the esc key shifted on most keyboards has been a shortcut for your "home/userid" directory from the Bourne Shell, CShell, through the Bash (BTW Its stands for Bourne Again Shell) and will save you some typing and have ing to escape out to look up your login id. BTW while cryptic I use the vi editor and have been since the 70's. Yes it is cryptic, and you can get into trouble (just as you can with using sudo/or going to root mode) but the short cuts are incredibly powerful and you can save a lot of time editing scripts with just a few key strokes. I would suggest you take the time to learn. The start curve is a bit steep, like learning bash, but once you get it is very productive.
@n0nz613
@n0nz613 2 жыл бұрын
Oops! my bad, I forgot that ~ only works when you sign in. The the point of reboot you haven't really signed in so it doesn't know who's home directory to go to. Nevermind!
@pbhound
@pbhound 2 жыл бұрын
I finally got the script to start at boot, stupid capitalization. is there a setting to user so that the map is not zoomed out so far? I live in a metropolitan area with several different cities, I dont need the full area; it makes my city so small. can i adjust the distance to say 15 miles vice its default setting?
@KM4ACK
@KM4ACK 2 жыл бұрын
I would think there has to be a zoom setting in the code that could be changed but I haven't looked into it.
@Sistema1927
@Sistema1927 2 жыл бұрын
There are +/- marks in the upper left corner that change the size of the map.
@PatrickDickey52761
@PatrickDickey52761 2 жыл бұрын
Chromium works for me. I had posted (or thought that I had) a comment this morning with a website that shows you how to load up a webpage on startup, but it seems to be gone now. I'm assuming that's the reason why it works for me.
@sergebertuzzo7407
@sergebertuzzo7407 2 жыл бұрын
Hi Jason. Quick question for you. Will the PI Wather Station App work with the Raspian OS or should I use Bullseye? Newbie Rasp Pi user. :-) Thank you and keep up the great videos! 73 Serge VA3SB
@KM4ACK
@KM4ACK 2 жыл бұрын
Raspberry Pi OS latest version is Bullseye.
@rodgerhanson
@rodgerhanson 7 ай бұрын
great little project. I want to know if it's only going to work in the USA or around the world?
@sergebertuzzo7407
@sergebertuzzo7407 2 жыл бұрын
Hello again Jason. Having some issues on this end. No doubt I've done something that I shouldn't have. :-) I have downloaded all of the API keys but when the software starts up, I get the grey screen with the date and time on the top left corner but the display area indicates "Cannot retrieve map data". I have checked and rechecked the API keys so not sure what to try next. Any advice or guidance would be greatly appreciated. Many thanks. Serge VA3SB
@KM4ACK
@KM4ACK 2 жыл бұрын
Read through the comments on this vid. Pretty sure someone posted a solution recently.
@Travelinmatt1976
@Travelinmatt1976 Жыл бұрын
you need to enter your Lat/Long use 4 decimal points so Lat 35.1234 and Long -97.1234
@njwater
@njwater Жыл бұрын
I’m here too. Cannot retrieve map data.
@kenrnet6706
@kenrnet6706 2 жыл бұрын
Curious if this app is still working, as I’m seeing data receipt has stopped and others reporting similar issues. Changing the api keys does not solve the issue… the system was updated, wonder if something has broken?
@kenrnet6706
@kenrnet6706 2 жыл бұрын
I have solved this, but tried a few more complex rebuilds along the way. The most simple thing to try is this; put in LAT LON values, don't leave them blank. If that doesn't solve it - I have a more intensive option... it involves replacing data.climacell.co with api.tomorrow.io -- then rebuilding the source code. I hope the first and simple item works for you, I did both and it works. But I added the LAT LON last -- in full transparency, I'm not sure which was really the culprit.
@craigwallace5184
@craigwallace5184 Жыл бұрын
I have followed these steps 3 times to get this to work and all it does is act like it is loading. Waited for over 30 minutes each time and it still never works. Guess the service is down...
@neptunepressurewash7920
@neptunepressurewash7920 6 ай бұрын
Any idea why this no longer works?
@davestafford1106
@davestafford1106 Жыл бұрын
Can't seem to get this to work. Followed the video. All of the components went into place nicely. But the weather app keeps telling me it can't load the map data. Checked the keys....everything seems to be fine. Seems like a cool project...but.
@Travelinmatt1976
@Travelinmatt1976 Жыл бұрын
you need to go ahead and enter your Lat Long in Decimal Degrees format with 4 decimal places like this, XX.XXXX
@njwater
@njwater Жыл бұрын
And then hit refresh
@pbhound
@pbhound 2 жыл бұрын
im at the part of the weather API key, its asking to pay for a subscription to use the API key. is this the same that you used Jason?
@KM4ACK
@KM4ACK 2 жыл бұрын
I did not have to pay for a basic key. The subscription is for more advanced features and more calls.
@pbhound
@pbhound 2 жыл бұрын
@@KM4ACK thanks for the quick reply. after i let it sit for a few hours i was able to log back in and viola there is my key. oh by the way. chrome is working now on start. now if i can just get the start up script to work correctly. so after some messing around i found that chromium does not start when rebooted.
@justinflick7176
@justinflick7176 Жыл бұрын
I cannot get this to work properly. It says.> Cannot retrieve map data. Did you enter an API Key? I have followed your video 3 times now and can't get this to work/update. Any ideas? N9WX
@W4TRI
@W4TRI 2 жыл бұрын
Think this would run ok on a Pi Zero W? I have 2 of those floating around. Great stuff!
@KM4ACK
@KM4ACK 2 жыл бұрын
I would lean toward a yes as it runs fine on the Pi 3. Might take it a bit longer to boot and get running but once running it should be ok.
@W4TRI
@W4TRI 2 жыл бұрын
@@KM4ACK We will give it a try and report back then. Thanks! Coming to Hamcation in Feb.?
@edbloom4897
@edbloom4897 2 жыл бұрын
How does this update the weather info via our beloved radios?
@KM4ACK
@KM4ACK 2 жыл бұрын
It doesn't. This project uses the internet to update the display.
@RaffaeleMazzitelli
@RaffaeleMazzitelli Жыл бұрын
Is there a solution for no desktop (display) environment but just command link?
@KM4ACK
@KM4ACK Жыл бұрын
not that i am aware of in this case
@Indigenous_Patriot_1175
@Indigenous_Patriot_1175 Ай бұрын
What app are you using to run that widget on the left of your screen
@KM4ACK
@KM4ACK Ай бұрын
Conky
@Sistema1927
@Sistema1927 Жыл бұрын
Has anyone else discovered that while it is giving the 24 hour conditions that it is no longer showing the 7 day data?
@tedtoad2471
@tedtoad2471 2 жыл бұрын
Great video, I have it almost working, created all the accounts pasted in the three keys and hit save, it just sits and says it 'can't retrieve map data, did you enter the key?' Tried a couple of reboots and repasted key, no joy.
@KM4ACK
@KM4ACK 2 жыл бұрын
I had to wait a while before the API's kicked in but other than that, didn't have any issues with the map.
@paulwebb4146
@paulwebb4146 2 жыл бұрын
I'm experiencing the same problem.
@paulwebb4146
@paulwebb4146 2 жыл бұрын
@@KM4ACK It's been sitting here for a couple of hours and still the map and weather data has not loaded. I have checked the API's are correct.
@tedtoad2471
@tedtoad2471 2 жыл бұрын
@@KM4ACK Went to Mapbox and refreshed API and reloaded, still doesn't work. If anyone has solved this please post
@kenrnet6706
@kenrnet6706 2 жыл бұрын
@@tedtoad2471 Did you enter the LAT/LON values? A few people (including me) had odd issues getting data feed when not entered. One person changed their values from 6 decimal places to 4 (xx.xxxx) -- then rebooted and all was working normally. Let us know if this works. It's a great little app and valuable for us in the storm ally.
@mikeburdette
@mikeburdette Жыл бұрын
I followed this for bullseye and chromium is bringing it up but nothing's happening does it work on bullseye or just buster
@Travelinmatt1976
@Travelinmatt1976 Жыл бұрын
it does work for bullseye, when you say nothing is happening what exactly is it doing? what does the screen say?
@mikeburdette
@mikeburdette Жыл бұрын
@@Travelinmatt1976 it's just blank after putting in all the keys and waiting for 30 minutes
@Travelinmatt1976
@Travelinmatt1976 Жыл бұрын
@@mikeburdette so when you say a blank screen are you looking at a black screen? is it a white screen with some icons? is it a grey screen? it doesnt say anything at all?
@mikeburdette
@mikeburdette Жыл бұрын
@@Travelinmatt1976 just a black screen trying to load the data has the time on one side and just black on the other
@Travelinmatt1976
@Travelinmatt1976 Жыл бұрын
@@mikeburdette Hmmm, I'm at a loss. If it has the time and no map I'd expect it to say "Cannot retrieve map data, Did you enter an API key?" but since it's blank I don't know what to tell you.
@boink800
@boink800 2 жыл бұрын
I had to fill in manually my latitude and longitude to get it working. Sadly, the project has not been touched in the last two years.
@larrywiles8853
@larrywiles8853 2 жыл бұрын
Minor error - in the startup script, the line cd $HOME/Downloads/pi-weather-station/ is incorrect. It needs to be cd $HOME/pi-weather-station
@KM4ACK
@KM4ACK 2 жыл бұрын
Great catch! I had installed it three different times during filming and didn't make the change to the startup script. Thanks for the heads up!
@KeepEvery1Guessing
@KeepEvery1Guessing Жыл бұрын
Did you ever get passed the chrome startup problem?
@njwater
@njwater Жыл бұрын
I just installed and chromium works fine as far as I can tell
@charlierumsfeld6626
@charlierumsfeld6626 10 ай бұрын
Didn't see what pi 3 you use here. if you did mention i missed it.
@KM4ACK
@KM4ACK 10 ай бұрын
Pi 3B
@roberthousedorfii1743
@roberthousedorfii1743 2 жыл бұрын
Just FYI, this is going to take WAAAY longer than you think...
@afleak
@afleak Жыл бұрын
This looks really good but mapbox wants me to give them a credit card. Did you have to do this and if so have they ever charged your card? I am hesitant to do this.
@KM4ACK
@KM4ACK Жыл бұрын
I didn’t have to do that when I signed up. However, check out privacy.com for just such occasions. Free burner card service that I have used for over a year now. Great service but no affiliation with them. Just something I use.
@andrewgrundel2199
@andrewgrundel2199 8 ай бұрын
Hey All I make it 90% through the install without issues and then it doesn’t recognize “npm install” or “npm start”. What’s going on? Using pi3 on Build A Pi.
@KM4ACK
@KM4ACK 8 ай бұрын
This recent write up might help groups.io/g/KM4ACK-Pi/message/12106
@andrewgrundel2199
@andrewgrundel2199 8 ай бұрын
And this, sir, is why you are the GOAT!!!@@KM4ACK
@kv4atv
@kv4atv Жыл бұрын
@KM4ACK Went through it a few times and never could get it to come up and run. Not sure what is wrong with it. Need help with Weather Station pgm. Firefox installed and is running with no problems. KV4ATV
@robertgilbert5046
@robertgilbert5046 3 ай бұрын
KM4ACK, all went pretty good, however how do I get back to the Weather Key line? I typed in the "apikey=" and I'm certain that it is causing me a problem. This is my FIRST project with a Raspberry Pi, so it took many hours. KA8JOY
@K2PMD
@K2PMD 2 жыл бұрын
Thanks Jason. Everything is working great, except my map does not look anything like yours and is basically a continual redrawing of what looks like a radar of my location. Thanks, love all the cool things I am doing because of your videos. de K2PMD
@SteveEngleUF
@SteveEngleUF Жыл бұрын
Great project & TY for this tutorial! I was able to get kiosk mode to launch in Chrome without hanging by adding '' accordingly in the following command line statement: export DISPLAY=:0 && /usr/bin/chromium-browser --kiosk localhost:8080. Thus, I modified the original script (Sleep number time is a personal preference setting. 15 worked the best for me). See below: #!/bin/bash #script used to start weather station display in kiosk mode #by KM4ACK 19APRIL2022; modified by SJE 21AUGUST2022 cd $HOME/pi-weather-station/ /usr/bin/npm start & sleep 15 export DISPLAY=:0 && /usr/bin/chromium-browser --kiosk localhost:8080 Hope this helps. Cheers!
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 14 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 34 МЛН
路飞太过分了,自己游泳。#海贼王#路飞
00:28
路飞与唐舞桐
Рет қаралды 33 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 14 МЛН