Це відео не доступне.
Перепрошуємо.
Raspberry Pi Rain Radar & Weather Dashboard
Вставка
- Опубліковано 18 сер 2024
- The full project - core-electroni...
[Update - Rain Radar Works with 'Buster' OS, check the full project, link above, to download, flash and utilise the right Raspberry Pi OS] - Today we are going to create the perfect device to keep track of the rain so you can stay dry.
Related Information
GitHub of Pi Weather Station - github.com/ele...
How to Use a LCD Screen/Display with Raspberry Pi - core-electroni...
Heaps of Projects for Inspiration - core-electroni...
Windy - www.windy.com/...
Flight Radar 24 - www.flightrada...
Today were going to make the perfect device to let you know if you can ride your bike to work or not. This project will inform you at a glance of the current and future weather and let you know if there is or was rain in your local area. Just a few lines into the raspberry pi terminal and a couple of free API keys will create a locally hosted webpage which gives you the coolest weather radar on the block. Also if you want an even easier solution I demonstrate windy.com and planeradar24.com. Talking of the Terminal Commands I use. APT Get is a good method of getting a managed package which are scrutinised by the Open Source Community. Curl Get is a method of getting data from a URL which happens to be a text script. It then goes into bash and gets Sudo Executed. It is worthwhile being a little considerate when using Curl Get in the terminal encase the webpage has been spoofed.
If you have any questions about this content or want to share a project you're working on head over to our maker forum, we are full time makers and here to help - coreelec.io/forum
Core Electronics is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:
Raspberry Pi 4 Model B (4GB) Starter Kit Bundle (IN STOCK!) - core-electroni...
Raspberry Pi 4 Model B 2GB: core-electroni...
Raspberry Pi 4 Model B 8GB: core-electroni...
7 Inch Official Raspberry Pi Monitor: core-electroni...
Raspberry Pi Monitor Display: core-electroni...
0:00 Intro
0:14 Overview
1:12 What You Will Need
1:47 Construction
2:25 Terminal Commands
4:22 API Data and Keys
5:35 Prevent Screen Blanking
6:05 What To Do When Pi Restarts
6:39 Hide Mouse Option
6:54 Windy and Flight Radar 24
7:25 Outro
Nice video!
Thanks mate 🙂 and huge thanks for making this amazing software in the first place, you are truly the best!
You can make it so it automatically starts up each time you turn on your Raspberry Pi. Check the Project Page to see how 🙂
I tried this. I didn't receive a line of command to type (or copy-paste) with a "sudo" after running pm2 start. Not sure what I'm doing or what I'm looking for to get pm2 to start Firefox automatically with the npm port of localhost:8080. Probably my error somewhere.
@@frankenstein4567 Sounds like your doing everything right. This video at starting from the 20 second mark is exactly what you should be seeing in your Terminal ua-cam.com/video/f9SwYNRWSLg/v-deo.html
a question how can I make it visible on a web page so that users can see my work project on the weather of a weather radar thanks friends for everything good luck with your project
followed terminal entries to the letter ------wont work
Very nicely done. Clear and concise. I have done all this with another procedure, but I'm saving your video in case I have to go through installing it all again.
Share your procedure. I'm stuck at the npm install says file not found
What I'd love to do is integrate a local wind speed and direction station as well as a sky camera into this kind of a setup. I do astrophotography so local weather info like that would help a lot I recon.
That was really a great tutorial. I've got enough knowledge to be dangerous with linux overall and you explained this in a way that I can understand without any fluff. Thank you!
Cheers mate 😊 stay dangerous and safe
this on a sailing boat would be great
Yes 1000% Yes!
This is a great and informative video. Thanks for sharing.
thanks friends that was what I was looking for to get weather data from a weather radar 👍🙏🇩🇴 thanks friends for everything
😊😊😊
Thank you for this excellent tutorial! Had this running in no time thanks to your instructions. Question, is there a way to make the radar smooth as it rolls across the screen?
but what a great friend thanks friends for the information about the project of excellent work with the real climate but how can I put an example country of the Dominican Republic thanks for everything good luck
Good
hmmm... i got error after installing the nodejs and typing the command npm install
-bash: npm: command not found
Hi, great video. Is there a way to customize what data is shown? Is it through the API keys? Or is it just locked into the way it is? For example, I'd like to use it pretty close to the way you describe, but I'd like to see more boating related weather things. Rather than the temperature graphs, I'd like to see projected winds over the next 6 to 8 hours, and maybe even a 3 day forecast with wind speeds and precipitation.
You can totally poke around the code 😊 it is all open source and you can find it here - github.com/elewin/pi-weather-station
Once you have a grasp on how it is slapping all the information together customising it is definitely possible. Also if i remember correctly you can tap on the graph sections and they will swap to some wind preset information that may be exactly what your looking for.
When i get to 'npm install' it says bash 'command not found' what do I do?
same here
Is there any way that this could be used to turn on a relay (sonoff) if the wind goes above a certain speed.
You definitely could, just need to dive deep into the code. In particular pulling out the information about the wind speed that the API pulls in and using that as the activating trigger in a python script.
hey, i followed everything in the video but after i put in the api keys, i waited for hours for it to activate but its still not loading the maps or weather info. its just a loading animation. pls help Thanks!
Heyya mate, I think you raised this question on the Forum. My tip for you initially is to use a more powerful power supply. It looks to me like the Raspberry Pi is having current/voltage issues.
Could i do this on a non raspberry pi but an old pc laying around?
Thanks for tutorial but I did follow all the steps except when I type npm install I get this error "bash: npm: command not found". Please, can you help me?
Thanks for making this comment!
So, until there is correct compatibility of NPM with the new Raspberry Pi ‘Bullseye’ OS, at this stage flash and use the previous Raspberry Pi ‘Buster’ OS onto your Micro-SD. This will then work 😊 I just checked today.
Everything you need to do that found here - core-electronics.com.au/tutorials/flash-buster-os-pi.html
ADSB-Exchange is also good for aircraft as its the source
Excellent Idea, I look forward to doing some more Plane sensing tutorials soon. Check out this device right here - core-electronics.com.au/flightaware-pro-stick-plus-usb-sdr-ads-b-receiver.html
Is there a way to show natural disasters, specifically tornados?
Totally Open-Source Code so if you want to add that feature you definitely can 😊!
@@Core-Electronics thank you!
Thanks man.
3:35 My code says the list of courses could not be read. Please help.
i copy/pasted the mapbox key, and everythings working, except i have no map. my locations there, the weather too, but no map. any ideas?
It sounds like you are very close. If you have just finished building it API's can sometimes take a little bit of time on their server side to kick in and allow you to pull information from them. There are also some successful troubleshooting for your situation at the bottom of the project page which I will link here, (it could be the node source version that you have installed) - core-electronics.com.au/projects/pi-weather-rain-display
@@Core-Electronics thanks! its up and running... i was getting a 'too many requests' error but its all good now.
Very Nice Video.I have followed your video till the last step but i am failing to get the data reciprocated on the dashboard after entering the Respective API Keys.The PI Weather station local host page is just refreshing
Give it a little bit for the back end side of the API providers to do their thing. This can take like 30 minutes. If everything else it good and your keys are entered correctly you should be sweet to go.
How does this compare to a BOM web app widget?
Style points and this gives weather predictions 7 days into the future instead of 3 from the dashboard.
Everything is great until IO get an error after typing nom install. Any thoughts?
Double check for me that you have your system connected to the internet, otherwise come check out the troubleshooting in the article comment section here - core-electronics.com.au/projects/pi-weather-rain-display/
a question what monitor can be used if necessary if you can use the monitor of the computer thanks friends for everything good luck 😎
Any monitor will work just fine 😊
Can a GPS be connected so the map reflects your location (as it changes)
For sure! All the scripts are open source so the tools are in your hands to make it a reality 😊 github.com/elewin/pi-weather-station
Can this weather station software work in the vertical orientation?
You will have to change some configurations however I am sure it can. This is fully open source 😊 so you can do anything you'd like to it!
I already have something listening on port 8080, when I run npm start it fails as address in use, how do I change this please?
I found the config and changed the listening port. For anyone else with same problem = "/pi-weather-station/pi-weather-station/server/index.js".
Oooopa 😊 very glad to hear you figured it out.
Is there a working weather module radar module for magic mirror??
Come check this Magic Mirror Open Source Modular System here - github.com/MichMich/MagicMirror
That's the ticket.
@@Core-Electronics Yeah. That was the first place I looked....
We could add a pir sensor to wake the screen automatically when walking by.
Excellent idea!
a question can be programmed with visual studio code code editor using visual studio code code editor terminal can you use raspberry pi commands 🤔
What will it cost me to buy one from you or to get it in south africa
Hey, we don't typically ship these pre-built, but we have a list of all the parts you need here to get going:
core-electronics.com.au/projects/pi-weather-rain-display/
I've tried this with problems no npm install or start. Says no folder.
you need to install nodejs (apt get-install nodejs) and install npm (apt get-install npm) Just did this yesterday on a fresh rPi build and it worked perfectly for me.
One question, can the TV monitor and the HDMI cable be used with the raspberry pi graphics card, thanks friends for everything 😅🇩🇴
Hey mate, you can definitely hook the Raspberry Pi Single Board Computer to a TV/Monitor Screen. Give this guide a look if you need 😊 - core-electronics.com.au/tutorials/dual-monitors-raspberry-pi-4.html
@@Core-Electronics I was looking for that to create an interactive map to locate the bad weather and its temperature thanks friends for everything for helping me learn to program the language codes I want to know if you can use a monitor on a table with yellow, white and red cables thanks friends you are very cool in language programming
Hey mate, the product you are looking for is one of these - core-electronics.com.au/catalog/product/view/sku/ADA3365
You can then use the HDMI port of your Raspberry Pi --> Plugged into the HDMI to PAL (the Three Colourful Wires) --> Plugged into your Monitor. Hope that helps 🙂
I have the previous Raspberry Pi ‘Buster’ OS installed as you suggested in the comment below and my PI screen is the old familiar one and still when I get to npm install it says -bash: npm: command not found. Can you please help?
After typing and entering the line | curl -sL deb.nodesource.com/setup_10.x | sudo bash - | what kind of result do you get?
If your still running into issues come write up a message in the comment section with some screen grabs of the terminal messages.
@@Core-Electronics it does things like in your video but npm install command not found...
@@JM_BoltActionGunStuff install npm first that should it
sudo install npm
I need help nodesource says bookworm is not supported,just so you guys know I was using pi os 32 bit full
Hey sorry to hear you are having issues, Bookworm OS is the newest version and a lot of these packages aren't built for it. We know that this works with Buster OS, and we have a guide on how to install that: core-electronics.com.au/guides/flash-buster-os-pi/
Best of luck!
Thank you it worked
Hallo.
Ich bin verzweifelt am probieren diese Wetterstation auf meinem Raspi zu installieren und zum laufen zu bekommen. kann mir da jemand helfen?
Come check out comments section in the full written up article. Also check out the open source GitHub page for some more troubleshooting tips - github.com/elewin/pi-weather-station . I know you can do it!
Schauen Sie sich den Kommentarbereich im vollständig geschriebenen Artikel an. Sehen Sie sich auch die Open-Source-GitHub-Seite an, um weitere Tipps zur Fehlerbehebung zu erhalten. weiß, dass du es kannst!
that login is a puzzle i cant make an account to get into the login login how do i create an account
Come over to the forum and I'll give you a hand there mate, easier to do than here 🙂
I can't enter Github to copy the links 🤔🙌🙏
I have tried this 3 times on my pi3 and just can't seem to get it to work. In what order from top to bottom are you entering to he keys? It seems that the video shows one thing but your notepad says something else. I'm at a point where I'm about to turn this pi into a brick.
Thats no good mate! Here is some great troubleshooting to follow through if your having issues - forum.core-electronics.com.au/t/raspberry-pi-rain-radar-weather-dashboard/10277/1
If that doesn't work, hit up our forum with some pictures of your gear and we'll get it working 😊 - forum.core-electronics.com.au/latest
Any idea why this no longer works ?
it still works. Make certain that you are only using 4 places past the decimal for lat/long.
Can a Zero 2w be used?
What about the vilnrability reported in the code @4:03
Good eyes mate, if that comes up in your code and you want to address it enter | npm audit fix | in your terminal to fix it. I talk about it in the project write up.
@@Core-Electronics thanks
Can someone help me to create an account I don't understand anything about this session registration I know how to create a php registration with mysql and SQL but I don't understand anything about this session registration can you help me
does anyone know a free alternative for a mapbox api key? I dont want to use my debit card for this
I set it up to use my cashapp card. ;)
>What To Do When Pi Restarts
is there no way of automating the starting of the nodejs server?
Google PM2 autostart
@@toxaq looks like a cool process manager thats pretty easy to use - would have been good for the video to devote 30 seconds to it instead of the manual starting of the node server steps
Cheers all, I reckon PM2 is worthy of its own tutorial. Definitely an excellent tool to automate
I have come to an acceptable solution to automating the server. It Involves PM2 to run the **| npm start |** whenever the Raspberry Pi turns on (and it has connected to the internet) in combination with using Firefox as the default browser. On Firefox I installed an Extension called Auto Fullscreen so when the browser opens with the Weather Station it will take up all the screen as it should. I'll write up a line-by-line on the project page.
@@Core-Electronics could you make a second video showing the steps you went through?
send me the link of the 3 weather map API page for me to copy the weather map API codes thanks friends for everything good luck with your project 😎🇩🇴🙏🙌
You get to make your own with each respective API provider, they're all free 😊
Doesn’t work, npm install isn’t a command for me
Double check the comment section for a whole bunch of successful troubleshooting. Find it at the bottom of the main write up here - core-electronics.com.au/projects/pi-weather-rain-display/
@@Core-Electronics alr thx man
What was the vulnerability?
When using an older version of the npm package that pops up. If you want to fix it type and enter | npm audit fix | into your terminal.
Or look at the weather app
mine is not working at all nothing
Come write up a forum post which some extra details and images 😊 we'll best be able to help you that way - forum.core-electronics.com.au/
Wht are you selling the 7" screen for 149,what a ripoff
So without internet , this pi doesn't show anything. Pretty useless. If it had a antenna and good sdr hardware then it would be usefull to use.
this can be done with a regular monitor as well?
Absolutely mate
@@Core-Electronics so ive followed the tutorial(mostly) I downloaded 14 instead of 10 because it said it was unsupported or unstable. I did the things and do npm start and it starts. But it just opens the tab and has a spinning circle the right and on the left it says cannot retrieve map data did you enter an api key. I did enter all 3 and im even pretty sure they are in the right spots SEND HALP
I'm sorry shoebert31 for not getting to this sooner! Kirk on the comment section of the Project article did the same and downloaded 14 instead of 10 and ran into issues. It is important to get nodesource version 10.
When you run and enter the below line in your terminal -
curl -sL deb.nodesource.com/setup_10.x | sudo bash -
It does say that it is no longer supported and it recommends a newer version but if you wait 20 seconds it will download the desired 10.x version it will download perfectly fine.