weatherapp's People
Forkers
rusrst rfrench2 vigli-lee aravindarathnamalala rikharthu umairkhalid786 xieren58 dawnpeace siloka comye1 anasonov1992 nipun2003 ebramibrahim userxuan123 graeberj sabeehzaidi jamartinezcastillo jelenko20 choi-woo-sung yasir896 percy-30 afhsete12 devpalacio nespjin abhishekroy-1 67samuel office-murtaza aalshawa97 iamkennedykambo cmsdesigner nikola418 richanshah bubalehich rahiddenpool jbpolly macadamiaboy nishatoma triadityaa ruixingjing deepak103 matteo-catalano pelc314 danielwap matthew-spire mihajlocodes willjamesrobinson tbijo liviugabrielp ffeliciodeveloper ki4rett4 larissacarletti ryan7zoom youri007full hyplast vladr7 victorkiambi rrafly muhammadali493 doncarlangas ayoubboumzebra catalinagrigor dennis57 maiduoduo anirudhparida alia-ahmed22 yashgorawat mjgiannelli jellypork juangaav sofrosyn heyfromnandini zhuojianhai hello-world0321 ebmartins7 gzus1512 jobgetabu mahdigharooni erbollj reisfernanda sepehr99p jeffdazhandi atikkk ktxdev wilfredgicharu wibisa shaahmeer poetabdullah vsm778 bsorider inakuhn ufuomaisaac 1ugia uditjoshi05 samuel-coleman-hub ratinho253 lingareddyk luk14n batuhanbeel mamta-chaudhari-rndtechnosoft amoiiirweatherapp's Issues
Location always return null
Location always return null : getCurrentLocation() if user just start device and launch app first .
Workaround : launch any app which request first location data properly first then launch WeatherApp.
So uncompleted location logic ;)
Icon source
Hello, could you tell me where you found the icons? Thanks!
Codebase as Template
Please, configure the settings of your tutorials repositories as TEMPLATES, so we can easily copy them
cuurent weather data returns null if the time in between 11 : 30 pm and 12 : 00 am
app/src/main/java/com/plcoding/weatherapp/data/mappers/WeatherMappers.kt
in the above file in the extension function toWeatherInfo
fun WeatherDto.toWeatherInfo(): WeatherInfo { val weatherDataMap = weatherData.toWeatherDataMap() val now = LocalDateTime.now() val currentWeatherData = weatherDataMap[0]?.find { val hour = if(now.minute < 30) now.hour else now.hour + 1 it.time.hour == hour } return WeatherInfo( weatherDataPerDay = weatherDataMap, currentWeatherData = currentWeatherData ) }
here if time is between 23 : 30 and 00:00 am it will return null cause since it is > 30 minutes it will go to hour plus 1 which is 24 but there is no 24th hour, it's 0th hour. So it will return null.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.