[APP] Oneplus Weather (Version 4)

ImbaWind

Senior Member
Jul 12, 2011
1,774
3,895
143
?
This is the official weather app from Oneplus.
V2's translated files uploaded in attachment for experts only (I failed to recompile after modifying), after replacing these files the app should be fully translated except cities' names which can be translated in the china_city.db, I'm not going to translate the db file as there are 5000+ entries and I don't know how to translate them quickly.


[UPDATE 28-5-15]
LINK
This update was on 22 May I suppose, version details :
Version: OneplusWeather(Version 4)
Weather: Sunny, Cloudy, Gloomy, Rain, Snow, Dust storms, Haze, Fog
Compatible with ColorOs and Cyanogen
Can be installed on top of the old version, currently compatible with Oneplus only
Changelog:
[NEW]
Added Fog
Added widgets
Added a few more animations
Added online feedback
[IMPROVEMENT]
More precise location positioning
Weather index icon more imagable
Stability boost in weather system


[UPDATE 21-4-15]
LINK
This update was on 18 April I suppose, version details :
Version: OneplusWeather(Test Version 2)
Weather: Sunny, Cloudy, Gloomy, Rain, Snow, Dust storms, Haze
Compatible with ColorOs and Cyanogen
Can be installed on top of the old version, currently compatible with Oneplus only
Changelog:
[NEW]
Added Dust storms and Haze
5 Weathers now have night mode
[IMPROVEMENT]
Support international positioning and searching
Changed main screen's date appearance, better-looking interface
Changed 'Clothing Index' to 'Clothing Suggestion'
Optimized performance and battery usage
Reduced weather update failures
Bug fixes and stability boost




Screenies

 

Attachments

Last edited:

ImbaWind

Senior Member
Jul 12, 2011
1,774
3,895
143
?
Surely this can be modified to work in other countries, u can select different locations but it's Chinese.

Sent from my A0001 using XDA Free mobile app
I'm a chinese, the "selectable locations" are different states of China, unfortunately none of the places outside China can be found :(
 

xLychee

Senior Member
Jun 14, 2012
79
14
0
Edit 2: Sooo, i broke the app signing completely, cant fix this right now so no working weather from me :( however, ill upload my edited db !!!! ive only added data for "Hamburg - Germany" right now !!!! so you can try yourself.

Edit 3: https://owncloud.it-9.net/index.php/s/NaFpOiguUNrqIlT here is the download link for the db.

Hello Guys,

im trying to add some cities to the app, interestingly there are a lot of not chinese cities in there see the screenshot.



Cant promise you that it works, have done it once with the MIUI V4 Weather App i think but that was a long time ago. Will post later today if it works.

-xLychee

Edit: Its the "Areas" shown in the screenshot, not the city tab. Anyways im still editing. Right now i need to find out how the pid is connected to the city, its only there for chinese cities.
 
Last edited:

xLychee

Senior Member
Jun 14, 2012
79
14
0
@ xLychee
Can you please explain how to add a city in that db? TIA.
Sure.

But before a little Disclaimer
I am no Dev and have no clue if it works the way i thought, im just tinkering around with stuff until its broken.
Though this is just an App so nothing irreplacebale should break.

I just took the apk and extracted everything with 7zip, in the Assets Folder you find the "china_city.db" open it with sqlitebrowser.
Go to "Browse data" and choose table "area" and scroll down a lot, there are a lot of cities not located in China, like Hamburg or Rio de Janeiro but they have no pid.

I tried to add a pid and say its located in china (in another column) but after adding it back into the apk i couldnt install it anymore, because it breaks the app signing and you cant install completely unsigend apps on android.

Im not sure if that would've worked, i know the other app i did this with resolved cities with a server to get the weather data. The question is, is this done with the column "_id" or "pid", because if it is done with "pid" it wont work, if its done with "_id" it could work.

Sorry if thats not that easily understandable, english is not my native language.

-xLychee
 

nofx161

Senior Member
Oct 27, 2010
1,140
466
113
somewhere far far away
I will take a look at The DB file later and add some Citys .
Well, to be honest, this is not the full part of the issue, there is more backend to this app which you have no clue about.

Good luck with your inaccurate ramblings about the id's.

We actually made those up and make it correspond to our backend system for picking up data.

Therefore if the PosID is not in our backend the app wont work anyway! So, everything you've said is a load of crap :)

If the PosID was to conform we'd have to add them to the backend system and also in addition to this in order of the last valid posIDs not your own.

the statement above wasnt from me but this is it.

---------- Post added at 12:23 PM ---------- Previous post was at 11:44 AM ----------

http://www.oneplusbbs.com/thread-705687-1-1.html its not color os ites really a oneplus app
 
Last edited:

xLychee

Senior Member
Jun 14, 2012
79
14
0
Well, to be honest, this is not the full part of the issue, there is more backend to this app which you have no clue about.

Good luck with your inaccurate ramblings about the id's.

We actually made those up and make it correspond to our backend system for picking up data.

Therefore if the PosID is not in our backend the app wont work anyway! So, everything you've said is a load of crap :)

If the PosID was to conform we'd have to add them to the backend system and also in addition to this in order of the last valid posIDs not your own.

the statement above wasnt from me but this is it.

---------- Post added at 12:23 PM ---------- Previous post was at 11:44 AM ----------

http://www.oneplusbbs.com/thread-705687-1-1.html its not color os ites really a oneplus app
I do think youre talking about my post, but yeah, i wrote that in my last post on page one too, that there will be problems with the resolving backend / server.

-xLychee
 

carlosjcar

Senior Member
Dec 14, 2007
346
63
58
San Juan
Im pretty sure thats going to be included in H2 OS their Home Market Only Rom. Even when I prefer Vanilla like Android I would Have Not minded This App included in OXY. I guess it's a matter of taste.

Sent from my A0001 using XDA Premium HD app
 

ImbaWind

Senior Member
Jul 12, 2011
1,774
3,895
143
?
Im pretty sure thats going to be included in H2 OS their Home Market Only Rom. Even when I prefer Vanilla like Android I would Have Not minded This App included in OXY. I guess it's a matter of taste.

Sent from my A0001 using XDA Premium HD app
Chinese forum has no any trace of Hydrogen OS rom yet but I'll keep my eyes on them

*They will recruit for H2 rom testers in May
 
Last edited:

carlosjcar

Senior Member
Dec 14, 2007
346
63
58
San Juan
I Hoping they will at some point release it for Oxygen and maybe even COS 12. I'm kind of boomed that Oxygen is kind of short on Customizable features but I'm sure they just focused on a stable Base to build upon. If they come up with More stuff like this weather app, and the way you can change the quick toggles on the notification panel, we are in for some cool stuff.

Sent from my A0001 using XDA Premium HD app