[jonah] metric conversion
Tim Gorter
email@teletechnics.com
Sun, 29 Sep 2002 21:10:37 +0000
This message is in MIME format.
---------------------- multipart/mixed attachment
Attached are diff files to allow user to select metric display of weather
values.
Also small change in api.php to allow radar window to resize=yes and
scrollable=yes, as not all radar pictures are the same size.
regards,
tim.
---------------------- multipart/mixed attachment
SW5kZXg6IGFwaS5waHAKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTogL3JlcG9zaXRvcnkvam9uYWgvbGli
L2FwaS5waHAsdgpyZXRyaWV2aW5nIHJldmlzaW9uIDEuNApkaWZmIC1yMS40IGFwaS5waHAKMTYz
YzE2Mwo8ICAgICAgICAgICAgICAgICAgICAgICAgICAgICJzdGF0dXM9bm8sIHJlc2l6YWJsZT1u
bywgbG9jYXRpb249bm8sIHNjcm9sbGJhcnM9bm8sIHdpZHRoPTY2MCwgaGVpZ2h0PTUwMCcpOyAi
IC4KLS0tCj4gICAgICAgICAgICAgICAgICAgICAgICAgICAgInN0YXR1cz1ubywgcmVzaXphYmxl
PXllcywgbG9jYXRpb249bm8sIHNjcm9sbGJhcnM9eWVzLCB3aWR0aD02NjAsIGhlaWdodD01MDAn
KTsgIiAuCg==
---------------------- multipart/mixed attachment
SW5kZXg6IEpvbmFoLnBocAo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvcmVwb3NpdG9yeS9qb25haC9s
aWIvSm9uYWgucGhwLHYKcmV0cmlldmluZyByZXZpc2lvbiAxLjgKZGlmZiAtcjEuOCBKb25haC5w
aHAKMjQ3YzI0Nwo8ICAgICAgICAgZ2xvYmFsICRjb25mOwotLS0KPiAgICAgICAgIGdsb2JhbCAk
Y29uZiwgJHByZWZzOwoyNTNjMjUzLDI1NQo8ICAgICAgICAgaWYgKGFycmF5X2tleV9leGlzdHMo
J3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iAoJHByZWZzLT5nZXRWYWx1ZSgnbWV0cmljJykpIHsKPiAgICAgICAgICAgICAgICAgICAgICR0
ZW1wID0gcm91bmQoKCgkZm9yZWNhc3RbJ2hpZ2gnXSAtIDMyKSAqIDUpIC8gOSk7Cj4gICAgICAg
ICAgICAgICAgICAgICAkaHRtbCAuPSAkdGVtcCAuICcmZGVnOyAnIC4gJzwvZm9udD4nOwo+ICAg
ICAgICAgICAgICAgICB9IGVsc2Ugewo+ICAgICAgICAgICAgICAgICAgICAgJGh0bWwgLj0gJGZv
cmVjYXN0WydoaWdoJ10gLiAnJmRlZzsgJyAuICc8L2ZvbnQ+JzsKPiAgICAgICAgICAgICAgICAg
fQozMjRjMzU3LDM2Mwo8ICAgICAgICAgICAgICAgICAkaHRtbCAuPSAgJzxmb250IGNvbG9yPSJi
bHVlIj4nIC4gJGZvcmVjYXN0Wydsb3cnXSAuICc8L2ZvbnQ+JzsKLS0tCj4gICAgICAgICAgICAg
ICAgICRodG1sIC49ICAnPGZvbnQgY29sb3I9ImJsdWUiPic7Cj4gICAgICAgICAgICAgICAgIGlm
ICgkcHJlZnMtPmdldFZhbHVlKCdtZXRyaWMnKSkgewo+ICAgICAgICAgICAgICAgICAgICAgJHRl
bXAgPSByb3VuZCgoKCRmb3JlY2FzdFsnbG93J10gLSAzMikgKiA1KSAvIDkpOwo+ICAgICAgICAg
ICAgICAgICAgICAgJGh0bWwgLj0gJHRlbXAgLiAnJmRlZzsgJyAuICc8L2ZvbnQ+JzsKPiAgICAg
ICAgICAgICAgICAgfSBlbHNlIHsKPiAgICAgICAgICAgICAgICAgICAgICRodG1sIC49ICRmb3Jl
Y2FzdFsnbG93J10gLiAnJmRlZzsgJyAuICc8L2ZvbnQ+JzsKPiAgICAgICAgICAgICAgICAgfQo=
---------------------- multipart/mixed attachment
SW5kZXg6IHByZWZzLnBocC5kaXN0Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9yZXBvc2l0b3J5L2pv
bmFoL2NvbmZpZy9wcmVmcy5waHAuZGlzdCx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4yCmRpZmYg
LXIxLjIgcHJlZnMucGhwLmRpc3QKMzdjMzcKPCAgICAgICAgICAgICAgICAgICAgICAgICdoZWFk
bGluZXNjaGFubmVsJywgJ3N0b2NrcXVvdGVzY2hhbm5lbCcpKTsKLS0tCj4gICAgICAgICAgICAg
ICAgICAgICAgICAnaGVhZGxpbmVzY2hhbm5lbCcsICdzdG9ja3F1b3Rlc2NoYW5uZWwnLCAnbWV0
cmljJykpOwoxMzRhMTM1LDE0MQo+ICRfcHJlZnNbJ21ldHJpYyddID0gYXJyYXkoCj4gICAgICd2
YWx1ZScgPT4gMSwKPiAgICAgJ2xvY2tlZCcgPT4gZmFsc2UsCj4gICAgICdzaGFyZWQnID0+IGZh
bHNlLAo+ICAgICAndHlwZScgPT4gJ2NoZWNrYm94JywKPiAgICAgJ2Rlc2MnID0+IF8oIlNob3Vs
ZCBtZWFzdXJlbWVudHMgYmUgc2hvd24gaW4gbWV0cmljIHZhbHVlcz8iKSk7Cj4gCjE0MWMxNDgs
MTUxCjwgICAgICdlbnVtJyA9PiBhcnJheSgnYmlzbWFyY2snID0+ICJCaXNtYXJjayIsCi0tLQo+
ICAgICAnZW51bScgPT4gYXJyYXkoJ2F1Y2tsYW5kJyA9PiAiQXVja2xhbmQsIE5aIiwKPiAgICAg
ICAgICAgICAgICAgICAgICdhbXN0ZXJkYW0nID0+ICJBbXN0ZXJkYW0sIE5ldGhlcmxhbmRzIiwK
PiAgICAgICAgICAgICAgICAgICAgICdiYXJjZWxvbmEnID0+ICJCYXJjZWxvbmEsIFNwYWluIiwK
PiAgICAgICAgICAgICAgICAgICAgICdiaXNtYXJjaycgPT4gIkJpc21hcmNrIiwK
---------------------- multipart/mixed attachment--