Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: [Tweak] iWidgets
06-15-2013, 11:43 AM #5321
Ya, what Drifter said!
06-15-2013, 12:12 PM #5322
As I've always told you Grant, software is never perfect. Even when installed on numerous devices of the same hardware. You can't possibly predict how it is going to react on every device, even when the hardware is of the same spec. People load different apps, tweaks etc, it all has an affect on your personal experience. Unfortunately, you disagree with me on this,
It is NOT my job to educate you, I spend enough time dealing with code as it is.For me its a waste of my limited free time trying to explain the nuances to you (when I know you wont even understand the finer details) is pointless in my opinion. Id rather be working with code than Chit-Chatting on the threads. Thats why you have 4000 posts and I have less that 650. We use our free time differently. Id rather post useful information and cool widgets vs idle chat.
If you read my original post correctly, I found a solution that works for my particular BatteryStats widget. This issue is very similar to what seemed to be going on with Weather widgets and getting their data from a cache and not from repeated jQuery calls. I posted that it should help with other Widgets using jQuery calls, not as a find all solution to every Refresh issue plaguing widgets today.
Its interesting that Durben, Dacal and King O Hill seemed to have arrived to a similar solution I did based on "their" own separate research on the subject dealing with their new Native Weather tweak and widget.
Our new Widgets are similar in that respect, both are using a Dylib that posts info to a text file, and we use jQuery to get that info. I had it a little easier because I had much less code to deal with than they did.
So now we have two different methods people can try to use to fix their jQuery updating issues, one based on my research and the other based on their research. Hopefully between the two we can put this Refresh issue in the past and move forward to producing more useful widgets.
After I post my BatteryStats iWidget later today, I plan on working with MatchStic to produce a FreeMemory display iWidget
We are entering a new era of iWidget capabilities.
Durben, Dacal, King O Hill and myself have heard the call to produce more innovative widgets, and your are only starting to see the beginnings of what is becoming possible
Last edited by NewdestinyX; 06-15-2013 at 12:15 PM.Here to help if I can. If I can't I know someone who can!
06-15-2013, 01:40 PM #5323Drifters and MatchStic's BatteryStats iWidget
Matchstic and I would like to present to you a fully fucntioning Battery Level iWidget
Firstly, I would like to Thank Matchstic for his contribution to this widget!
Without his x-Code knowledge and his ability to hook into IOS's Battery API and associated Libraries this widget would not have been possible!
Matchstic Dylib will create a Text file at:
This txt file will have the devices current Battery level and Charging state.
The refresh rate for the BatteryStats.txt created by the Dylib can be adjusted by changing the RefreshRate in a plist.
The location of the BatteryStats-prefs.plist is here:
adjust the <real> value in seconds. By default it is set to 30 seconds.
Here is the link to Matchstic's BatteryStats.dylib: http://goo.gl/ZYism
For convenience in installing, Matchstic compiled this into a Deb package to install all the accociated files correctly.
After you download the deb file, copy it to your device and use iFiles Installer to install the Dylib.
Now REBOOT your device to correctly activate the Dylib. Without this step, your new battery stats widget will not work.
So now here is where I come in,
I have created the HTML and Java to correctly get the info from this BatteryStats.txt file and display it in a iWidget form on your springboard.
Im am posting 2 version of this,
One is a Static version:
One is a Flip Tile Version:
Shows Stats on the first side:
and a working Battery Image on other side:
Here are the Download links to each iWidget version:
Drifters BatteryStats Static version: Drifters Battery Stats iWidget (Static) V2.zip
Drifters BatteryStats Flip version: Drifters Battery Stats iWidget (Flip) V2.zip
As with all my posted widget work, I expect and welcome all mods of this, so please feel free to use, mod and repost my code. This code can be used for Lockscreens, Winterboard SB Widgets, or iWidgets so the possibilities are endless
I have tried to make this as easy as possible to Mod, Use the Static version as a base and use its code to add/remove/re-arange the widget to your liking. I used IOS's naming schema for the Battery Images, So if your running a Winterboard theme, you can just copy all 17 battery images from your Winterboards Bundles/com.apple.springboard folder into the BatteryStats/Images/Battery folder and your new battery image will match your current WinterBoard Theme.
MatchStic and I hope you enjoy your new BatteryStats iWidget
Look forward to some more cool Widgets coming soon from both of us, next inline is a Free Memory Display Widget
Edit: We started a new thread dedicated to this new Tweak, so feel free to drop by and show us your Mods
Drifter and MatchStic's Battery Stats iWidget
Edit2: Updated the iWidget Versions to V2
Last edited by The.Drifter; 06-16-2013 at 06:30 PM.
The Following 22 Users Say Thank You to The.Drifter For This Useful Post:
azaleea (06-17-2013), blkmini (06-17-2013), CrazyChester (06-16-2013), daddykool (06-20-2013), Destan (06-16-2013), Feanor64 (06-23-2013), IrobertI (06-16-2013), joshlogic (06-15-2013), King_O_Hill (06-15-2013), Kr0NiK (06-15-2013), MamaJaay (06-15-2013), map1978 (06-18-2013), Marty McFly (06-26-2013), mentop (06-15-2013), meth357 (11-15-2013), NewdestinyX (06-15-2013), phil73 (06-15-2013), Project5 (06-30-2013), RKO1195 (06-15-2013), Sk37cH (06-16-2013), The_Durben (06-15-2013), trebor130657 (06-15-2013)
06-15-2013, 02:55 PM #5324
The Following User Says Thank You to trebor130657 For This Useful Post:
06-15-2013, 03:03 PM #5325
06-15-2013, 03:10 PM #5326
Brilliantly executed, Drifter. Thanks so much!! Pass on our regards to Matchstic!!Here to help if I can. If I can't I know someone who can!
06-15-2013, 04:24 PM #5327
Nice work bro! I have built this into a couple if LS that I use and its great. I even turned off the stock percentage and positioned it in its place!
Last edited by King_O_Hill; 06-15-2013 at 04:27 PM.
06-15-2013, 04:24 PM #5328
Great work Drifter
Matchstic too! Nice job!!
06-15-2013, 04:41 PM #5329
06-15-2013, 04:53 PM #5330
06-15-2013, 05:18 PM #5331
06-15-2013, 09:17 PM #5332
06-16-2013, 03:36 AM #5333
Thanks drifter for the awesome widget ! I tried to make sth. out of it ! ChalkboardBattery Widget !
Overlay and battery images are handmade by me
The text above the battery image also changes with the battery levels !
06-16-2013, 07:43 AM #5334
Hi... Each time I download the Battery iwidget zipped file when I extract it, it is empty.. both the static and flip.... any ideas? Much apprecaited...
06-16-2013, 08:05 AM #5335
Or try transferring the zipped file onto your iDevice and use iFile to unarchive it.
If your still having trouble PM me and I will compile a deb package for you to install it with with using that method instead.
Last edited by The.Drifter; 06-16-2013 at 08:13 AM.
The Following User Says Thank You to The.Drifter For This Useful Post:
06-16-2013, 08:50 AM #5336
The Following User Says Thank You to ssemmel For This Useful Post:
06-16-2013, 09:00 AM #5337
After you download it, copy it to your iPhone and use iFile installer to install the deb package.
Then you need to Reboot to properly activate the BatteryStats.dylib, without this step your BatteryStats widget will not work
06-16-2013, 11:38 AM #5338
06-16-2013, 11:51 AM #5339
I opened a new thread for all the user mods of BatteryStats, it would be great if you could share it there too so people can see other uses of this widget code
Drifter and MatchStic's Battery Stats iWidget
06-16-2013, 02:11 PM #5340