TiVo Community
TiVo Community
TiVo Community
Go Back   TiVo Community > Underground Playground > Developers Corner
TiVo Community
Reply
Forum Jump
 
Thread Tools
Old 04-21-2006, 03:33 PM   #1
half.italian
Registered User
 
Join Date: Mar 2006
Posts: 46
newb - Interating jfree chart into Tivo

I am a complete newbie to java and hme. That said, I've worked out F8ster's examples ( Thanks!) with some success, and have been messing around with a stock app. I finally found a free library I was hoping to integrate into the app (jfreechart), but can't seem to figure out how to get it working.

The only example i have has the code in a single file, and I can't even figure out how to get it to run. I'll keep messing around.

HELP!!
half.italian is offline   Reply With Quote
Old 04-21-2006, 04:24 PM   #2
jkaplan
Registered User
 
Join Date: Sep 2005
Location: San Francisco/Bay Area
Posts: 17
It sounds like you want to use the library to generate an image. Once you have the image you would associate it with an HME View using create/set resource methods. There is a lot of sample code and documentation that describes how to do that.

If you are more specific about the problems you are having it might be possible to provide better instructions on how to proceed.
jkaplan is offline   Reply With Quote
Old 04-21-2006, 05:23 PM   #3
half.italian
Registered User
 
Join Date: Mar 2006
Posts: 46
thanks for your response. You're right. I just need to dig at it a bit more and I'll post with better info.

I have stumbled through so far without perfect understanding. I probably should pick up a book, but I won't. I'll keep stumbling through until I get it.

I'll be back...
half.italian is offline   Reply With Quote
Old 04-22-2006, 02:45 AM   #4
half.italian
Registered User
 
Join Date: Mar 2006
Posts: 46
I put the sample code for the "demo" class (provided as an example) into a new class in eclipse as part of the main program package.

On the class definition line i get the following error:

"The serializable class TimeSeriesChartDemo1 does not declare a static final serialVersionUID field of type long"

The error looks like a warning, but won't compile. Any ideas?
half.italian is offline   Reply With Quote
Old 04-22-2006, 11:36 AM   #5
jkaplan
Registered User
 
Join Date: Sep 2005
Location: San Francisco/Bay Area
Posts: 17
You can change the severity level of that message in the Eclipse project properties dialog.

- Go to the "Project" menu and select "Properties"
- View the settings under "Java Compiler->Errors/Warnings"
- Expand the group "Potential programming problems"
- Modify the severity level for the serialVersionUID warning

Of course you can also just add a static "serialVersionUID" member to your class.
jkaplan is offline   Reply With Quote
Old 04-23-2006, 05:50 PM   #6
half.italian
Registered User
 
Join Date: Mar 2006
Posts: 46
ChartDirector

Figured that one out, but in my searching found a much better and EASIER lib to use written in python (home sweet home). Made specifically for financial charts with great visuals. http://www.advsofteng.com/product.html

Now I have to figure out how to get it working in eclipse. Where to add lib and python code. Where to store temp image file (if needed).

Should I write a python command line tool and then execute that from java?
or embed the python code somehow?

I think this will be a better course of action.

Thanks for your help jkaplan.
half.italian is offline   Reply With Quote
Old 04-26-2006, 08:31 AM   #7
half.italian
Registered User
 
Join Date: Mar 2006
Posts: 46
Building the App with Python source

I've got a working app now, but am running into huge problems building the application with the references to the needed python files intact.

I use several python libraries to create and write a stock chart to /tmp Then the app reads/rewrites that file as needed and displays it. I installed Pydev plugin for Eclipse and everything seems to work fine with absolute paths to the libraries. But when I build the project and run it trying to use paths relative to the osx app, the code never gets executed.

I messed around enough to make sure the src folder is included with the package, but can't quite figure out how to point the app to the files.

I'll post the app as is (there's ALOT of work to do) once I get this figured out.

Help!!!
half.italian is offline   Reply With Quote
Old 04-26-2006, 04:56 PM   #8
half.italian
Registered User
 
Join Date: Mar 2006
Posts: 46
got it

<eom>
half.italian is offline   Reply With Quote
Old 04-27-2006, 12:30 PM   #9
half.italian
Registered User
 
Join Date: Mar 2006
Posts: 46
Here's what I have so far...

For all you Mac users. I'd love to know if it works for you. It's pretty basic at his point, and it's doesn't allow you to choose your own symbols, but updates the quotes in real-time. It's also not pretty, but kinda neat for avid stock market folks.

E-mail me a list of 8 or less stocks you watch and I'll send you a copy with them embedded.

I'll get to work on the rss news feed and the ability to choose your own symbol.

half.italian@gmail.com
half.italian is offline   Reply With Quote
Reply
Forum Jump




Thread Tools


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Advertisements

TiVo Community
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
vBulletin Skins by: Relivo Media
(C) 2013 Magenium Solutions - All Rights Reserved. No information may be posted elsewhere without written permission.
TiVoŽ is a registered trademark of TiVo Inc. This site is not owned or operated by TiVo Inc.
All times are GMT -5. The time now is 12:30 PM.
OUR NETWORK: MyOpenRouter | TechLore | SansaCommunity | RoboCommunity | MediaSmart Home | Explore3DTV | Dijit Community | DVR Playground |