Browse Source

first commit

Ivan Mihov 1 year ago
commit
983c54e825
100 changed files with 988 additions and 0 deletions
  1. BIN
      .DS_Store
  2. 0
    0
      .theos/fakeroot
  3. 1
    0
      .theos/packages/com.sygex.WeatherWidget-1.1
  4. 22
    0
      Makefile
  5. 28
    0
      Resources/Info.plist
  6. 127
    0
      Resources/WeatherWidget.plist
  7. BIN
      Resources/WeatherWidget.png
  8. BIN
      Resources/WeatherWidget@2x.png
  9. BIN
      Resources/paypal.png
  10. BIN
      Resources/paypal@2x.png
  11. BIN
      Resources/sygex.png
  12. BIN
      Resources/sygex@2x.png
  13. 48
    0
      WeatherWidget.mm
  14. BIN
      _/.DS_Store
  15. 13
    0
      _/DEBIAN/control
  16. 7
    0
      _/DEBIAN/postinst
  17. 6
    0
      _/DEBIAN/preinst
  18. 28
    0
      _/Library/PreferenceBundles/WeatherWidget.bundle/Info.plist
  19. BIN
      _/Library/PreferenceBundles/WeatherWidget.bundle/WeatherWidget
  20. 127
    0
      _/Library/PreferenceBundles/WeatherWidget.bundle/WeatherWidget.plist
  21. BIN
      _/Library/PreferenceBundles/WeatherWidget.bundle/WeatherWidget.png
  22. BIN
      _/Library/PreferenceBundles/WeatherWidget.bundle/WeatherWidget@2x.png
  23. BIN
      _/Library/PreferenceBundles/WeatherWidget.bundle/paypal.png
  24. BIN
      _/Library/PreferenceBundles/WeatherWidget.bundle/paypal@2x.png
  25. BIN
      _/Library/PreferenceBundles/WeatherWidget.bundle/sygex.png
  26. BIN
      _/Library/PreferenceBundles/WeatherWidget.bundle/sygex@2x.png
  27. 10
    0
      _/Library/PreferenceLoader/Preferences/WeatherWidget.plist
  28. 571
    0
      _/Library/Themes/Weather Widget - sygex.theme/LockBackground.html
  29. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/0.png
  30. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/0_small.png
  31. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/1 (1).png
  32. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/1.png
  33. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/10.png
  34. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/10_small.png
  35. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/11 (1).png
  36. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/11.png
  37. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/11_small (1).png
  38. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/11_small.png
  39. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/12.png
  40. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/12_small.png
  41. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/13 (1).png
  42. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/13.png
  43. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/13_small.png
  44. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/14.png
  45. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/14_small.png
  46. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/15.png
  47. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/15_small.png
  48. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/16.png
  49. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/16_small.png
  50. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/17.png
  51. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/17_small.png
  52. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/18.png
  53. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/18_small.png
  54. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/19.png
  55. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/19_small.png
  56. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/1_small.png
  57. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/2 (1).png
  58. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/2.png
  59. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/20.png
  60. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/20_small.png
  61. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/21 (1).png
  62. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/21.png
  63. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/21_small.png
  64. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/22 (1).png
  65. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/22.png
  66. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/22_small.png
  67. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/23.png
  68. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/23_small.png
  69. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/24.png
  70. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/24_small.png
  71. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/25.png
  72. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/25_small.png
  73. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/26 (1).png
  74. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/26.png
  75. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/26_small.png
  76. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/27 (1).png
  77. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/27.png
  78. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/27_small.png
  79. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/28.png
  80. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/28_small.png
  81. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/29.png
  82. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/29_small.png
  83. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/2_small (1).png
  84. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/2_small.png
  85. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/3.png
  86. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/30.png
  87. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/30_small (1).png
  88. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/30_small.png
  89. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/31.png
  90. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/31_small.png
  91. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/32.png
  92. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/3200 (1).png
  93. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/3200.png
  94. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/3200_small (1).png
  95. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/3200_small.png
  96. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/32_small (1).png
  97. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/32_small.png
  98. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/33.png
  99. BIN
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/33_small.png
  100. 0
    0
      _/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/34.png

BIN
.DS_Store View File


+ 0
- 0
.theos/fakeroot View File


+ 1
- 0
.theos/packages/com.sygex.WeatherWidget-1.1 View File

@@ -0,0 +1 @@
1
+1.1-5

+ 22
- 0
Makefile View File

@@ -0,0 +1,22 @@
1
+#export ARCHS=armv7
2
+#export TARGET=iphone:latest:4.3
3
+
4
+GO_EASY_ON_ME = 1
5
+export THEOS_DEVICE_IP = localhost
6
+
7
+#SDKVERSION=5.1
8
+TARGET=iphone
9
+
10
+include theos/makefiles/common.mk
11
+
12
+BUNDLE_NAME = WeatherWidget
13
+WeatherWidget_FILES = WeatherWidget.mm
14
+WeatherWidget_INSTALL_PATH = /Library/PreferenceBundles
15
+WeatherWidget_FRAMEWORKS = UIKit
16
+WeatherWidget_PRIVATE_FRAMEWORKS = Preferences
17
+
18
+include theos/makefiles/bundle.mk
19
+
20
+internal-stage::
21
+	$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)
22
+	$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/WeatherWidget.plist$(ECHO_END)

+ 28
- 0
Resources/Info.plist View File

@@ -0,0 +1,28 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+	<key>CFBundleDevelopmentRegion</key>
6
+	<string>English</string>
7
+	<key>CFBundleExecutable</key>
8
+	<string>WeatherWidget</string>
9
+	<key>CFBundleIdentifier</key>
10
+	<string>us.sygex.weatherwidget</string>
11
+	<key>CFBundleInfoDictionaryVersion</key>
12
+	<string>6.0</string>
13
+	<key>CFBundlePackageType</key>
14
+	<string>BNDL</string>
15
+	<key>CFBundleShortVersionString</key>
16
+	<string>1.0.0</string>
17
+	<key>CFBundleSignature</key>
18
+	<string>????</string>
19
+	<key>CFBundleVersion</key>
20
+	<string>1.0</string>
21
+	<key>DTPlatformName</key>
22
+	<string>iphoneos</string>
23
+	<key>MinimumOSVersion</key>
24
+	<string>3.0</string>
25
+	<key>NSPrincipalClass</key>
26
+	<string>WeatherWidgetListController</string>
27
+</dict>
28
+</plist>

+ 127
- 0
Resources/WeatherWidget.plist View File

@@ -0,0 +1,127 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+	<key>items</key>
6
+	<array>
7
+		<dict>
8
+			<key>cell</key>
9
+			<string>PSGroupCell</string>
10
+			<key>footerText</key>
11
+			<string>Changing the walpaper is easy now. Just go to Settings > Wallpaper, set a lock-screen image, and respring.</string>
12
+		</dict>
13
+		<dict>
14
+			<key>cell</key>
15
+			<string>PSGroupCell</string>
16
+			<key>footerText</key>
17
+			<string>If you like this widget, please consider donation to the developer.</string>
18
+		</dict>
19
+		<dict>
20
+			<key>cell</key>
21
+			<string>PSEditTextCell</string>
22
+			<key>default</key>
23
+			<string></string>
24
+			<key>placeholder</key>
25
+			<string>95014</string>
26
+			<key>defaults</key>
27
+			<string>us.sygex.weatherwidget</string>
28
+			<key>PostNotification</key>
29
+			<string>us.sygex.weatherwidget.changed</string>
30
+			<key>key</key>
31
+			<string>locale</string>
32
+			<key>label</key>
33
+			<string>Location ZIP:</string>
34
+		</dict>
35
+		<dict>
36
+            <key>cell</key>
37
+            <string>PSEditTextCell</string>
38
+            <key>default</key>
39
+            <string></string>
40
+            <key>placeholder</key>
41
+            <string>60</string>
42
+            <key>defaults</key>
43
+            <string>us.sygex.weatherwidget</string>
44
+            <key>PostNotification</key>
45
+            <string>us.sygex.weatherwidget.changed</string>
46
+            <key>key</key>
47
+            <string>updateInterval</string>
48
+            <key>label</key>
49
+            <string>Update Interval(min):</string>
50
+		</dict> 
51
+		<dict>
52
+			<key>cell</key>
53
+			<string>PSSwitchCell</string>
54
+			<key>default</key>
55
+			<false/>
56
+			<key>defaults</key>
57
+			<string>us.sygex.weatherwidget</string>
58
+			<key>key</key>
59
+			<string>isCelsius</string>
60
+			<key>label</key>
61
+			<string>Celsius</string>
62
+		</dict>
63
+		<dict>
64
+			<key>cell</key>
65
+			<string>PSSwitchCell</string>
66
+			<key>default</key>
67
+			<false/>
68
+			<key>defaults</key>
69
+			<string>us.sygex.weatherwidget</string>
70
+			<key>key</key>
71
+			<string>useRealFeel</string>
72
+			<key>label</key>
73
+			<string>Use Real Feel</string>
74
+		</dict>
75
+		<dict>
76
+			<key>cell</key>
77
+			<string>PSButtonCell</string>
78
+			<key>label</key>
79
+			<string>Update Settings</string>
80
+			<key>action</key>
81
+			<string>updatePressed:</string>
82
+		</dict>
83
+		<dict>
84
+			<key>cell</key>
85
+			<string>PSButtonCell</string>
86
+			<key>label</key>
87
+			<string>Respring</string>
88
+			<key>action</key>
89
+			<string>respringPressed:</string>
90
+		</dict>
91
+		<dict>
92
+			<key>cell</key>
93
+			<string>PSGroupCell</string>
94
+			<key>footerText</key>
95
+			<string></string>
96
+		</dict>
97
+		<dict>
98
+			<key>cell</key>
99
+			<string>PSButtonCell</string>
100
+			<key>label</key>
101
+			<string>Donate</string>
102
+			<key>action</key>
103
+			<string>donatePressed:</string>
104
+			<key>icon</key>
105
+			<string>paypal.png</string>
106
+		</dict>
107
+		<dict>
108
+			<key>cell</key>
109
+			<string>PSButtonCell</string>
110
+			<key>label</key>
111
+			<string>Contact</string>
112
+			<key>action</key>
113
+			<string>contactPressed:</string>
114
+			<key>icon</key>
115
+			<string>sygex.png</string>
116
+		</dict>
117
+		<dict>
118
+			<key>cell</key>
119
+			<string>PSGroupCell</string>
120
+			<key>footerText</key>
121
+			<string>Weather Widget by sygex (@sygex).</string>
122
+		</dict>
123
+	</array>
124
+	<key>title</key>
125
+	<string>Weather Widget</string>
126
+</dict>
127
+</plist>

BIN
Resources/WeatherWidget.png View File


BIN
Resources/WeatherWidget@2x.png View File


BIN
Resources/paypal.png View File


BIN
Resources/paypal@2x.png View File


BIN
Resources/sygex.png View File


BIN
Resources/sygex@2x.png View File


+ 48
- 0
WeatherWidget.mm View File

@@ -0,0 +1,48 @@
1
+#import <UIKit/UIKit.h>
2
+
3
+@interface PSListController : UIViewController {
4
+    id _specifiers;
5
+}
6
+- (id)loadSpecifiersFromPlistName:(NSString *)name target:(id)target;
7
+@end
8
+
9
+@interface WeatherWidgetListController : PSListController
10
+@end
11
+
12
+@implementation WeatherWidgetListController
13
+- (id)specifiers {
14
+	if(_specifiers == nil) {
15
+		_specifiers = [[self loadSpecifiersFromPlistName:@"WeatherWidget" target:self] retain];
16
+	}
17
+	return _specifiers;
18
+}
19
+
20
+- (void) updatePressed: (NSTimer *) timer
21
+{
22
+        NSString *cmd = @"updateWeather &";
23
+        system([cmd UTF8String]);
24
+		UIAlertView *alert = [[UIAlertView alloc]
25
+                        initWithTitle: @"Settings Updated"
26
+                        message: @"The new settings were applied. Please, respiring to see the changes."
27
+                        delegate: nil
28
+                        cancelButtonTitle:@"OK"
29
+                        otherButtonTitles:nil];
30
+        [alert show];
31
+        [alert release];
32
+}
33
+
34
+- (void) respringPressed: (NSTimer *) timer
35
+{
36
+    NSString *cmd = @"killall SpringBoard";
37
+    system([cmd UTF8String]);
38
+}
39
+
40
+- (void)contactPressed:(id)specifier {
41
+    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.sygex.us/"]];
42
+}
43
+
44
+- (void)donatePressed:(id)specifier {
45
+    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=PUZEK7XWT8YRW&lc=US&item_name=sygex%2eus&item_number=Weather%20Widget&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted"]];
46
+}
47
+
48
+@end

BIN
_/.DS_Store View File


+ 13
- 0
_/DEBIAN/control View File

@@ -0,0 +1,13 @@
1
+Package: com.sygex.WeatherWidget
2
+Name: Weather Widget
3
+Version: 1.1-5
4
+Architecture: iphoneos-arm
5
+Depends: com.darkweaver.wallpaperjpegifier, grep, sed, com.ericasadun.utilities,winterboard
6
+Description: Small weather widget for your lock screen.
7
+Homepage: http://sygex.us
8
+Maintainer: sygex
9
+Author: sygex
10
+Depiction: http://sygex.us/cydia/depiction/weatherwidget/weatherwidget.php 
11
+Sponsor: http://sygex.us 
12
+Section: Themes
13
+Installed-Size: 5064

+ 7
- 0
_/DEBIAN/postinst View File

@@ -0,0 +1,7 @@
1
+#!/bin/bash
2
+
3
+#Change permissions
4
+chmod 777 /usr/sbin/updateWeather
5
+chmod 777 /Library/Themes/Weather\ Widget\ -\ sygex.theme/configureMe.js
6
+chown mobile:mobile /var/mobile/Library/Preferences/us.sygex.weatherwidget.plist
7
+chmod 600 /var/mobile/Library/Preferences/us.sygex.weatherwidget.plist

+ 6
- 0
_/DEBIAN/preinst View File

@@ -0,0 +1,6 @@
1
+#!/bin/bash
2
+
3
+#Remove conflicts
4
+rm -rf /var/mobile/Library/Preferences/us.sygex.weatherwidget.plist
5
+rm -rf /var/mobile/Library/SpringBoard/Converted-LockBackground.jpg
6
+rm -rf /Library/Themes/Weather\ Widget\ -\ sygex.theme

+ 28
- 0
_/Library/PreferenceBundles/WeatherWidget.bundle/Info.plist View File

@@ -0,0 +1,28 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+	<key>CFBundleDevelopmentRegion</key>
6
+	<string>English</string>
7
+	<key>CFBundleExecutable</key>
8
+	<string>WeatherWidget</string>
9
+	<key>CFBundleIdentifier</key>
10
+	<string>us.sygex.weatherwidget</string>
11
+	<key>CFBundleInfoDictionaryVersion</key>
12
+	<string>6.0</string>
13
+	<key>CFBundlePackageType</key>
14
+	<string>BNDL</string>
15
+	<key>CFBundleShortVersionString</key>
16
+	<string>1.0.0</string>
17
+	<key>CFBundleSignature</key>
18
+	<string>????</string>
19
+	<key>CFBundleVersion</key>
20
+	<string>1.0</string>
21
+	<key>DTPlatformName</key>
22
+	<string>iphoneos</string>
23
+	<key>MinimumOSVersion</key>
24
+	<string>3.0</string>
25
+	<key>NSPrincipalClass</key>
26
+	<string>WeatherWidgetListController</string>
27
+</dict>
28
+</plist>

BIN
_/Library/PreferenceBundles/WeatherWidget.bundle/WeatherWidget View File


+ 127
- 0
_/Library/PreferenceBundles/WeatherWidget.bundle/WeatherWidget.plist View File

