-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Architecture suggestion: new “data sources” category #3404
Comments
Like an hour ago I was thinking about the exact same approach and then I found this request. I absolutly support this. |
maybe an idea,
---> modules can use it We have coded +/- the same thing with calendar default module |
the default weather module already sends notifications, I'm using the default weather module as data provider here. |
calendar and weather broadcast their data |
There are just two very different things that modules are doing: grabbing data; and displaying it. Various modules and devs have strengths in one or the other. |
alert has no data |
The default modules are not the only sources of data. |
oh, you want US to build and support a random storage database |
@bugsounet |
No, but thanks for the sarcasm. |
@dathbe what other modules provide data that is duplicated by others? ive been here 7 years and don't see a single other module content consumed by others. plenty of time to become a provider |
This would be a larger architectural change for some later major release, but I’m curious to get people’s thoughts on splitting the current modules into two different sections: one for data sources and one for display modules.
The specific issue I’m trying to resolve is minimizing API calls. I have three weather modules (one for alerts, one for a rain map, and one for current weather and forecast). All three draw from OpenWeatherMap API, but none use the same notification name/structure. This results in 3x the API calls, when one should be sufficient.
I think an elegant (though course-changing) solution would be to have a set of data sources that would grab data and present them in notifications, so that the display modules can (should) draw from one or more to present the information in various formats.
This would also help users weed through the modules. Users could look for data sources they’re interested in and then be presented with a narrower list of modules that can display that data source.
And it would help developers by not making them recreate the wheel when a method for collecting the data they want to use.
Probably a pipe dream, but it was a thought I had.
The text was updated successfully, but these errors were encountered: