elewin / pi-weather-station Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Sorry, a rookie when it comes to RPI commands. Is there a way to upgrade to v2 without starting over? I have tried the sudo apt-get upgrade with no luck.
Just looking for some customization options on the UI...Would also be nice to add a column to news api..
Just curious if I'm missing something, or not doing something correct?
I'm trying to install and setup the pi weather station for the first time. I have the application running, and the config screen to enter the API keys. I have the "Maps API key", and the "Geolocation API Key". However, I am making no progress on the Weather API key.
The directions I've seen and on this site have links to ClimaCell (which redirects to tomorrow.io) and then I try to sign up, I get "enter a business email address". If I add emails from yahoo, gmail (and other carriers), I get "sorry that's not a business email". Can someone give me a tip on how to get an account created? Or maybe there is an alternate weather API site?
Thanks,
GreatLakesHam
If this is already a feature, I'd love to have some instructions for making it work. My pi has a GPS Hat installed on it, in order to make it a time server for my local network. Is there a way to feed the latitude/longitude into the settings for the weather display, so it will start up at that location? Or if I leave the boxes blank, will it get the information from the GPS Hat?
Thanks and have a great day. :)
Patrick.
How could I write something to add barometric trend chart?
Thank you.
Would it be possible to add a localization option?
I try my best, but I can't get your program to start automatically.
I wrote a bash-script (start_weather.sh) with the following call:
#!/bin/bash cd ~/pi-weather-station/ npm start
and made it executable.
chmod +x /home/pi/start_weather.sh
If I enter:
$ /home/pi/start_weather.sh
it starts like it should.
But if I put it in a crontab nothing hapend.
0 9 * * * /home/pi/start_weather.sh
Try the same with your bash #12 (just without chromium):
#!/bin/bash cd ~/pi-weather-station/ /usr/local/bin/npm start ~/pi-weather-station/server/index.js
unfortunately without success
Do you have an idea where the problem could be or what I can still try ?
Edit:
I have figured out that it works when I start the script via LXDE.
But why doesn't crontab work?
thx.
Hi,
For a couple of weeks now I have been getting the following error message where the 7-day forecast should be:
"Cannot get 7 day weather forecast
Request failed with status code 403"
Has the weather provider changed something?
Edit: Same with the Docker version.
Regards
Max
is there a setting to use to change the default viewing radius? I live in a metropolitan area with several cities all right next to each other and within about a 20-mile radius of my address. but the map shows what appears to be about a 50-mile radius. Is there a setting that I can use to change this?
Hi, I have issue with "clouds" which blinking every frame.
On beginning only when clouds was uploading every frame was disapearing before nex one. Then animation run smoot.
Now there is no animation, just blinking frames.
Any ideas how to improve?
I get this error:
'Cannot retrieve map data -- did you enter an API key'
I put in the mapbox api key and I have waited about one hour, so far no result (this is the first time starting).
Preface: I suck at this stuff.
I'm trying to set this up for a 24" 1920x1080 wall-hung monitor. when I click the sprocket icon to enter my API keys it "dissapears" off screen. Resizing the browser does not fix this, F11 doesn't either. If I size the browser just right, I can see the whole menu, but if I try to click into the text box, the window dissapears again. Any ideas on what I should do?
Hello,
I would like to buil a production version for deploy in a apache web container /var/www/html/meteo dir.
Someone can help me with instructions to build a client production version.
The server service I wiil run with systemctl service.
Thanks !!!
I cannot seem to get the page to display properly on an iPad. I have 2 different browsers on the iPad and in both the browser connects to my pi to display the radar map successfully but the details pane on the right-hand side is missing. When I try to scroll the display thinking perhaps it is just bigger than the screen it moves the map but still no details pane shows.
I also notice a similar behavior for my iPhone but in the case of the iPhone when I rotate the device to landscape mode the details pane shows up as expected. However, on the iPad the details are missing from both the portrait and landscape orientations.
From a desktop browser all works perfectly.
Any thoughts or ideas?
It is possible to increase time font size?
Tomorrow.io/Climacell seems to limit my free account to 100 API calls a day, not 500 like they advertise. With no channels to contact them since I don't pay them.
I run out of API calls by morning.
Can there be an adjustment setting to how often the weather API is called?
Are there any other alternatives out there after Tomorrow.io took over?
I had this running for a couple of years on my Pi3+ but had to reformat the card and start over. Now when the program starts the setup screen appears about halfway up the browser screen and disappears. I can't get it to open so that I can enter the API keys. I'm running nodejs v 18.16.1 and the most recent Debian Bullseye from the Raspberry Pi imager. Any help is appreciated!
I have been running the weather radar for a while now but recently had a power outage. When I restarted my pi and the weather radar it brings me to the same localhost page but the map is not there or any weather data. It just says "Cannot retrieve map data. Did you enter an API key?". I double checked my API keys and even tried new ones but I still get the same error. Any ideas on how to fix this?
Greetings from Seattle. Thanks for the great Pi Weather Station. I have been using mine on an old RP2b continuously and works great.
BTW, by chance, could you consider adding either / both solar weather data (i.e. http://www.hamqsl.com/) and/or a DX cluster window (i.e. ClubLog or DXsummit.fi). Would be a great resource for monitoring radio conditions along with weather conditions. Just a thought.
Thanks again. 73.
Jonathan, KK7PW
Not really an issue, per se (maybe a feature request). What would it take to bind the server to all interfaces instead of just "localhost"? Would it just be a matter of changing every instance of "localhost" to 0.0.0.0 (except for where it calls chromium-browser)?
Thank you for taking the time & effort to make this. Unfortunately, I am unable to get it running. First off I have node V14.17 on an up to date RPi 3B. when I issue the command npm start, I Get the following response:
npm ERR! syscall open
npm ERR! path /home/pi/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2021-05-26T16_13_08_108Z-debug.log
2021-05-26T16_13_08_108Z-debug.log
It seems it is looking for package.json. I am attaching the log file.
BTW While installing I had to a command like npm audit-fix - I don't know if it is relevant but thought I would mention it.
Edit: Title should read "NPM looking for package.json"
Lovely system btw.
It seems that ClimaCell has a wind_deg variable that could be used in the currentWeather part of your code to create a wind direction number for current wind direction.
I have tried to make the modifications myself, but it is well beyond me.
Just a thought for the future.
Hello,
I've received this communication from tomorrow.io team. I supposed some modifications will be needed. Will you update your project to adapt?
Regards,
Hi there,
We're reaching out with an important update regarding your API services with Tomorrow.io.
As part of our ongoing efforts to improve service quality, integrity, and security, we are migrating our API domain.
Upon reviewing our records, we noticed that your account is currently utilizing the old API domain.
To avoid any interruption in service, we kindly ask you to update your API endpoint from data.climacell.co to api.tomorrow.io by May 11.
If you have any questions or need assistance with the migration process, please feel free to reach out to our customer success team at [email protected].
We are here to support you every step of the way and ensure a seamless transition to the new API domain.
Thanks,
The Tomorrow.io Team
Wonder if possible to create a custom map in MapBox and then have it associate with the API Kep so that it displays something other than just light or dark mode on the display
Receiving an error on the 5-day forecast only, attempted the fix as seen on issue #38 with the change from 7 day to 5 day forecast due to free tier on tomorrow.io, rebuilt project but did not seem to fix the issue.
I've had my weather station going on a spare Pi I have for several months at this point, but I was constantly having undervoltage issues with my power supply. Finally got around to getting a new power supply for it, but after rebooting I'm no longer getting the 7 day forecast. It's coming back with a 403 error, but the hourly forecast is working fine, so not quite sure I understand what might be wrong. Would have thought if the API was bad it would take out all the weather info, but it's just the 7 day forecast. Not sure if something changed on the Tomorrow.io side, but seems odd it would have happened exactly when I changed power supplies. Have left it running for a day or two now thinking maybe it would just come back eventually, but still seeing the same error.
Hi there,
Thanks for an excellent project!
Issues are disabled on @SeanRiggs' repo, so I'm posting this here. I'm trying to run the Docker version of the repo on a Raspberry Pi 4, but I get this error:
pi@flight:~/docker $ docker compose up
Attaching to weather-station
weather-station |
weather-station | > [email protected] start /app
weather-station | > node ./server/index.js
weather-station |
weather-station | /app/node_modules/axios/index.js:1
weather-station | import axios from './lib/axios.js';
weather-station | ^^^^^^
weather-station |
weather-station | SyntaxError: Cannot use import statement outside a module
weather-station | at Module._compile (internal/modules/cjs/loader.js:892:18)
weather-station | at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
weather-station | at Module.load (internal/modules/cjs/loader.js:812:32)
weather-station | at Function.Module._load (internal/modules/cjs/loader.js:724:14)
weather-station | at Module.require (internal/modules/cjs/loader.js:849:19)
weather-station | at require (internal/modules/cjs/helpers.js:74:18)
weather-station | at Object.<anonymous> (/app/server/geolocationCtrl.js:1:15)
weather-station | at Module._compile (internal/modules/cjs/loader.js:956:30)
weather-station | at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
weather-station | at Module.load (internal/modules/cjs/loader.js:812:32)
weather-station | npm ERR! code ELIFECYCLE
weather-station | npm ERR! errno 1
weather-station | npm ERR! [email protected] start: `node ./server/index.js`
weather-station | npm ERR! Exit status 1
weather-station | npm ERR!
weather-station | npm ERR! Failed at the [email protected] start script.
weather-station | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
weather-station |
weather-station | npm ERR! A complete log of this run can be found in:
weather-station | npm ERR! /root/.npm/_logs/2023-11-03T12_05_25_325Z-debug.log
weather-station exited with code 0
My Docker Compose file is:
version: '3'
services:
weather-station:
image: seanriggs/pi-weather-station:arm64 #or arm64 (i.e. RaspberryPi)
container_name: weather-station
ports:
- "8080:8080"
volumes:
- appdata:/app
restart: unless-stopped
volumes:
appdata:
I can run pi-weather-station natively on the Pi and it works fine.
npm install
added 79 packages, and audited 80 packages in 17s
4 vulnerabilities (1 moderate, 3 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
pi@rpi-3-38:~/pi-weather-station $ npm audit
# npm audit report
axios <=0.21.1
Severity: high
Server-Side Request Forgery in Axios - https://github.com/advisories/GHSA-4w2v-q235-vp99
Incorrect Comparison in axios - https://github.com/advisories/GHSA-cph5-m8f7-6c5x
Depends on vulnerable versions of follow-redirects
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/axios
follow-redirects <=1.14.7
Severity: high
Exposure of Sensitive Information to an Unauthorized Actor in follow-redirects - https://github.com/advisories/GHSA-pw2r-vq6v-hr8c
Exposure of sensitive information in follow-redirects - https://github.com/advisories/GHSA-74fj-2j2h-c42q
fix available via `npm audit fix --force`
Will install [email protected], which is a breaking change
node_modules/follow-redirects
axios <=0.21.1
Depends on vulnerable versions of follow-redirects
node_modules/axios
glob-parent <5.1.2
Severity: high
Regular expression denial of service in glob-parent - https://github.com/advisories/GHSA-ww39-953v-wcq6
fix available via `npm audit fix`
node_modules/glob-parent
ws 6.0.0 - 6.2.1
Severity: moderate
ReDoS in Sec-Websocket-Protocol header - https://github.com/advisories/GHSA-6fc8-4gx4-v693
fix available via `npm audit fix`
node_modules/ws
4 vulnerabilities (1 moderate, 3 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
I use climacell for a personal project as well and got an email that they are moving from v3 of the API to v4 in the next 6 months or so. Please tell me you are planning on upgrading this project to use the new v4 calls so that this will continue to work.
I did follow all the steps but after node.js installed I can't install npm.
There was an error about locale not right.
Hello,
Your weather station works great and I wanted to use it for a personal project. I would like to add a button that will open a URL link to a localhost:8880 server but I can't...can you help me?
thanks
Any interest in making it possible to incorporate data from backyard sensors--whether by replacing or simply by supplementing the temp / humidity / wind data from ClimaCell? Having the radar, the sunrise/sunset times, and the beautiful layout are super. It'd be even better to be able to incorporate local data as well. So far, my own efforts to that end have proven fruitless.
I wonder whether there's easy way to switch to Openweather? ClimaCell seems to be no more, but I'd still love to use this project.
Works well, but attempting to use your project on 3.5 TFT screen, and the chromium window doesn't look good, basically can only see half the output. Can anything be done to optimize it for smaller screens ?
First, thank you for the great code. Mine works well in the beginning, but after some hours of use the webserver crashes and stops responding. I have the same issue with two different raspberry boards. Any tips how to solve the issue?
I'm not sure where climacell gets its temp from but suspect it is noaa or airports or local new stations. However it does not necessarily match with my backyard. It seems that the reported value is about 3-4 degrees cooler than my backyard gauge. So, is it possible to add a setting to add/subtract from the climacell temp so that we can make the value closer to our actual temps? For example, I'd like to add +3 degrees to the value reported from climacell in my case.
I see in the source that in the /client/src/components/CurrentWeather directory there is a file called openweathermap_index.js. Is that a working option if I rename it to index.js or was that something that was begun but never completed?
why is the location set in America but I'm from the UK
I've had my pi-weather-station up and running for almost a month but earlier today, my RPi stopped being able to download the map from Mapbox. I waited 8 hours to see if the problem would resolve itself but it did not. I then checked the Mapbox website and the API key was still valid and showed no problems. To confirm the API key was not the issue, I had Mapbox issue a new key. After entering this new key into the RPi, it is still unable to download the map. Anyone have any ideas how to fix this?
Has anyone figured out how to get the 5 day forecast to work again on the docker container? I've tried editing the container and rebuilding it with new config, but no luck so far.
My system was running continuously and perfectly for several months, and about 3-4 days ago it stopped retrieving weather data. Map and radar and time/sunrise/sunset are all good but conditions and forecasts are gone. In that display space, the program now displays:
"Could not retrieve weather data. Is your API key valid? Request failed with status code 401"
I checked all of my API keys, tried a few alternatives, and then plugged in the original API key from tomorrow.io.
In looking at the API calls graph on tomorrow.io, I see that it was consistently pulling 180-ish calls every day, then it dropped to 86 suddenly for one day, then 4 the next day, and then 0 and that's where it has been for several days.
Any suggestions?
Thanks,
Harry
@elewin ... great app, thanks for posting it.
I have a question about the animated portion of the app. It shows the weather animation but I didn't see any times for each of the images. Is this shown somewhere on the page? Also, how many images are part of the animation?
is their a way to auto start the program when the pi boots up?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.