You are not logged in.
#1 Mar 18, 2009 9:34 am
- Stimpy5050

- Member
- From: Washington, DC
- Joined: Mar 13, 2008
[MS Extension] Lock Screen Info [WIP]
Important
If you are interested in testing alpha and beta releases of the next LockInfo version, add the following sources to Cydia:
http://iphone.ashman.com/alpha/
http://iphone.ashman.com/beta/
------------------------------------------------------
Hey team,
I've been working on my next MobileSubstrate extension which extends the usefulness of the LockBackground.html pages by giving them access to the calendar, email, sms and missed call data. Instead of just getting counts (ala StatusNotifier), you actually get the data. Additionally, it doesn't use a local HTTP call like StatusNotifier, but the content is injected directly into the HTML via JS calls.
You'll see in the JS file that the extension works by calling back into the HTML via four callback methods:
updateCalendar()
updateMail()
updateSMS()
updateCalls()
Each gets a JSON-based javascript object. But you don't need to know that... you just interact with the data as if it's a plain object.
Calendar
calendar.events - an array of event objects
event.summary - Summary text of the event (title)
event.location - The location of the event
event.start - Start time of the event, as a number. Create a Date object and call setTime() to get a JS Date.
event.end - End time of the event, as a number. Create a Date object and call setTime() to get a JS Date.
event.allDay - 1 if the event is an all day event, 0 otherwise.
Mail
mail.messages - Array of new messages
msg.subject - Subject of the message
msg.sender - Name of the person that sent the message
Missed Calls
phone.calls - Array of missed calls
call.caller - Phone number of the caller (will eventually be the name)
call.date - Date and time of the missed call (also in number form)
SMS
sms.messages - Array of new messages (unseen)
msg.text - The text of the message
msg.sender - Phone number of the sender (will eventually be the name)
What I'm looking for are bug reports (I already know the logic for getting the SMS messages is wrong), ideas for additional data you'd like to get and screenshots of ideas people come up with for lock screens.
Details on adding plugins can be found here: http://macthemes2.net/forum/viewtopic.php?id=16796296
Last edited by Stimpy5050 (May 5, 2010 12:12 pm)
Offline
#2 Mar 18, 2009 10:00 am
- beatoven

- Member
- From: Mauritius
- Joined: Dec 31, 2007
Re: [MS Extension] Lock Screen Info [WIP]
Waouuwwww!!! ![]()
Does it just read data or could it, say, refresh Byline in the background to get news items? ![]()
[edit] Just tried it. It's amazing.
Could there be a way to have an html link unlock and open the sms app or return a call?
Last edited by beatoven (Mar 18, 2009 10:16 am)
Offline
#3 Mar 18, 2009 10:08 am
- DJ Bless One

- Member
- Joined: Jan 12, 2009
Re: [MS Extension] Lock Screen Info [WIP]
Great idea! That would be so nice on a nicely organized lock screen. Maybe even on the springboard as well!
Offline
#4 Mar 18, 2009 10:15 am
- Stimpy5050

- Member
- From: Washington, DC
- Joined: Mar 13, 2008
Re: [MS Extension] Lock Screen Info [WIP]
beatoven wrote:
Waouuwwww!!!
Does it just read data or could it, say, refresh Byline in the background to get news items?
Technically, it could refresh from Byline, but it's focused on reading the local PIM databases.
Offline
#5 Mar 18, 2009 10:32 am
- beatoven

- Member
- From: Mauritius
- Joined: Dec 31, 2007
Re: [MS Extension] Lock Screen Info [WIP]
Great to know it's possible. I want something to refresh Byline and Cydia at regular intervals. But that's another story. lol. For now, after editing the html to add styling, I unlock and re-lock the phone to see the change but get unexpected springboard crashes almost everytime! ![]()
[edit] It's not random. If I lock the phone then unlock and re-lock without having first given the time for the data to load, it crashes.
I don't have syslogd ![]()
Last edited by beatoven (Mar 18, 2009 10:36 am)
Offline
#6 Mar 18, 2009 10:35 am
- Stimpy5050

- Member
- From: Washington, DC
- Joined: Mar 13, 2008
Re: [MS Extension] Lock Screen Info [WIP]
beatoven wrote:
Great to know it's possible. I want something to refresh Byline and Cydia at regular intervals. But that's another story. lol. For now, after editing the html to add styling, I unlock and re-lock the phone to see the change but get unexpected springboard crashes almost everytime!
Can you send me your /var/log/syslog file (assuming you have syslogd turned on)? I'm not getting crashes here, but there might be an odd dependency that I'm missing.
Offline
#7 Mar 18, 2009 10:57 am
- beatoven

- Member
- From: Mauritius
- Joined: Dec 31, 2007
Re: [MS Extension] Lock Screen Info [WIP]
I have just mailed you the syslog. Editing the html isn't the issue apparently. It's locking and unlocking multiple times quickly.
Offline
#8 Mar 18, 2009 12:14 pm
- Thyraz

- Member
- Joined: Oct 8, 2008
Re: [MS Extension] Lock Screen Info [WIP]
You are a god Stimpy. ![]()
Offline
#9 Mar 18, 2009 1:28 pm
- Stimpy5050

- Member
- From: Washington, DC
- Joined: Mar 13, 2008
Re: [MS Extension] Lock Screen Info [WIP]
beatoven wrote:
I have just mailed you the syslog. Editing the html isn't the issue apparently. It's locking and unlocking multiple times quickly.
Just responded via email. I can't reproduce the problem. Can you give more details on *exactly* what you're doing?
Is anyone else having crashing problems?
Offline
#10 Mar 18, 2009 2:26 pm
- Thyraz

- Member
- Joined: Oct 8, 2008
Re: [MS Extension] Lock Screen Info [WIP]
Took a quick look in the theme files, this is amazing. ![]()
Should be really simple to create custom themes with some editing of the css and html.
Will take a closer look at the weekend. ![]()
Last edited by Thyraz (Mar 18, 2009 2:27 pm)
Offline
#11 Mar 18, 2009 4:32 pm
- chrislee149

- Member
- Joined: Oct 30, 2006
Re: [MS Extension] Lock Screen Info [WIP]
AWESOME. I've been waiting for calendar functionality forever. Everyone said it could not be done. You did it. ![]()
![]()
![]()
Offline
#13 Mar 18, 2009 5:11 pm
- ares
- Member
- Joined: Feb 16, 2009
Re: [MS Extension] Lock Screen Info [WIP]
wow cool...hope this evolves into. something capable of replace intelliscreen
Offline
#14 Mar 18, 2009 5:20 pm
- chrislee149

- Member
- Joined: Oct 30, 2006
Re: [MS Extension] Lock Screen Info [WIP]
Did some really minimal editing to the CSS and JS and I already have a classy, compact, convenient list of calendar events on my lockscreen. Thanks so much!
I wonder how to set the calendar time not to show if it's marked as "All Day." I'm sure it's doable: set a conditional statement to not display the time if it's start time = 12:00AM and end time = 11:59PM or something like that, but I'm not experienced enough with JS to write it from scratch.
Last edited by chrislee149 (Mar 18, 2009 5:29 pm)
Offline
#15 Mar 18, 2009 5:38 pm
- Stimpy5050

- Member
- From: Washington, DC
- Joined: Mar 13, 2008
Re: [MS Extension] Lock Screen Info [WIP]
chrislee149 wrote:
Did some really minimal editing to the CSS and JS and I already have a classy, compact, convenient list of calendar events on my lockscreen. Thanks so much!
I wonder how to set the calendar time not to show if it's marked as "All Day." I'm sure it's doable: set a conditional statement to not display the time if it's start time = 12:00AM and end time = 11:59PM or something like that, but I'm not experienced enough with JS to write it from scratch.
There's an allDay flag in the calendar event you can check.
Offline
#16 Mar 18, 2009 6:19 pm
- blbeesley
- Member
- Joined: Sep 2, 2008
Re: [MS Extension] Lock Screen Info [WIP]
I can't wait until this comes out of beta. The idea is very exciting. I DL'd the package & activated it in Winterboard. I opened the .js & .css files but aren't too shure what to do to be able to the view my information in my lockscreen. Is there a potential tutorial for Noobs?
Offline
#17 Mar 18, 2009 6:29 pm
- Stimpy5050

- Member
- From: Washington, DC
- Joined: Mar 13, 2008
Re: [MS Extension] Lock Screen Info [WIP]
blbeesley wrote:
I can't wait until this comes out of beta. The idea is very exciting. I DL'd the package & activated it in Winterboard. I opened the .js & .css files but aren't too shure what to do to be able to the view my information in my lockscreen. Is there a potential tutorial for Noobs?
It's a little too early to be putting up simple tutorials. It's really for theme developers right now.
Offline
#18 Mar 19, 2009 1:46 am
- beatoven