@@ -0,0 +1,127 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+<plist version="1.0">
4
+<dict>
5
+	<key>items</key>
6
+	<array>
7
+		<dict>
8
+			<key>cell</key>
9
+			<string>PSGroupCell</string>
10
+			<key>footerText</key>
11
+			<string>Changing the walpaper is easy now. Just go to Settings > Wallpaper, set a lock-screen image, and respring.</string>
12
+		</dict>
13
+		<dict>
14
+			<key>cell</key>
15
+			<string>PSGroupCell</string>
16
+			<key>footerText</key>
17
+			<string>If you like this widget, please consider donation to the developer.</string>
18
+		</dict>
19
+		<dict>
20
+			<key>cell</key>
21
+			<string>PSEditTextCell</string>
22
+			<key>default</key>
23
+			<string></string>
24
+			<key>placeholder</key>
25
+			<string>95014</string>
26
+			<key>defaults</key>
27
+			<string>us.sygex.weatherwidget</string>
28
+			<key>PostNotification</key>
29
+			<string>us.sygex.weatherwidget.changed</string>
30
+			<key>key</key>
31
+			<string>locale</string>
32
+			<key>label</key>
33
+			<string>Location ZIP:</string>
34
+		</dict>
35
+		<dict>
36
+            <key>cell</key>
37
+            <string>PSEditTextCell</string>
38
+            <key>default</key>
39
+            <string></string>
40
+            <key>placeholder</key>
41
+            <string>60</string>
42
+            <key>defaults</key>
43
+            <string>us.sygex.weatherwidget</string>
44
+            <key>PostNotification</key>
45
+            <string>us.sygex.weatherwidget.changed</string>
46
+            <key>key</key>
47
+            <string>updateInterval</string>
48
+            <key>label</key>
49
+            <string>Update Interval(min):</string>
50
+		</dict> 
51
+		<dict>
52
+			<key>cell</key>
53
+			<string>PSSwitchCell</string>
54
+			<key>default</key>
55
+			<false/>
56
+			<key>defaults</key>
57
+			<string>us.sygex.weatherwidget</string>
58
+			<key>key</key>
59
+			<string>isCelsius</string>
60
+			<key>label</key>
61
+			<string>Celsius</string>
62
+		</dict>
63
+		<dict>
64
+			<key>cell</key>
65
+			<string>PSSwitchCell</string>
66
+			<key>default</key>
67
+			<false/>
68
+			<key>defaults</key>
69
+			<string>us.sygex.weatherwidget</string>
70
+			<key>key</key>
71
+			<string>useRealFeel</string>
72
+			<key>label</key>
73
+			<string>Use Real Feel</string>
74
+		</dict>
75
+		<dict>
76
+			<key>cell</key>
77
+			<string>PSButtonCell</string>
78
+			<key>label</key>
79
+			<string>Update Settings</string>
80
+			<key>action</key>
81
+			<string>updatePressed:</string>
82
+		</dict>
83
+		<dict>
84
+			<key>cell</key>
85
+			<string>PSButtonCell</string>
86
+			<key>label</key>
87
+			<string>Respring</string>
88
+			<key>action</key>
89
+			<string>respringPressed:</string>
90
+		</dict>
91
+		<dict>
92
+			<key>cell</key>
93
+			<string>PSGroupCell</string>
94
+			<key>footerText</key>
95
+			<string></string>
96
+		</dict>
97
+		<dict>
98
+			<key>cell</key>
99
+			<string>PSButtonCell</string>
100
+			<key>label</key>
101
+			<string>Donate</string>
102
+			<key>action</key>
103
+			<string>donatePressed:</string>
104
+			<key>icon</key>
105
+			<string>paypal.png</string>
106
+		</dict>
107
+		<dict>
108
+			<key>cell</key>
109
+			<string>PSButtonCell</string>
110
+			<key>label</key>
111
+			<string>Contact</string>
112
+			<key>action</key>
113
+			<string>contactPressed:</string>
114
+			<key>icon</key>
115
+			<string>sygex.png</string>
116
+		</dict>
117
+		<dict>
118
+			<key>cell</key>
119
+			<string>PSGroupCell</string>
120
+			<key>footerText</key>
121
+			<string>Weather Widget by sygex (@sygex).</string>
122
+		</dict>
123
+	</array>
124
+	<key>title</key>
125
+	<string>Weather Widget</string>
126
+</dict>
127
+</plist>

BIN
_/Library/PreferenceBundles/WeatherWidget.bundle/WeatherWidget.png View File


BIN
_/Library/PreferenceBundles/WeatherWidget.bundle/WeatherWidget@2x.png View File


BIN
_/Library/PreferenceBundles/WeatherWidget.bundle/paypal.png View File


BIN
_/Library/PreferenceBundles/WeatherWidget.bundle/paypal@2x.png View File


BIN
_/Library/PreferenceBundles/WeatherWidget.bundle/sygex.png View File


BIN
_/Library/PreferenceBundles/WeatherWidget.bundle/sygex@2x.png View File


+ 10
- 0
_/Library/PreferenceLoader/Preferences/WeatherWidget.plist View File

@@ -0,0 +1,10 @@
1
+{
2
+    entry = {
3
+	bundle = WeatherWidget;
4
+	cell = PSLinkCell;
5
+	detail = WeatherWidgetListController;
6
+	icon = WeatherWidget.png;
7
+	isController = 1;
8
+	label = WeatherWidget;
9
+    };
10
+}

+ 571
- 0
_/Library/Themes/Weather Widget - sygex.theme/LockBackground.html View File

