New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different map baselayer than ESRI #25
Comments
Is this something you'd want to change per database? Or would it be something on the whole installation? An easier version of this could be to use the .env file to hold the settings, that way you could avoid needing to make a UI to manage it. |
Ah, yes, using the .env file makes sense. I've got only one database and so it doesn't matter. But I could see someone using different databases for different purposes (one for day trips, another for hiking?) and so need different maps. But as I said, while writing it, I decided to move permanently to the mapbox tiles and have made the change on my install. Say, what and how do you use different databases? Is your installation used by different people? |
I have a primary database for my GPS logs, and I have another big one for all my weather data. Every 5 minutes a script checks my current location, looks up the weather at that location, and writes it to that database. That’s how the little weather info appears on my posts. I’ve also used other databases for testing the app so I can write to a test DB, or storing other home automation data. |
@aaronpk could you share this script that adds the weather data? I'd like to add that to my setup. |
Sure thing! Here's the script I use, you'll need to fill in the three API keys at the top of the file, and of course replace compass.p3k.io with your own domain. https://aaronparecki.com/2018/07/03/7/ |
Thanks for the file! I'll have to modify it a bit as it seems that May 2018 was the last when Wunderground provided free API keys. You must be grandfathered in, or about to be kicked off their systems... |
oh no! That's no good, I hope I don't lose access to the API! |
It's not that difficult to change to Dark Sky, it seems 😊 Maybe you can comment on it because I had to pull all the new metrics the app is tracking... |
Hey Aaron,
I'm a little tired of the ESRI style map as it feels cluttered and at the same time, doesn't have enough information (such as building/business names). I favor the mapbox street map and right now, I sometimes go into the console and switch over to the street map using the following commands -
This is obviously not ideal. I'm moving to permanently change the map in the map.js file (for my use), but I'm wondering if this would be a good setting to add to the Settings page. There are a few moving parts to this, so I wanted to discuss this with you -
Do you want me to take a crack at it? I could submit a pull request if/when I get the code ready.
The text was updated successfully, but these errors were encountered: