GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Concerto 1 supported weather, so should Concerto 2. Where should we get our weather data?
I strongly suggest Weather Underground.
@augustf + @mikldt how can a plugin have editable config information?
If we use Wunderground, users need to configure an API key. I'm happy to make that part of the Dynamic Content upload form but that might get annoying if you're creating lots of weather-related content.
I was just going to say I wouldn't really support using Weather Underground for just that reason. Yahoo has always been known for at least having an open API (http://developer.yahoo.com/weather/) - though I can't speak to the meteorological value of any of these services, and believe they're all rubbish insofar as what the sky above me will be doing.
That said, the situation of needing an API key or other instance-specific configuration is probably inevitable these days. @mikldt I assume that we can just create some config fields on the plugin model and let the plugin read those?
Yahoo has an open API, but it's much harder to control the format of. I think I invented bailiwicks, in part, to clean up their "WeatherRSS" into a usable format.
A number of weather API's seem to support JSON (http://blog.programmableweb.com/2012/01/11/12-json-weather-apis/). Perhaps as we're using Rails that will be a more foolproof way to go than RSS feeds that can get filled with junk we need to parse.
@bamnet: Plugins can have configuration objects as long as they are registered as plugins through the ConcertoPlugin architecture. I've just updated the wiki with instructions on how to add them, see Plugin Development, section "Adding Configuration Objects". There is also an example of this in Concerto Hardware.
If want to talk about plans for bringing the content plugins under the ConcertoPlugin umbrella, let me know.
Thanks for the updates Mike! I suspect I won't be initially that ambitious with weather but anything's possible.
Should the weather plugin be included by default?
I think that is/will be a very popular item and should be included by default. I know it was one of the first things I (local government) added/enabled in v1 and another user I know (K-12 school district in PA) did also.