Read the statement by Michael Teeuw here.
Weather forecast from current location/calendar location
-
Hi all! Loving my Magic Mirror. Quick one. Is there any way to use the current location for the weather forecast instead of typing in a specific location in the config? Or if current location isn’t possible, could it load the current location from a calendar?
I move weekly on tour and would hate to have to edit the config every week.
Thanks in advance!
-
It might be possible to write a module helper that fetches your location from a calendar entry, but if that location doesn’t resolve in the weather database (because it doesn’t have a station reporting), you’ll end up with some weird stuff.
-
Or try something with GPS , so it will always use your location. but then you have to (re)write some code i think.
-
Adding a GPS will add more code, yes. And you’d also have to figure out how to tell it to get an area location, as opposed to a pin-point location (which a GPS is excellent at.)
-
Amazing, Thanks for the responses guys. Is this something easily achievable? And if so, where should I start? I’m a noob to code.
-
I can’t help you with that, i’m a noob in coding JS. but i think first of all is to look if there is an GPS module you can use for the raspberry
-
@EoinOG I made something similar to what you want. It takes a GPS location from your phone and updates a webpage that the raspberry pulls in and give you weather in that location.
-
This is amazing. Thanks so much @mochman. Is there any more documentation anywhere to guide me through installing it?
-
@EoinOG I can make some up for you. How far have you gotten with the installation?
-
I’ve installed the module. But don’t know where to go from here with regards the configuration of it.
-
I updated this module page with a step-by-step’ish guide on how to install and configure the module. Let me know if you run into any issues.
Since the module pulls lat/long data in JSON format from a file, you could just manually edit that file to update your location. This is in case you don’t want to use the GPS tracker on your phone.
What this means is that if you want to tweak the code, you could just have a file on your raspberry pi, or somewhere else on your home network that the lat/long is pulled from instead of setting up a website.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login