- Member
- From: Mauritius
- Joined: Dec 31, 2007
Re: [MS Extension] Lock Screen Info [WIP]
Oi Stimpy, I found another mini-bug. The last call I make appears as a missed call in Lock Screen Info.
Offline
#19 Mar 19, 2009 4:05 am
- Thyraz

- Member
- Joined: Oct 8, 2008
Re: [MS Extension] Lock Screen Info [WIP]
You're right, that happens to mee too.
And I also had 2 springboard crashes today, will install syslog now...
It happended both times the same way:
I pressed Home to wake the device from standby, but there was no Lock Screen Info displayed.
Both times I unlocked the device too fast to stop myself when I noticed that the Lock Screen Info isn't displayed.
I wondered if it would have been displayed with a short delay, so I put the device in standby again
and pressed home to see if the infoscreen gets back.
Right after waking up again the spinning wheel came up, and springboard started in save mode.
Last edited by Thyraz (Mar 19, 2009 4:05 am)
Offline
#20 Mar 19, 2009 4:27 am
- Yongobongo
- Member
- Joined: Nov 3, 2008
Re: [MS Extension] Lock Screen Info [WIP]
Wow, just one great thing after another from stimpy ![]()
Offline
#21 Mar 19, 2009 4:51 am
- Thyraz

- Member
- Joined: Oct 8, 2008
Re: [MS Extension] Lock Screen Info [WIP]
ok, figured out how I can easiely reproduce the springboard crash for me:
Wake the device, wait for the Lock Info to show up.
Now 3 steps that have to be done really quick:
-slide2unlock
-put the device immediately in the standby (don't wait for the springboard to show up)
-wake the device up again
About every second try the Lock Info don't show up now.
After a few seconds the spinning wheel shows up and springboard starts in safemode.
edit: sent you my syslog of a crash.
Last edited by Thyraz (Mar 19, 2009 5:00 am)
Offline
#22 Mar 19, 2009 6:03 am
- Stimpy5050

- Member
- From: Washington, DC
- Joined: Mar 13, 2008
Re: [MS Extension] Lock Screen Info [WIP]
Thyraz wrote:
ok, figured out how I can easiely reproduce the springboard crash for me:
Wake the device, wait for the Lock Info to show up.
Now 3 steps that have to be done really quick:
-slide2unlock
-put the device immediately in the standby (don't wait for the springboard to show up)
-wake the device up again
About every second try the Lock Info don't show up now.
After a few seconds the spinning wheel shows up and springboard starts in safemode.
edit: sent you my syslog of a crash.
Try removing LockInfo but keep a theme installed that uses LockBackground.html. You should be able to reproduce the problem (I did). I think the issue is actually in Winterboard, not LockInfo.
Offline
#23 Mar 19, 2009 6:11 am
- beatoven

- Member
- From: Mauritius
- Joined: Dec 31, 2007
Re: [MS Extension] Lock Screen Info [WIP]
Nopes. No crash for me when lockinfo is uninstalled. ![]()
I'm using Thyraz's ThingsStatusCalendar as lockbackground theme. ![]()
Offline
#24 Mar 19, 2009 6:26 am
- Stimpy5050

- Member
- From: Washington, DC
- Joined: Mar 13, 2008
Re: [MS Extension] Lock Screen Info [WIP]
beatoven wrote:
Nopes. No crash for me when lockinfo is uninstalled.
I'm using Thyraz's ThingsStatusCalendar as lockbackground theme.
Were you seeing the crashes with it installed?
Offline
#25 Mar 19, 2009 6:31 am
- Thyraz

- Member
- Joined: Oct 8, 2008
Re: [MS Extension] Lock Screen Info [WIP]
Same for me.
Uninstalled Lock Screen Info and no more crashes.
Then reinstalled and used also my ThingsStatusCalendar :p to test.
Even with this one (Lock Screen Info installed, but no LockScreenInfo-theme activated) the crahses are reproducable then.
Next test was:
Lock Screen Info still installed, but deactivated themes with a LockBackround.html
So only a normal image as background.
This time no crashes....
edit: crashes was provocated as described in my last post.
Last edited by Thyraz (Mar 19, 2009 6:33 am)
Offline

