10
Jan

// Weather Icons, Forecast, temps..
Dmeerpa was perfectly right, worse: both high and lo temps also where the forecast ones.
>Code modded to have the current temps/icons.

// Weather Update:
I Met today the Firebug addon for Firefox which really helps in debugging all this JavaScript.
For last “weather update” problem, theme keeps on updating every 0.1 secs (independently of what updateinterval was set)
this could lag the iPhone a lot. (even if i did not notice XD !!)
>found the code bug, modded, now refreshes when asked (update interval)
more debugging to come to be sure the icon/temps refreshes after code change.
EDIT: Looks ok.
New Problem on my iPhone: when i put refresh interval to 15mins and the phone is in standby (black screen) my iPhone looses wi-Fi connection,
what happens is: if the wi-fi was down during the moment of update, there is no update.
No solution to this since there is no trigger for “back on-line” in the iPhone. Setting to 1min can do the trick..

// added Twitter support.
Twitter should be ok:
data recieved by theme comming from twitter plugin:
var twitter = {"tweets":[
{"tweet":"Geeeez","name":"ame235","date":(new Date()).getTime()},
{"tweet":"hello","name":"ame235","date":(new Date()).getTime()+76*3654000},
{"tweet":"Blah","name":"JASPER","date":(new Date()).getTime()}
]};

no debugging available (I have no twitter account…)
if someone wants too debug this please ask in comments (i’ll send to comment mail address).

//PUSH Notifications:
if anyone has the same data output as the one for Twitter for Push notifications,
please post so i can integrate Push Notifications.. (with Facebook 3.1 will add support to facebook also!!)








13 Responses to “235 teehanlax theme, coding fun..”

  1. geo411m Says:

    How do you get the output for push? Have you downloaded the push beta from David Ashman’s repo? Maybe you can get the info from there?

  2. ame235 Says:

    2 days search, i can’t get any info, maybe i should just ask for it from Mr. Ashman.
    for twitter i just found some info already made.. so no real deal, format: tweets.tweet, tweets.name, tweets.date.
    but push could be formatted in lots of ways… and i have no clue.
    i cannot install the push plugin since proswitcher would have to go and i don’t want to.. ashman’s beta repo doesn’t install it if you have the proswitcher installed.
    By reading the plugin content i should be able to do all the adaptation work.
    so if anyone outhere has the plugin please send me a zip ;)
    can be found in /Library/LockIno/Plugins/..

    BTW, added feature: by clicking somewhere on the weather you refresh it immediately.

  3. geo411m Says:

    In that case you should go to mac themes and ask David Ashman for the data. He’s a really cool guy and he should be able to help you out better.

    That’s great news about the weather and twitter portion. Once push is complete this theme will be a 10 out of 5 :-)

  4. ame235 Says:

    if there is no other bug :( lol
    i couldn’t imagine so many bugs in such a simple theme!

  5. Geo411m Says:

    I know what you mean. I use to create themes for android and the amount of people that needed help was a nightmare. Your theme doesn’t have too many bugs. It’s just one weather bug and once that’s fixed you’re all set. Good luck getting everything together. I and many other people are counting on you.

  6. ame235 Says:

    // asked to Mr. Ashman by mail for the output data.
    waiting…(might have lots to do, o I’ll wait in silence :P )
    // Rest of the code looks ok now,
    On-click weather update works: that should be a palliative to possible refresh problem due to network loss during standby.

  7. Joost Says:

    Sounds nice ame235

  8. MIKKE76 Says:

    Hi,
    please, I need an help.
    Is there someone that has teehanlax-235 lockinfo? I’ve, but I can’t change the default weather icon (Luxemburg), in some posts I’ve seen this path:

    Open up the config.js file found under:
    /Library/Themes/235_teehanlax_Lockinfo.theme/Bundles/com.ashman.LockInfo/
    but, WHAT IS THIS? Where I can find this?

    Do I need a SSH connection? Here I can’t have a wifi connection so it’s a problem for me…

    Please help me!

  9. geo411m Says:

    @MIKKE76
    If you don’t have wifi try diskaid or iphone browser. Both programs allow you to go into the iphone through USB instead. Also if you have the updated version then the config file name is now “config_weather.js”

  10. ame235 Says:

    @MIKKE76:
    or if you have you can use iFile directly on the iPhone (i use it for my bed work … LOL XD

  11. MIKKE76 Says:

    Thank you very much everything ok!
    Yust another help…How can I change the clock mode? I need a change from AM to PM mode…

    Thank you very much guys!

    //ame235 edit:
    look for it in the locale you use (language)
    i you us english just mod the en.js file in strings/

  12. MIKKE76 Says:

    Great great great!
    Maybe…is possible to put near the degree the Humidity %?

    Thank you!

  13. ame235 Says:

    @MIkke76
    no it’s not: weahterplugin does not provide that info as far as i can see.