Sunshine

High-Level Project Summary

We developed a project which consists of an android app that accesses NASA's API POWER to give the user data about how much sunlight a point, chosen by them, receives during a day, a week, a month, or a year. It solves the challenge by giving the user how much energy a specific point receives, with that information they can do anything related to it: a solar energy panel, a garden, whatever they want. It is important because there aren't many places to gather this information, and they mostly are difficult to understand. Our app not only shows how much sunlight, but also how much does each amount mean.

Detailed Project Description

Our program starts its work by asking the user for a position on the globe. When the user proceeds to the next page it will ask for a starting date, a final date, and what temporal resolution does it want to see.


One of its benefits is that it can adapt to whatever temporal resolution the user desires, as well as giving them a table with the definition of the amounts of lux.


We hoped to learn more about android apps, which we accomplished. We learned to get JSON files from an API and how to gather specific parts of its data. We learned how to use WebView and communicate with an HTML page from Google charts. We also learned how to use a Google Maps API in Android Studio. We learned a lot in the past two days.


We developed our project, using Android Studio IDE and using XML for designing the pages and JAVA for the actions between them. We used a Google Maps API to catch the coordinates of the position chosen by the user. We also used HTML and javascript to make the charts, using as base a Google API. We used GitHub to save all the changes we did during the development of the backend and the development of the project.


https://github.com/LuisForti/Sunshine

https://github.com/LuisForti/SunshineBackend

Space Agency Data

We used a Google Map’s API to ask the user which point they wanted to analyze. We also used NASA’s POWER API to gather information about how much sunlight affected the selected point. Then we used Google Charts API to show the gathered information to the user.

Hackathon Journey

It was hard work, very difficult, but it was also nice. We liked it a lot to see the results and we learned a lot. We are very thankful for the opportunity. We chose this challenge because it was the one we thought was the most similar to what we learned until today. We like to program but we have no idea of how to make a 3d app.

When we got together to start it, we divided ourselves into two groups: one would start to make the design of the app, the other would start the back-end, the JSON, and the webview.

Most of our setbacks weren’t too difficult, they were only some bugs in the code which were solved in an hour or two. But we had a major problem with the Android Studio, two of the integrants had to reinstall it, one still can’t use it properly. When we were about to open the app for the last time to make our last modifications, Android Studio stopped working, no matter what we did. We had to upload the final project without our last changes.

References

https://power.larc.nasa.gov/api/pages/

Figma

https://d2vlcm61l7u1fs.cloudfront.net/media%2Fe44%2Fe445fb8e-62db-4a93-8af0-4ad905c39fff%2FphptjjJlZ.png

https://pt.wikipedia.org/wiki/Lux

https://github.com/LuisForti/Sunshine

https://github.com/LuisForti/SunshineBackend

https://developers.google.com/maps/documentation/android-sdk/start#get-key

http://android-er.blogspot.com/2014/08/display-google-charts-pie-chart-on.html

https://developers-dot-devsite-v2-prod.appspot.com/chart/interactive/docs/gallery/piechart.html

https://www.youtube.com/watch?v=Y7JTkXoN8OE

https://www.youtube.com/watch?v=Vcn4OuV4Ixg

Tags

#light, #lux

Global Judging

This project has been submitted for consideration during the Judging process.