@@ -0,0 +1,571 @@
1
+<html>
2
+
3
+<head><title>Weather</title>
4
+<!-- This version moddified by sygex -->
5
+<style>
6
+
7
+body {
8
+	background-color: none;	
9
+	margin: 0;	
10
+	padding: 10px 0 0 0;	
11
+	height: 960px;	
12
+	width: 640px;
13
+}
14
+
15
+TD#dateString
16
+{	font-family: Helvetica;	
17
+	font-weight: bold; 	
18
+	color: #d1d1d1; 	
19
+	text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.7);		
20
+	/*text-shadow: #FFFFFF 0px 1px 0px;*/	
21
+	font-size: 11px;	
22
+	text-align:center;
23
+}
24
+
25
+TABLE#CalendarTable
26
+{	font-family: Helvetica;	
27
+	font-weight: bold; 	
28
+	color: #d1d1d1; 
29
+	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.7);	
30
+	/*text-shadow: #FFFFFF 0px 1px 0px;*/	
31
+	font-size: 11px;	
32
+	text-align:center;	
33
+	margin-top:6px;
34
+
35
+}
36
+
37
+SPAN#calendar 
38
+{	font-family: Helvetica;	
39
+	font-weight: bold;	
40
+	color: #FFFFFF; 	
41
+	text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.7);		
42
+	/*text-shadow: #FFFFFF 0px 1px 0px;*/	
43
+	font-size: 14px;	
44
+	position:absolute;
45
+	top:305px;
46
+	text-align:right;
47
+	width:300px;
48
+}
49
+
50
+</style>
51
+<script type="text/javascript" src="configureMe.js"></script>	
52
+<base href="Private/"/>
53
+<script type="text/javascript">
54
+var this_weekday_name_array = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat")
55
+var this_month_name_array = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")	//predefine month names
56
+var this_date_timestamp = new Date()	
57
+var this_weekday = this_date_timestamp.getDay()    
58
+var this_date = this_date_timestamp.getDate()	 
59
+var this_month = this_date_timestamp.getMonth()    
60
+var this_year = this_date_timestamp.getYear()	 
61
+
62
+if (this_year < 1000)
63
+    this_year+= 1900;
64
+if (this_year==101)
65
+    this_year=2001;	   
66
+
67
+var this_date_string = this_weekday_name_array[this_weekday] + " " + this_date + " " + this_month_name_array[this_month]//concat long date string
68
+
69
+function init ( )
70
+{
71
+  timeDisplay = document.createTextNode ( "" );
72
+  document.getElementById("clock").appendChild ( timeDisplay );
73
+}
74
+
75
+function updateClock ( )
76
+{
77
+  var TwentyFourHourClock = false  
78
+  var currentTime = new Date ( );
79
+  var currentHours = currentTime.getHours ( );
80
+  var currentMinutes = currentTime.getMinutes ( );
81
+  var currentSeconds = currentTime.getSeconds ( );
82
+  // Pad the minutes and seconds with leading zeros, if required
83
+  currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
84
+  currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
85
+
86
+if (TwentyFourHourClock == false){
87
+  var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM"
88
+  currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
89
+  currentHours = ( currentHours == 0 ) ? 12 : currentHours;
90
+if (timeOfDay == "PM"){
91
+document.getElementById("ampm").src="pm.png"
92
+}
93
+else
94
+{
95
+document.getElementById("ampm").src="am.png"
96
+}
97
+}
98
+  // Compose the string for display
99
+  var currentTimeString = currentHours + ":" + currentMinutes;
100
+
101
+  // Update the time display
102
+  currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours
103
+}
104
+
105
+function init2 ( )
106
+{
107
+  timeDisplay = document.createTextNode ( "" );
108
+  document.getElementById("ampm").appendChild ( timeDisplay );
109
+}
110
+
111
+function amPm ( )
112
+{
113
+  var currentTime = new Date ( );
114
+  var currentHours = currentTime.getHours ( );
115
+
116
+  // Choose either "AM" or "PM" as appropriate
117
+  var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
118
+
119
+  // Convert the hours component to 12-hour format if needed
120
+  currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
121
+
122
+  // Convert an hours component of "0" to "12"
123
+  currentHours = ( currentHours == 0 ) ? 12 : currentHours;
124
+
125
+  // Compose the string for display
126
+  var currentTimeString = timeOfDay;
127
+
128
+  // Update the time display
129
+  document.getElementById("ampm").firstChild.nodeValue = currentTimeString;
130
+}
131
+
132
+function init3 ( )
133
+{
134
+  timeDisplay = document.createTextNode ( "" );
135
+  document.getElementById("calendar").appendChild ( timeDisplay );
136
+}
137
+
138
+function daysInMonth(iMonth, iYear)
139
+{
140
+	return 32 - new Date(iYear, iMonth, 32).getDate();
141
+}
142
+
143
+function zeroPad(num,count)
144
+{
145
+var numZeropad = num + '';
146
+while(numZeropad.length < count) {
147
+numZeropad = "0" + numZeropad;
148
+}
149
+return numZeropad;
150
+}
151
+
152
+function calendarDate ( )
153
+{
154
+var this_weekday_name_array = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat")
155
+var this_month_name_array = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")	  //predefine month names
156
+  var this_date_timestamp = new Date()	  
157
+  var this_weekday = this_date_timestamp.getDay()    
158
+  var this_date = this_date_timestamp.getDate()  
159
+  var this_month = this_date_timestamp.getMonth()    
160
+Current_Month = this_month
161
+document.getElementById("calendar").firstChild.nodeValue = this_weekday_name_array[this_weekday] + ", " + this_month_name_array[this_month] + " " + this_date 
162
+}
163
+</script>
164
+<script type="text/javascript" src="translation.js"></script>
165
+<script type="text/javascript">
166
+var MiniIcons =
167
+[
168
+	"tstorm3",		//0	tornado
169
+	"tstorm3",		//1	tropical storm
170
+	"tstorm3",		//2	hurricane
171
+	"tstorm3",		//3	severe thunderstorms
172
+	"tstorm3",		//4	thunderstorms
173
+	"sleet",		//5	mixed rain and snow
174
+	"sleet",		//6	mixed rain and sleet
175
+	"sleet",		//7	mixed snow and sleet
176
+	"sleet",		//8	freezing drizzle
177
+	"light_rain",		//9	drizzle
178
+	"sleet",		//10	freezing rain
179
+	"shower3",		//11	showers
180
+	"shower3",		//12	showers
181
+	"snow1",		//13	snow flurries
182
+	"snow2",		//14	light snow showers
183
+	"snow4",		//15	blowing snow
184
+	"snow4",		//16	snow
185
+	"hail", 	//17	hail
186
+	"sleet",		//18	sleet
187
+	"mist", 	//19	dust
188
+	"fog",		//20	foggy
189
+	"fog",		//21	haze
190
+	"fog",		//22	smoky
191
+	"windy",		//23	blustery
192
+	"windy",		//24	windy
193
+	"windy",		//25	cold
194
+	"overcast",		//26	cloudy
195
+	"cloudy4_night",		//27	mostly cloudy (night)
196
+	"cloudy4",		//28	mostly cloudy (day)
197
+	"cloudy1_night",		//29	partly cloudy (night)
198
+	"cloudy1",		//30	partly cloudy (day)
199
+	"sunny_night",		//31	clear (night)
200
+	"sunny",		//32	sunny
201
+	"fair_night",		//33	fair (night)
202
+	"fair", 	//34	fair (day)
203
+	"hail", 	//35	mixed rain and hail
204
+	"hot",		//36	hot
205
+	"tstorm1",		//37	isolated thunderstorms
206
+	"tstorm2",		//38	scattered thunderstorms
207
+	"tstorm2",		//39	scattered thunderstorms
208
+	"shower1",		//40	scattered showers
209
+	"snow5",		//41	heavy snow
210
+	"snow3",		//42	scattered snow showers
211
+	"snow5",		//43	heavy snow
212
+	"cloudy1",		//44	partly cloudy
213
+	"tstorm3",		//45	thundershowers
214
+	"snow2",		//46	snow showers
215
+	"tstorm1",		//47	isolated thundershowers
216
+	"dunno",		//3200	not available
217
+]
218
+
219
+function constructError (string)
220
+{
221
+	return {error:true, errorString:string};
222
+}
223
+
224
+function findChild (element, nodeName)
225
+{
226
+	var child;
227
+	for (child = element.firstChild; child != null; child = child.nextSibling)
228
+	{
229
+		if (child.nodeName == nodeName)
230
+			return child;
231
+	}
232
+	return null;
233
+}
234
+
235
+function fetchWeatherData (callback, zip)
236
+{
237
+	if (isCelsius == false){
238
+	varUnit = 'f'
239
+	}
240
+	else
241
+	{
242
+	varUnit = 'c'
243
+	}
244
+
245
+url="http://xml.weather.yahoo.com/forecastrss/" //u=Farenheit, because accuWeather sucks
246
+	var xml_request = new XMLHttpRequest();
247
+	xml_request.onload = function(e) {xml_loaded(e, xml_request, callback);}
248
+	xml_request.overrideMimeType("text/xml");
249
+	xml_request.open("GET", url+zip+'_'+varUnit+'.xml');
250
+	xml_request.setRequestHeader("Cache-Control", "no-cache");
251
+	xml_request.send(null); 
252
+	return xml_request;
253
+}
254
+
255
+var requestCopy;
256
+
257
+function xml_loaded (event, request, callback)
258
+{
259
+	if (request.responseXML)
260
+	{
261
+		requestCopy = request;
262
+		var obj = {error:false, errorString:null};
263
+		var effectiveRoot = findChild(findChild(request.responseXML, "rss"), "channel");
264
+		obj.city = findChild(effectiveRoot, "yweather:location").getAttribute("city");
265
+		obj.realFeel = findChild(effectiveRoot, "yweather:wind").getAttribute("chill");//Only accounts for windChill
266
+		
267
+		conditionTag = findChild(findChild(effectiveRoot, "item"), "yweather:condition");
268
+		obj.temp = conditionTag.getAttribute("temp");
269
+		obj.icon = conditionTag.getAttribute("code");
270
+		obj.description = conditionTag.getAttribute("text"); 
271
+		
272
+		obj.sunset = request.responseXML.getElementsByTagName("astronomy")[0].getAttribute("sunset");
273
+		obj.sunset = obj.sunset.split(' ')[0]
274
+		obj.sunsethr = obj.sunset.split(':')[0]*1+12
275
+		obj.sunsetmin = obj.sunset.split(':')[1]
276
+		
277
+		if ( request.responseXML.getElementsByTagName("forecast")[0]){
278
+			obj.Today = request.responseXML.getElementsByTagName("forecast")[0].getAttribute("day");
279
+			obj.TodayHi = request.responseXML.getElementsByTagName("forecast")[0].getAttribute("high");
280
+			obj.TodayLo = request.responseXML.getElementsByTagName("forecast")[0].getAttribute("low");
281
+			obj.TodayCode = request.responseXML.getElementsByTagName("forecast")[0].getAttribute("code");
282
+		}	
283
+
284
+		if ( request.responseXML.getElementsByTagName("forecast")[1]){
285
+		obj.Day1 = request.responseXML.getElementsByTagName("forecast")[1].getAttribute("day");
286
+		obj.Day1Hi = request.responseXML.getElementsByTagName("forecast")[1].getAttribute("high");
287
+		obj.Day1Lo = request.responseXML.getElementsByTagName("forecast")[1].getAttribute("low");
288
+		obj.Day1Code = request.responseXML.getElementsByTagName("forecast")[1].getAttribute("code");
289
+		}
290
+		
291
+		if ( request.responseXML.getElementsByTagName("forecast")[2]){
292
+		obj.Day2 = request.responseXML.getElementsByTagName("forecast")[2].getAttribute("day");
293
+		obj.Day2Hi = request.responseXML.getElementsByTagName("forecast")[2].getAttribute("high");
294
+		obj.Day2Lo = request.responseXML.getElementsByTagName("forecast")[2].getAttribute("low");
295
+		obj.Day2Code = request.responseXML.getElementsByTagName("forecast")[2].getAttribute("code");
296
+		}
297
+		
298
+		if ( request.responseXML.getElementsByTagName("forecast")[3]){
299
+		obj.Day3 = request.responseXML.getElementsByTagName("forecast")[3].getAttribute("day");
300
+		obj.Day3Hi = request.responseXML.getElementsByTagName("forecast")[3].getAttribute("high");
301
+		obj.Day3Lo = request.responseXML.getElementsByTagName("forecast")[3].getAttribute("low");
302
+		obj.Day3Code = request.responseXML.getElementsByTagName("forecast")[3].getAttribute("code");
303
+		}
304
+		
305
+		if ( request.responseXML.getElementsByTagName("forecast")[4]){
306
+		obj.Day4 = request.responseXML.getElementsByTagName("forecast")[4].getAttribute("day");
307
+		obj.Day4Hi = request.responseXML.getElementsByTagName("forecast")[4].getAttribute("high");
308
+		obj.Day4Lo = request.responseXML.getElementsByTagName("forecast")[4].getAttribute("low");
309
+		obj.Day4Code = request.responseXML.getElementsByTagName("forecast")[4].getAttribute("code");
310
+		}
311
+		
312
+		forecastTag = findChild(findChild(effectiveRoot, "item"), "yweather:forecast");
313
+		callback (obj); 
314
+	}else{
315
+		callback ({error:true, errorString:"XML request failed. no responseXML"});
316
+	}
317
+}
318
+
319
+function validateWeatherLocation (location, callback)
320
+{
321
+	var obj = {error:false, errorString:null, cities: new Array};
322
+	obj.cities[0] = {zip: location}; //Not very clever, are we?
323
+	callback (obj);
324
+}
325
+
326
+var LangTranslate = English // or Italian
327
+var stylesheet = 'myopiaAlt' //'originalBubble'|'myopia'|'iconOnly'|'split'
328
+var iconSet = "HTC" //'klear'|'tango'|null (null makes iconSet = stylesheet)
329
+var iconExt = ".png" //'.png'|.'gif' etc.
330
+var source = 'yahooWeather' //'appleAccuweatherStolen'|'yahooWeather'
331
+</script>
332
+
333
+<script type="text/javascript">
334
+var postal;
335
+
336
+if(iconSet == null || iconSet == 'null'){var iconSet = stylesheet;}
337
+
338
+var headID = document.getElementsByTagName("head")[0];	       
339
+var styleNode = document.createElement('link');
340
+styleNode.type = 'text/css';
341
+styleNode.rel = 'stylesheet';
342
+styleNode.href = 'Stylesheets/'+stylesheet+'.css';
343
+headID.appendChild(styleNode);
344
+
345
+var scriptNode = document.createElement('script');
346
+scriptNode.type = 'text/javascript';
347
+scriptNode.src = 'Sources/'+source+'.js';
348
+headID.appendChild(scriptNode);
349
+
350
+function onLoad(){
351
+	//document.getElementById("weatherIcon").src="Icon Sets/"+iconSet+"/"+"dunno"+iconExt;
352
+	validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal)
353
+	setInterval('fetchWeatherData(dealWithWeather,postal)', 1000*60*updateInterval);
354
+}
355
+
356
+function setPostal(obj){
357
+	if (obj.error == false){
358
+		if(obj.cities.length > 0){
359
+			postal = escape(obj.cities[0].zip).replace(/^%u/g, "%")
360
+			fetchWeatherData(dealWithWeather,postal);
361
+		}else{
362
+			document.getElementById("city").innerText="Not Found";
363
+		}
364
+	}else{
365
+		document.getElementById("city").innerText=obj.errorString;	
366
+	}
367
+}
368
+
369
+function dealWithWeather(obj){
370
+	if (obj.error == false){
371
+		document.getElementById("city").innerText=obj.city.substring(0,15);
372
+		
373
+		if (LangTranslate == English)
374
+		{
375
+		document.getElementById("desc").innerText=obj.description; //+" ("+obj.icon+")";
376
+		}
377
+		else
378
+		{
379
+		document.getElementById("desc").innerText = LangTranslate[obj.icon*1];		}
380
+		if(useRealFeel == true){
381
+			tempValue = obj.realFeel;
382
+		}else{
383
+			tempValue = obj.temp;
384
+		}
385
+
386
+		var currentTime = new Date ( );
387
+		var currentHours = currentTime.getHours ( );
388
+		var currentMinutes = currentTime.getMinutes ( );
389
+		if(obj.sunsethr < currentHours){
390
+		obj.TOD = "Tonight"
391
+		}
392
+		else if(obj.sunsethr < currentHours)
393
+		{
394
+		obj.TOD = "Tonight"
395
+		}
396
+		else if(currentHours < 2)
397
+		{
398
+		obj.TOD = "Tonight"
399
+		}
400
+		else
401
+		{
402
+		obj.TOD = "Today"
403
+		}
404
+
405
+		if (isCelsius == true) {
406
+			document.getElementById("temp").innerHTML=tempValue+ "&#176; C";
407
+		} else {
408
+			document.getElementById("temp").innerHTML=tempValue+ "&#176; F";
409
+		}
410
+		document.getElementById("weatherIcon").src="Icon Sets/"+iconSet+"/"+obj.icon+iconExt;	
411
+		
412
+		if ( requestCopy.responseXML.getElementsByTagName("forecast")[0]){
413
+		document.getElementById("Today").innerHTML=ForecastDayNames(obj.TOD);
414
+		document.getElementById("TodayIcon").src="Icon Sets/"+iconSet+"/"+obj.TodayCode+'_small'+iconExt;
415
+		document.getElementById("TodayHiLo").innerHTML=obj.TodayHi+ "&#176; / <font color=#a8a8a8>"+obj.TodayLo+ "&#176;</font>";
416
+		}
417
+		
418
+		if ( requestCopy.responseXML.getElementsByTagName("forecast")[1]){
419
+		document.getElementById("Day1").innerHTML=ForecastDayNames(obj.Day1);
420
+		document.getElementById("Day1Icon").src="Icon Sets/"+iconSet+"/"+obj.Day1Code+'_small'+iconExt;
421
+		document.getElementById("Day1HiLo").innerHTML=obj.Day1Hi+ "&#176; / <font color=#a8a8a8>"+obj.Day1Lo+ "&#176;</font>";
422
+		}
423
+		
424
+		if ( requestCopy.responseXML.getElementsByTagName("forecast")[2]){		
425
+		document.getElementById("Day2").innerHTML=ForecastDayNames(obj.Day2);
426
+		document.getElementById("Day2Icon").src="Icon Sets/"+iconSet+"/"+obj.Day2Code+'_small'+iconExt;
427
+		document.getElementById("Day2HiLo").innerHTML=obj.Day2Hi+ "&#176; / <font color=#a8a8a8>"+obj.Day2Lo+ "&#176;</font>";
428
+		}
429
+		
430
+		if ( requestCopy.responseXML.getElementsByTagName("forecast")[3]){
431
+		document.getElementById("Day3").innerHTML=ForecastDayNames(obj.Day3);
432
+		document.getElementById("Day3Icon").src="Icon Sets/"+iconSet+"/"+obj.Day3Code+'_small'+iconExt;
433
+		document.getElementById("Day3HiLo").innerHTML=obj.Day3Hi+ "&#176; / <font color=#a8a8a8>"+obj.Day3Lo+ "&#176;</font>";
434
+		}
435
+		
436
+		if ( requestCopy.responseXML.getElementsByTagName("forecast")[4]){
437
+		document.getElementById("Day4").innerHTML=ForecastDayNames(obj.Day4);
438
+		document.getElementById("Day4Icon").src="Icon Sets/"+iconSet+"/"+obj.Day4Code+'_small'+iconExt;
439
+		document.getElementById("Day4HiLo").innerHTML=obj.Day4Hi+ "&#176; / <font color=#a8a8a8>"+obj.Day4Lo+ "&#176;</font>";
440
+		}
441
+		
442
+  var currentTime = new Date ( );
443
+  var currentHours = currentTime.getHours ( );
444
+  var currentMinutes = currentTime.getMinutes ( );
445
+  var currentSeconds = currentTime.getSeconds ( );
446
+
447
+  // Pad the minutes and seconds with leading zeros, if required
448
+  currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
449
+  currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
450
+
451
+  // Choose either "AM" or "PM" as appropriate
452
+  var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
453
+
454
+  // Convert the hours component to 12-hour format if needed
455
+  currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
456
+
457
+  // Convert an hours component of "0" to "12"
458
+  currentHours = ( currentHours == 0 ) ? 12 : currentHours;
459
+
460
+  // Compose the string for display
461
+  var currentTimeString = currentHours + ":" + currentMinutes;	    
462
+	var Conditions =	["thunderstorm",
463
+				"rain",
464
+				"rain",
465
+				"thunderstorm",
466
+				"thunderstorm",
467
+				"sleet",
468
+				"sleet",
469
+				"sleet",
470
+				"sleet",
471
+				"showers_cloud",
472
+				"sleet",
473
+				"showers_cloud",
474
+				"showers_cloud",
475
+				"snow",
476
+				"snow",
477
+				"snow",
478
+				"snow",
479
+				"hail",
480
+				"sleet",
481
+				"fog",
482
+				"fog",
483
+				"Haze",
484
+				"fog",
485
+				"wind",
486
+				"wind",
487
+				"frost",
488
+				"cloud",
489
+				"partlymoon",
490
+				"partlysunny",
491
+				"partlymoon",
492
+				"partlysunny",
493
+				"moon",
494
+				"sun",
495
+				"partlymoon",
496
+				"partlysunny",
497
+				"sleet",
498
+				"sun",
499
+				"thunderstorm",
500
+				"thunderstorm",
501
+				"thunderstorm",
502
+				"thunderstorm",
503
+				"snow",
504
+				"snow",
505
+				"snow",
506
+				"cloud",
507
+				"thunderstorm",
508
+				"snow",
509
+				"thunderstorm",
510
+				"blank"];
511
+if (showWeatherAni == true){
512
+		document.getElementById("animationFrame").src="Animations/"+Conditions[obj.icon]+".html";
513
+		//debugging weather codes / animations
514
+		//document.getElementById("desc").innerText=obj.description +" ("+obj.icon+")" + " / ("+Conditions[obj.icon] +")"
515
+}
516
+}
517
+}
518
+</script>
519
+</head>
520
+
521
+<body onLoad="onLoad()" style="margin-left: 0; background-color:none">
522
+<div id="bg_el" class="transparent_bg"></div>
523
+<script type="text/javascript">
524
+document.write("<img name=\"mainbk\" id=\"mainbk\" src=\"/var/mobile/Library/SpringBoard/Converted-LockBackground.jpg\" height=\"480\" width=\"320\" style=\"position: absolute; top: 0px; left: 0px; z-index:-1;\">");	
525
+</script>
526
+
527
+<span id="calendar" align=right>
528
+	<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script>
529
+	</span>
530
+    <span id="clock">
531
+	<script language="JavaScript">updateClock(); setInterval('updateClock()', 1000 )</script></span> <span id="ampm">
532
+    </span>
533
+<div id="WeatherContainer">
534
+<div id="TextContainer">
535
+<img id="weatherIcon" src="" height=162 width=171 style="position:absolute; top:120px;left:74px;z-index:1;">
536
+<a id="city"></a><a id="desc"></a><a id="temp"></a>
537
+
538
+<script type="text/javascript">
539
+	document.write("<img src=\"forecast-bg.png\" style=\"position: absolute; z-index:-1;top:328; left: -20px;\" width=\"360\">");
540
+</script>
541
+
542
+<table cellpadding=0 cellspacing=0 style="position:absolute; top:316px; left:20px;z-index:1" width="280" align=center>
543
+	<tr>
544
+		<td align=center><img id="TodayIcon" height=50 src=""/></td>
545
+		<td align=center><img id="Day1Icon" height=50 src=""/></td>
546
+		<td align=center><img id="Day2Icon" height=50 src=""/></td>
547
+		<td align=center><img id="Day3Icon" height=50 src=""/></td>
548
+		<td align=center><img id="Day4Icon" height=50 src=""/></td>
549
+	</tr>
550
+</table>
551
+
552
+<table cellpadding=0 cellspacing=0 style="position:absolute; top:358px; left:20px" width="280" align=center>
553
+	<tr>
554
+		<td align=center><a id="TodayHiLo"></a></td>
555
+		<td align=center><a id="Day1HiLo"></a></td>
556
+		<td align=center><a id="Day2HiLo"></a></td>
557
+		<td align=center><a id="Day3HiLo"></a></td>
558
+		<td align=center><a id="Day4HiLo"></a></td>
559
+	</tr>
560
+	<tr>
561
+		<td align=center><a id="Today"></a></td>
562
+		<td align=center><a id="Day1"></a></td>
563
+		<td align=center><a id="Day2"></a></td>
564
+		<td align=center><a id="Day3"></a></td>
565
+		<td align=center><a id="Day4"></a></td>
566
+	</tr>
567
+</table>
568
+</div>
569
+</div>	
570
+</body>
571
+</html>

BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/0.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/0_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/1 (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/1.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/10.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/10_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/11 (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/11.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/11_small (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/11_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/12.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/12_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/13 (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/13.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/13_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/14.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/14_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/15.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/15_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/16.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/16_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/17.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/17_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/18.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/18_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/19.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/19_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/1_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/2 (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/2.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/20.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/20_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/21 (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/21.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/21_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/22 (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/22.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/22_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/23.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/23_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/24.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/24_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/25.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/25_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/26 (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/26.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/26_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/27 (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/27.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/27_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/28.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/28_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/29.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/29_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/2_small (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/2_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/3.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/30.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/30_small (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/30_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/31.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/31_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/32.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/3200 (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/3200.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/3200_small (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/3200_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/32_small (1).png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/32_small.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/33.png View File


BIN
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/33_small.png View File


+ 0
- 0
_/Library/Themes/Weather Widget - sygex.theme/Private/Icon Sets/HTC/34.png View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save