+ Reply
Results 1 to 2 of 2

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Lockscreen Weather Radar for Europe

is a discussion within the

Skinning / Themes Discussion

forums, a part of the

Design and Media For the iPhone / iPod Touch

section;
Hi, this gets you the Europe weather radar from Meteox.com on your Lockscreen. You do need to do some editing/patching with iFile. You can toggle forward about 6 days. Changing
...
  1. #1
    My iPhone is a Part of Me
    Join Date
    Oct 2010
    Location
    UK
    Posts
    900
    Thanks
    5
    Thanked 68 Times in 66 Posts

    Default Lockscreen Weather Radar for Europe
    Hi, this gets you the Europe weather radar from Meteox.com on your Lockscreen. You do need to do some editing/patching with iFile.
    You can toggle forward about 6 days. Changing direction redisplays the current radar loop before continuing forward/back.
    Install Places Cydget from Cydia and make sure it is ticked in Settings Cydget.
    You scroll through your ticked Cydgets by pressing the home button.

    Edit index.html at
    /System/Library/LockCydgets/Places.Cydget/
    Find and edit the following...


    AFTER...


    parseInt(indexStr, 10);
    }

    ADD...


    var year = 2010;
    var month = 1;
    var day = 1;
    var first = 1;
    var start = 1;
    var direction = 1;
    var number = 0;
    var hr = 21;


    AFTER...


    if (currIndex > 0)
    currIndex--;
    else
    currIndex = max;


    ADD...


    if (start == 0)
    {
    if (number == 0)
    day=day-1;
    if (number > 2)
    number=number-3;
    else
    number = hr;
    }

    if (direction == 1)
    start = 1;
    else
    start = 0;

    direction = 0;



    AFTER...



    if (currIndex < max)
    currIndex++;
    else
    currIndex = 0;


    ADD...


    if (start == 0)
    {
    if (number == hr)
    day=day+1;
    if (number < hr)
    number=number+3;
    else
    number = 0;
    }

    if (direction == 0)
    start = 1;
    else
    start = 0;

    direction = 1;


    NOW REPLACE...


    var imageSrc = 'http://www.etravelreviews.com/gadget_images/travel';



    WITH...


    var imageSrc = 'http://www.niederschlagsradar.de/images.aspx?jaar=-6&type=europa.precip&datum=';



    AND REPLACE...


    imageElem.src = imageSrc + imageIndexStr + '_small.jpg';



    WITH...



    if (first == 1)
    {
    year = keepdate.substring(0,4);
    year = year*1;
    month = keepdate.substring(5,7);
    month = month*1;
    day = keepdate.substring(8,10);
    day = day*1;
    number = keepdate.substring(11,13);
    Number = number*1;
    first =0;
    }

    if (number != 0)
    {
    number = parseInt(number/3);
    number = number*3;
    }

    imageSrc=imageSrc + year;

    if (month < 10)
    imageSrc=imageSrc + '0';

    imageSrc=imageSrc + month;

    if (day < 10)
    imageSrc=imageSrc + '0';

    imageSrc=imageSrc + day;

    if (number < 10)
    imageSrc=imageSrc + '0';

    imageSrc=imageSrc + number;


    imageElem.src = imageSrc + '00&cultuur=en-GB-mx&continent=europa';


    if (start == 1)
    imageElem.src = 'http://www.meteox.com/images.aspx?jaar=-3&voor=&soort=loop3uur&c=&n=&tijdid=20126262254' ;




    NEXT ADD THE LAST TWO keepdate LINES...


    CFDateFormatterCreateStringWithDate(NULL, formatter, now);
    document.write('<h2>');
    document.write(date);
    var keepdate = now;
    keepdate=keepdate+"convert to text";



    THEN REPLACE...



    <i>Places</i> you need to see
    </div>



    WITH...



    <i>Europe Rain Forecast</i>
    </div>
    Last edited by DC_Dave; 07-06-2012 at 12:36 AM.

  2. #2
    My iPhone is a Part of Me
    Join Date
    Oct 2010
    Location
    UK
    Posts
    900
    Thanks
    5
    Thanked 68 Times in 66 Posts

    Here is a link to a more universal radar version, it is setup for Florida weather, but you can change the http addresses to what ever radar image you can find (including webcams)

    Weather Radar Lockscreen

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts