Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,262 Members 50,294 Now Online
XDA Developers Android and Mobile Development Forum
View Poll Results: Is this the best weather application for WM? (If "No", please say why in the thread!)
Yes 111 87.40%
No 16 12.60%
Voters: 127. You may not vote on this poll

[APP][19/09/2012] TRITaniumWeather - Today, Titanium, S2U2, iPhoneToday, HTML

Tip us?
 
arealityfarbetween
Old
(Last edited by arealityfarbetween; 20th September 2012 at 07:09 PM.) Reason: Release Candidate
#1  
Senior Member - OP
Thanks Meter 71
Posts: 422
Join Date: Nov 2008
Location: Newcastle upon Tyne

 
DONATE TO ME
Default [APP][19/09/2012] TRITaniumWeather - Today, Titanium, S2U2, iPhoneToday, HTML

First, the thanks. To all at XDA, cos we rock To Showaco for the base code, to nosedive for the mods done on it and anyone else who worked on TitaniumWeather in the past. Also to Sleuth for his myLocation service.

TRITaniumWeather is a multi-location, multi-feed, multi-display, flexible weather application.

Usually there's some screenshots here, but the program has changed a lot in the latest release candidate, I need to take some new snaps

Features
  • Expressed in C# using the .NET Compact Framework 3.5, it is as Fast as HTC Sense and in some ways, superior.
  • Location database of over 3000 locations.
  • MyLocation aware supporting Sleuth's myLocation service, HTCGeoService, and Google Latitude.
  • Supports Accuweather, WorldWeatherOnline, and Yahoo feeds.
  • Supports Accuweather & Yahoo coded themes.
  • HTML report generated and styled (configurable) for easy viewing.
  • iPhoneToday each location generates a page.
  • Titanium panel and current conditions overlay.
  • S2U2 weather text and icon.
  • Today current conditions icon over your wallpaper.
  • Easily configurable and reports visible through its GUI.
  • Supports custom extensions.

What's this GPL thingy?
The GPL can be viewed here. It makes sure your rights as a user are protected to distribute/change/use this Free software as you wish. A copy is included with the program.

Version and Release Info
The main release contains the cabinet installer file. Updates are produced as plain archives, to use the latest update you need to download all the archives and unzip them into your existing TRITaniumWeather folder in order, overwriting any existing files. Versions are numbered just like any good Open Source project:
  • The first number is the major version.
  • The second is the minor version-odd numbers are development for the next stable even number.
  • The third number is the release number-these have feature improvements.
  • If there is a fourth, it's a critical bugfix release number.
E.g. This program starts at 5.9.0 which means it's preparation for the stable release 6.0.0.

Downloads
C#MortscriptExtrasSource Code
The source code is constantly changing as I tinker, pm me for a copy of the latest.

Donations
Thanks to any & all who donate to the project!Appreciate my work?


Changelog
Code:
Select Code
Changelog TRITW 6.3 - "Neutron":
  - Complete re-organisation and code cleaning almost complete.
  - Implemented far more robust output writer structure.
    > Dropped S2U2 fullscreen writer.
    > Today and Titanium writers now use the theme icon and operate in the top
    right corner of the user's today image/titanium sliding panel screen.
  - Some object properties changed.
  - Database, icon map, and configurations all share a common "Domain" property.
  - GUI overhall.
    > Main view is an overview with access to options and main functions.
    > Second layer is a per location report viewer/theme preview

Changelog TRITW 6.2.1 - "WhiteDwarf":
	- Integrated & improved iPhoneToday support
	  > Now displays default location in it's own page with forecast temperatures.
	  > IPTSupport.mscr still present to restart iPhoneToday if running.
	- Included Sketchy icon theme.

Changelog TRITW 6.2 - "WhiteDwarf":
	- Implemented Titanium Overlay.
	- Fix false meta info positive for Google Latitude.
	- Re-implemented panel support as function of each location.
	  > Should result in clean removal of all location data on deletion.
	- GUI Improvements, now able to control metric + theme properties.
	  > Each location gets a seperate tab.
	- Extended Displays Intelligently Controlled from GUI.
	  > Put Theme directories in TRITW\Fullscreen on your storage card.
	- Implemented simple multi-threading for parallel update.
	- Feed configurations now loaded into array and passed on demand.
	  > Can be selected from GUI on each location's tab.
	  > Since WorldWeatherOnline handles Metric/Imperial through different tags
	  the metric property has moved to the pluggable feed configurations.
	- Implemented internal scheduler.
	- Revamped forecast cycling (useful with Accuweather-Long config)
	  > Should cycle to nearest frame, e.g. after sunset this will be the night frame.
	- WorldWeatherOnline free feed moved URL, included the new URL.
	- WorldWeatherOnline Key moved to dedicated object.
	  > If I ever get around to adding the "Custom" feed & configuration, this is where
	  we'll store keys.
	- Included IPTSupport extension
	  > Disabled RedrawToday as this is done by the core program.
	- Added Yahoo iconcode 12 to map. ("PM Rain")
	- Switched WorldWeatherOnline code 0004 translation to 08, instead of 36.
	- Rewritten Html view support as an XmlWriter.
	  > Much improved style sheet.
	  > Changed grey to gray for Mobile IE users in odd frames.
	- Included option to use the system default browser instead of IE.
	  > Allows testing in Opera, though the style sheet needs tweaking.

Changelog TRITW 6.1.4 beta - "SuperNova":
	- Streamlined serialisers, appears to result in faster operation. Marginal benefit.
	- Attempted fix for Google Latitude false negative.
	- P/Invoked the native refresh function, michas refresh should no-longer be needed.
	- Implemented Today Wallpaper Change.
	- Tweaked S2u2 Support, automatically switch to UserWeather mode in s2u2.

Changelog TRITW 6.1.3 beta - "SuperNova":
	- Fixed night forecast frame placement. 
	  > New config variant - Accuweather-long.xml. To use it, change FeedConfName to Accuweather-long.
	- Cleared up Units confusion with configuration file. 
	  > DefMetric is for new locations.
	  > Metric can be set per location using the appropriate switch.
	- Removed country and city boxes from AddLocation form.
	- Included fix for history items with Accuweather in the USA.
	  > If country is <= 2 characters in length, add that to the end of the city property.
	  > Then will set country to "United States".

Changelog TRITW 6.1.2.1 beta - "SuperNova":
	- Bugfix for Google Latitude preference over HTCGeoSrvc.
	  > Disabled data refresh at earlier stage.
	- Bugfix for GUI null reference issue - hopefully this should be the last.

Changelog TRITW 6.1.2 beta - "SuperNova":
	- Removed configuration importing from main program flow.
	  > This is done when importing from registry at first run and is therefore not
	    necessary duing execution. In fact this will cause problems on fresh installs.
	- Improved logging facility, placed more log points into program flow.
	  > AutoFlush is more reliable than custom desctructor code.
	- MyLocation improvements.
	  > Keeps track of last successful service (only used in ToString() atm)
	  > Converted refresh() to 3 seperate methods with bool rtn's.
	- GUI now hides some more controls if they're not applicable.
	  > Protected some functions on "Locations" tab from null reference exceptions.
	- searchBox now gets default focus on AddLocation form.

Changelog TRITW 6.1.1 beta - "SuperNova":
	- Critical fix for titanium freezing issue on 240x320. (Unconfirmed, please report.)
	  > Please delete any panels and reinstall them from the GUI.
	- Bugfix for non "en" localities and multi-lingual accuweather support.
	- Bugfix for non "en" localities and summary information.
	  > Requirement to pass beta: Automatically selected language resource files.
	- TypeLoadException solved, more debugging information provided.
	- Auto-connect disabled, beta will only update when a connection is already present.
	  > Should this behaviour be permanent?

Changelog TRITW 6.1 beta - "SuperNova":
	- Almost entirely rewritten in C#.
	  > Today, S2U2 and Titanium Overlay features yet to port.
	  > IPTSupport not included in this beta, but with a little modification the script from
	    5.9.9pre will work.
	  > Support for mortscript extensions in the "Extensions" directory.
	    - Weather information can be found in the "Frames" directory.
	  > Simpler MyLocation mechanism. First test HTCGeoSrvc, then Google Latitude, then Sleuth's
	    myLocation.
	  > Various improvements all round.
	  > Update for a single location in less than 10 seconds. First time with Accuweather is longer
	    as an api scan is done for each location. This can take some time.
	- Schedule interval changed to hours instead of minutes, due to a curious bug with the
	  NumericUpDown control.

Changelog 5.9.9pre:
	- Fixed Yahoo city name issue (removed region attribute from city name)
	- Fixed Titanium 'trailing text' bug on older wm6.5 builds
	- Introducing ChewXML.exe
	  > Data extracted to the registry
	- Feeds configured dynamically
	  > Cab comes pre-configured for you
	  > But should allow adding of a Custom feed
	- New configuration menu for Feed Options
	  > Allows setting tag preferences (prefix/suffix/mark as metadata)
	  > Sort/Delete frames and lines
	- Added WorldWeatherOnline areaName and country tags
	- Dynamic Icon search when not found in theme
	  > Currently just cycles up and down through codes until one is found
	- Updated Extended Displays and IPTSupport
	  > IPTSupport depends on Titanium structures atm
	- Redesigned Views
	  > Implemented CSS in Html view

Changelog 5.9.8:
	- Added forecast limit option
	  > This may only speed updates fractionally as data is still passed
	- Added default theme option
	- Added default units option
	- Improved iPhoneToday support
	  > Toggle option will enable/disable page, not just registry switch
	  > iPT registry triggers used by main script
	- Today image replacement method modified
	  > Should be more reliable, YMMV
	- Improved overlay functionality. Will uninstall when toggled off
	- HTML weather updates now viewed on system default browser
	- Fixed all new locations using same data bug

Changelog 5.9.7:
	- Implemented Google Latitude location service
	  > Allows MyLocation on devices with no location service
	- Implemented replace function in CustomDB()
	- Implemented iPhoneToday support
	- Slight improvement to dynamic line filling code
	- SearchXML() now blanks "%" symbols
	- Added InternetConnected() check to downloader
	- Minor bugfix to Yahoo! feed definition
	- Fullscreen icon packs must now have a 'descriptor' file
	  > Name according to the icon numbering type (Accuweather/Yahoo)
	  > First 3 characters describe file extension
	- Added synium, saray, shgao, greek and tl01 APIs to Accuweather support

Changelog 5.9.6:
	- Moved connection starting outside of WeatherUpdate()
	  > Also commented CloseConnection
	- Re-introduced Menu: Display Options
	  > Moved "Panel Control" here, prefixed with "Titanium"
	  > Moved "Create Titanium Panel" here
	  > Added "Set Default Location" for weather background
	- Updated S2U2 support, full and basic compatibility options
	  > Fixed icon code mappings
	- Implemented Today Background for WM6.1 (also works for 6.5)
	- Implemented Overlay into Titanium
	- Introduced "MichasRefresh.exe" from XDA, cheers!
	  > SpecialRefresh is included for you to experiment with. This
	  may allow the Overlay with native lock and start menu in future
	- HTCGeoSrvc Stub!: Suggested Run of AGPSSettingCPL.cpl
	- Crash-Proof function update to FoddLib language routines
	- Added option: "Update this Location" to location settings
	- Disabled Settings Wizard wiping out the whole registry
	  > It will if you run it in debug mode

Changelog 5.9.5:
	- Implemented Yahoo! Weather
	  > Only provides 2 days of information, no MyLocation support;
	  these are feed limitations
	  > Pressure not used yet. New method for getting units
	  from feed information required
	- Moved almost all global variable resets into preflight
	- Included fix to WorldWeatherOnline; missing comma
	- Implemented partial "feedcap" command system
	  > Currently only returns mylocation capability
	- Began implementation of line filling code

Changelog 5.9.4.1:
	- Minor bugfix for multilanguage:
	  > Non-ascii character display corrected
	  > Main menu of GUI not re-loading language variables
	- Fixed on-the-fly page display settings
	- Included Espanol language file

Changelog 5.9.4:
	- Integrated Multi-Language Support (thanks to RoDr1g0 
	for the bump on Accuweather support for this)
	  > Translator included. New languages must be named
	  with the first two letters for the country code
	  e.g. Deutsch (de) or English (en)
	  > Deutsch included
	- Worked around missing condensed text bug in multiple
	panel support. New options menu: Panel Control
	- Replaced "Toggle MyLocation" option from Location Options
	with disable loaded location option
	- All Feeds now update however many days they get in 
	Titanium Panels (up to 7 days with Accuweather)
	- Included Spil, BeyondInvisible, Buff and Stardock icons

Changelog 5.9.3.1:
	- Fixed duplicate multiple panels bug
	  > Renamed new panels to TRITW:<location number>

Changelog 5.9.3:
	- SearchDB() and FormatResult() rewritten
	  > Far faster mechanisms
	  > DB rewritten into single 'Universal' file, replaced
	  "Location" key with "UserCode" key. Old databases
	  including History no-longer compatible
	  > Guaranteed all data extracted from an entry
	- Updated status reporting
	- Updated every function to call the DebugLog()
	- Inserted check for feed/code set in WeatherUpdate()
	  > Should fix Sub not found issues
	  > Error message is: "Something Went Horribly Wrong."
	- Included option to create new panels
	  > Caveat: I can't get condensed text to show on the new
	  panels
	  > New function DeleteLocation() deletes location and
	  removes the panel entry
	- Isolated all fixed strings to ease translation
	  > Help by extracting all the strings into a text file
	  then translate each line and post it back
	- History was not working for some Accuweather feeds
	  > Now creates database of 'URLCodes'
	- Accuweather API selection is now location dependant
	  > This is not a bug!
	- Accuweather now updates all weather information
	  > Up to 7 days forecast
	  > Displayed in HTML form only atm, extra panel pages
	  can be manually added by editing registry
	- Reduced number of exits (should only be two now)
	  > Should stop random script crashes
	  > Panels should never pause mid-update
	  
Changelog 5.9.2:
	- Project renamed to: TRITaniumWeather
	- Location services standardised:
	  > Easily add new service compatibility where possible
	  > Implemented start/stop functionality with myLocation
	  > Stub for HTC Geo Service, can read location. Don't know
	  how to start/stop
	- Updated HTML Message writing to always occur, in the background
	- Multiple locations now supported
	  > Currently named as per what their feed reports
	  > MYLOCATION is dealt with seperately
	- Included FoddLib.mscr for:
	  > File version routines
	  > Future language/translation support
	- Included 240x240 stanza in TRITaniumWeather.plg (thanks to gmorris)

Changelog 5.9.1:
	- Now outputs HTML following a GUI triggered update
	- Status Messages shown during a GUI triggered update

Changelog 5.9.0: Initial Release
TRITaniumWeather - Titanium, S2U2, iPhoneToday, HTML Weather
--
UIFlex - Disable HTC Sense/SPB Mobile Shell/AnyUI.exe Automatically
--
Fodd Sense - ROM Series

Device: DIAM100
HSPL: 1.93 Olinex
Radio: 1.13.25.24
The Following 11 Users Say Thank You to arealityfarbetween For This Useful Post: [ Click to Expand ]
 
arealityfarbetween
Old
(Last edited by arealityfarbetween; 6th November 2011 at 11:59 AM.)
#2  
Senior Member - OP
Thanks Meter 71
Posts: 422
Join Date: Nov 2008
Location: Newcastle upon Tyne

 
DONATE TO ME
Default ToDo, Known Issues and Miscellaneous Notes

YOU! Yes, I mean you. This project is provided under the GPL, help me out by doing one of the following jobs!

WhiteDwarf
  • Miscellaneous Location Type. Requirements:
    • URL Batteries (Almost Done, GUI extensions to follow...)
    • Robust & Extensible Icon Map. (Done, testing now, GUI extensions to follow...)
    • FeedConfig, Prefix, Suffix & Unit Editors.
  • Radar page for titanium display.
  • A cool icon for the executable files. My Attempt is the TRITaniumWeather.png included with SuperNova...
  • Tweak the plg file further, text currently drops below the panel line.

5.9.9pre and below
I would consider these complete as mortscripted versions. Enhancements and bugfixes are welcome from anyone working on them.
TRITaniumWeather - Titanium, S2U2, iPhoneToday, HTML Weather
--
UIFlex - Disable HTC Sense/SPB Mobile Shell/AnyUI.exe Automatically
--
Fodd Sense - ROM Series

Device: DIAM100
HSPL: 1.93 Olinex
Radio: 1.13.25.24
 
meadose
Old
#3  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Dec 2010
thanks for the info buddy.
 
gmorris
Old
#4  
Member
Thanks Meter 13
Posts: 46
Join Date: Jul 2009
This version totally rocks out! Thanks for all the hard work!
 
tito12
Old
#5  
tito12's Avatar
Senior Member
Thanks Meter 83
Posts: 1,538
Join Date: Feb 2008
Location: Tel Aviv
Quote:
Originally Posted by arealityfarbetween View Post
YOU! Yes, I mean you. Help me out by doing one of the following jobs:
  • Icon, I tried one of the HTC ones from the theme, but the CAB wouldn't install. For now, just the mortscript icon. If anyone can inject an icon into the exe files that'd be gravy!
  • More Feeds? Anyone want Yahoo weather, PM me, and if lots of you want it then I'll try and add it.
  • Full database control; add is done, needs delete/replace, possibly import?
  • It would be cool to add the radar page again.
  • HTCGeoService support (Can get location data: Only state switching/sensing to do!)
  • Configurable Panel/HTMLView layouts.
  • Wherever you see a "Stub!" statement would be a good place to help, it'll tell you which file and which sub function to look at. Some stuff is just low priority at the moment...
  • Update the documentation.
Hi

First thank you for sharing your work, it's very well done! Since I don't use titanium any more, you mentioned in the 1st post it will work without it, can you tell how?
2nd- If you want to change the Mortscript icon, you can use this very nice app called Png2exe http://forum.xda-developers.com/showthread.php?t=829932 and read my post related to this http://forum.xda-developers.com/show...9&postcount=33

Here's an example
Attached Files
File Type: zip TRITaniumOptions.zip - [Click for QR Code] (3.2 KB, 522 views)
Htc Uk Wifi Flyer - HC 3.2.1
iPhone 4S - IOS 5.0.1 JB
Htc Touch Elfin - (retired) WM 6.5.5 - Onyx 6 rom

 
arealityfarbetween
Old
#6  
Senior Member - OP
Thanks Meter 71
Posts: 422
Join Date: Nov 2008
Location: Newcastle upon Tyne

 
DONATE TO ME
@tito12: I was going to say thanks but that exe really disagreed with my device

I was thinking of something like the sun icon from the HTC theme, but it didn't look so good when I used resource hacker to put it in there.

I know how they're put in but it's a low priority-I was hoping someone else could pick up the burden :sarcastic:

To answer your question, you can set the script to auto-update. It doesn't care whether titanium is running or not for that. Then you just go into the options app and "view stored weather" as the manual says. I'd recommend switching off status during updates though-it's really only necessary to see if something is going wrong. Or if you like status messages
TRITaniumWeather - Titanium, S2U2, iPhoneToday, HTML Weather
--
UIFlex - Disable HTC Sense/SPB Mobile Shell/AnyUI.exe Automatically
--
Fodd Sense - ROM Series

Device: DIAM100
HSPL: 1.93 Olinex
Radio: 1.13.25.24
 
Michael_robert
Old
#7  
Member
Thanks Meter 1
Posts: 38
Join Date: Dec 2010
Hi,
Thanks to share the information about “TRITaniumWether” and “Accuweather”. I have HTC HD and I know about “TitaniumWeather”. Good application for checking the weather.
 
tito12
Old
#8  
tito12's Avatar
Senior Member
Thanks Meter 83
Posts: 1,538
Join Date: Feb 2008
Location: Tel Aviv
Quote:
Originally Posted by arealityfarbetween View Post
@tito12: I was going to say thanks but that exe really disagreed with my device

I was thinking of something like the sun icon from the HTC theme, but it didn't look so good when I used resource hacker to put it in there.

I know how they're put in but it's a low priority-I was hoping someone else could pick up the burden :sarcastic:

To answer your question, you can set the script to auto-update. It doesn't care whether titanium is running or not for that. Then you just go into the options app and "view stored weather" as the manual says. I'd recommend switching off status during updates though-it's really only necessary to see if something is going wrong. Or if you like status messages
What do you mean by "disagreed", the program Png2Exe doesn't work on your device or the exe I attached didn't ? If it's the second case this was just an example and I chose the first icon I found
Htc Uk Wifi Flyer - HC 3.2.1
iPhone 4S - IOS 5.0.1 JB
Htc Touch Elfin - (retired) WM 6.5.5 - Onyx 6 rom

 
arealityfarbetween
Old
#9  
Senior Member - OP
Thanks Meter 71
Posts: 422
Join Date: Nov 2008
Location: Newcastle upon Tyne

 
DONATE TO ME
@tito12: Yeah, it seemed to just keep respawning when I ran it. It could be cos my rom's getting a bit dirty with all the crap i put on it, probably time for a hard reset shortly!

Did anyone else have any better experience with it? Or was inspired enough to try out the software and inject some icons? I'm kinda busy with 5.9.3 atm...
TRITaniumWeather - Titanium, S2U2, iPhoneToday, HTML Weather
--
UIFlex - Disable HTC Sense/SPB Mobile Shell/AnyUI.exe Automatically
--
Fodd Sense - ROM Series

Device: DIAM100
HSPL: 1.93 Olinex
Radio: 1.13.25.24
 
claus1953
Old
#10  
claus1953's Avatar
Senior Member
Thanks Meter 89
Posts: 2,846
Join Date: Aug 2008
Quote:
Originally Posted by arealityfarbetween View Post
@tito12: Yeah, it seemed to just keep respawning when I ran it. It could be cos my rom's getting a bit dirty with all the crap i put on it, probably time for a hard reset shortly!

Did anyone else have any better experience with it? Or was inspired enough to try out the software and inject some icons? I'm kinda busy with 5.9.3 atm...
As promised in my PM here are the files
Attached Files
File Type: zip YahooWeather.zip - [Click for QR Code] (4.4 KB, 266 views)
(HTC Elfin) sold it
(Samsung Omnia i900L) sold it
SGS I9000T stolen
SGY S5360L sold it
LG P970 (OB) sold it
LG L9 P768g, TELCEL, Stock ROM 4.1.2 V20a (still looking to unlock bootloader without success)
EPad Flytouch 5, The Blazing Dragon by Gaboros ROM

Tags
iphonetoday, s2u2, titanium, weather
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes