guolindev / coolweather Goto Github PK
View Code? Open in Web Editor NEW酷欧天气是一款基于Android端开源的天气预报软件
License: Apache License 2.0
酷欧天气是一款基于Android端开源的天气预报软件
License: Apache License 2.0
那三个界面显示出来了,但是到显示天气的信息的时候总是说显示信息失败,不知道是怎么回事
请求的城市数据中并没有code的数据,不过对应数据表的litepal实体类中新建了code属性,并且在设置值的时候是将id的值传入了code属性中,是因为litepal的实体类中id属性是默认保留的么?
在别的城市切换到香港,因为香港没有返回空气质量的数据,导致香港空气质量的text是上一个城市的数据
一般到了下午接口就挂了 {"HeWeather": [{"status":"no more requests"}]
是不是访问达到上限了?
接口的数据获取不到怎么回事呢
你好,我学习郭老师酷欧天气所写的项目和下载的你的,在导入并且下载后都出现闪退,是怎么回事,求指教(百度的方法都未解决)
错误提示如下:E/HAL: load: id=gralloc != hmi->id=gralloc
1.像aqi等一些数据很多城市都没有了,其次预报也只有3天了。。。
2.后台更新将数据存在SharedPreferences里面,但是每次只有oncreate的时候才会读取数据,按照现在手机驻留app的能力,可能更新的效果会很弱。
当获得天气数据并缓存到本地数据库后,之后在访问同一城市的数据会优先获取本地缓存的数据而不是访问网络数据。
此时即使本地缓存的数据是比较过时的数据也不会去主动更新了,只能等待update service在后台去更新数据了。因为update service是每隔8小时启动一次,所以总觉得app中数据更新的不是很及时。
感觉这点还是有改进的余地。不过考虑到那个天气API的每日限定3000次的访问数和大部分开发者依然使用的是代码中默认的那个API key,减少网络访问次数也可能是一种考量。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.