Looks fantastic. It did take a few minutes to get forked over and modify for location, °F instead of °C, etc. Perhaps a future version could use a config.js or something that would just swap those.
For the record, you want to edit js/scripts/controllers.js and js/scripts/view/dashboard.html.
Replacing Helsinki in the openweathermap.org link with your plain text city name seems to work.
For Fahrenheit, replace the "var temp" line in controllers.js with:
I didn't get the github.io pages working in less than a few minutes, so I just grabbed it locally where it'll probably work faster anyway. Thanks also for the great plugin link. Excellent work Jakke, beautiful typography.
I'm the author of the cited add-on: Custom-New-Tab (https://addons.mozilla.org/en/firefox/addon/custom-new-tab/). Thank you so much for promoting it jakke (OP)! Just wanted to quickly respond to the few comments in this thread about my addon.
- It doesn't work for FF on Android (I have never looked into it).
- It's true that setting browser.newtab.url does achieve similar functionality but only Custom-New-Tab properly places the focus!
- CNT can fix your "blanking the URL" problem. Check out the preferences.
Off topic: Thank you for the link to the Custom New Tab addon -- been thinking I wanted something like that in my Firefox but hadn't thought to actually look it up. That addon doesn't seem to work for current Firefox on Android, unfortunately. Btw, your link to the addon in your README makes the page show in Finnish, you might want to change your link to point to the English URL.
This is a really cool start! In the future, I'd love to be able to set preferences and save them to local storage. (For example, it would be nice to be able to set date formatting or location.) I know I could grab a copy of the code and then change those things myself, but then upgrades would be a pain. Overall, though, good stuff!
This looks really nice, I'm going to set this up. If you want to keep developing this, you should think about packaging this into a convenient addon.
But what I'm missing most right now is a license file! Right now it's just copyrighted without giving anyone the permission to copy or modify it. I don't think that's your intention (If you don't want to think about it, the MIT licence is a good choice)
Incidentally, you can do this without installing an addon. In about:config, set the `browser.newtab.url` to any URL (file:///, local, or otherwise) you wish.
An issue I've found is that the URL stays in the address bar. This seems to be caused by Angular adding "#/" to the page URL after it is loaded - any idea how to fix this?
Be sure to link it to the #/ address if you're using the plugin. I had the same problem, this is because the router is redirecting all to the #/-address.
Excellent! Much better than what I made for personal use, and it's great that you open sourced it. I'll set it up on my local web server and start using it.
Thanks for the feedback! I've had a few prototypes along the years but this was actually something that I figured someone would be interested in. I'll continue to develop this and add customizable user settings etc when I have time
Here's something I made, since your version doesn't work. It's a rip off of your work, but none of the code is taken and the temperature display works. It's much simpler, doesn't use any fancy JS, and is contained in 4 JS files including jquery and the quotes and the config.
I only have an issue where it's not displaying the temperature. I set the place to Kostolac in the controller and the view, and language to en, and it's just not displaying the temperature. I'm not familiar with Angular so I don't know how to fix it.
For the record, you want to edit js/scripts/controllers.js and js/scripts/view/dashboard.html.
Replacing Helsinki in the openweathermap.org link with your plain text city name seems to work.
For Fahrenheit, replace the "var temp" line in controllers.js with:
I didn't get the github.io pages working in less than a few minutes, so I just grabbed it locally where it'll probably work faster anyway. Thanks also for the great plugin link. Excellent work Jakke, beautiful typography.