TiVo Community Forum banner
41 - 60 of 232 Posts

·
Registered
Joined
·
147 Posts
I tried out the 1.4.0 simulator and the 1.4.1 experimental simulator. The 1.4.0 gets the key codes right. The 1.4.1 simulator can't run the test app. I get this:
WARNING: resource 2052 not found (type class com.tivo.hme.sim.SimResource$FontResource) [3]
WARNING: resource 2055 not found (type null) [3]
 

·
Well-Known Mumbler
Joined
·
12,540 Posts
Discussion Starter · #42 ·
Turn on the debug output; it's more interesting. The 1.4.1 simulator is seriously broken. It gets a NullPointerException when trying to create resource 2052 (the font), which in turn is why resource 2055 (the text) fails. You can see the same behavior even when running the Java SDK's "Hello World" sample app (either 1.4 or 1.4.1 version). There are other problems with 1.4.1, too. But, I guess that's why it's labelled "experimental".

As for the key codes... they are what they are. If the real TiVo is sending out codes that don't match the spec, that's regrettable. But even the spec says not to rely on the KEY_OPT_* codes.

In a way, I'm encouraged to be receiving bug reports about things that would already be apparent with the Java SDK -- because it means that people are picking up HME for Python who never tried the Java SDK.
 

·
Forum Denizen
Joined
·
2,620 Posts
I found that Effects caused the same problem as Animate -- not too surprising, since it also has many views in constant motion. One interesting thing here: when I inserted a delay, the "Visible" test actually worked (on my S3), for the first time (i.e., that square disappeared and reappeared). This hadn't worked even in the original Java version.

Then I took out the pause, and tried reducing the number of sprites instead. That was interesting. With one sprite, no problems. Two also seemed fine. With four, the first run seemed to freeze, although there was no visual distortion -- just four rectangles stopped. At first I assumed that the TiVo had frozen, but it responded just fine to the TiVo key. So I ran the four-square Animate again, and it seemed to work OK. Then I upped it to eight. Now I could see what I'd missed with four -- it actually started out normal, and only gradually came to a halt, with some squares still moving (based on their last animation, I assume) while others had already stopped; eventually, they all stopped. This happened every time with eight, although there was still no distortion or loss of text. Then I tried scaling it back down and letting it run a long time. Even with just three, after a few hours, I got the distortion and lost text.

Anyway, there doesn't seem to be anything I can do about it, but I kinda knew that already.
I notified Jerry, who is passing the information along to the right people. I also played with skull and bones on my TiVo and it plays and works fine, although it never has more than one thing in motion at a time. Perhaps I need to play it for hours to see if things start getting bad.

I will try 0.5 tonight.
 

·
Well-Known Mumbler
Joined
·
12,540 Posts
Discussion Starter · #45 ·
Of all the demo apps, only those two cause a problem. Skull and Bones is not at all a demanding app. You can probably play it indefinitely.

Anyway, thanks for talking to TiVoJerry. I think we can drop this subject now, since it's a general HME problem, not an HME for Python problem.
 

·
Well-Known Mumbler
Joined
·
12,540 Posts
Discussion Starter · #48 ·
0.8 -- The dict items for transition() no longer have to be in list form, although they still _can_ be. (The values returned to handle_init_info() are still lists, though.)

Simplified the transition demo and added an icon for it.

Print the skipped directories in hmeserver, along with the reasons they were skipped.
 

·
Well-Known Mumbler
Joined
·
12,540 Posts
Discussion Starter · #50 ·
If you want to write an HD photo viewer using this library, then yes. Out of the box, no. (BTW, I have an HD-related fix to post...) I'll probably write one myself, but don't wait for me.

HMO per se is neutral about resolution. The HMO photo viewer built into the TiVo is strictly SD, but the "HD Photos 2.0" HME app in TiVo Desktop uses an HMO server as the backend -- and it will even work with pyTivo. (Getting it to run outside of TiVo Desktop is a little tricky, but doable.)

Edit: Simplest possible HD photo viewer app:

Code:
import hme

class Picture(hme.Application):
    def handle_resolution(self):
        return (1280, 720, 1, 1)

    def handle_active(self):
        self.root.set_image('/your/pic/here.jpg')
 

·
Registered
Joined
·
936 Posts
HMO per se is neutral about resolution. The HMO photo viewer built into the TiVo is strictly SD, but the "HD Photos 2.0" HME app in TiVo Desktop uses an HMO server as the backend -- and it will even work with pyTivo. (Getting it to run outside of TiVo Desktop is a little tricky, but doable.)
Are you saying HD-res photos are possible with pyTivo and without TiVo desktop? Or would you still need the TiVo Desktop to tell TiVo to request HD photos from the HMO server?

Edit: Never mind, I get it. Tivo <-> HD photos 2.0 (HME) <-> HMO server.
HMO is neutral, but we can't get the Tivo to request hi-res.
 

·
Well-Known Mumbler
Joined
·
12,540 Posts
Discussion Starter · #54 ·
0.11 -- Added a simple slideshow Picture Viewer to the included apps. It depends on the Python Imaging Library, and you'll have to edit picture/__init__.py to set ROOT to an appropriate directory (because I didn't want to bloat the archive with sample pictures). The app automatically uses hi-def mode when available.

- Changed the Animation class (and all the "animtime" parameters of various functions) to take seconds instead of milliseconds, to make it more consistent with general Python usage. I hope this doesn't inconvenience anyone.

- Small tweak to the put_chunked() function.

But I guess people are losing interest, judging by the number of downloads.
 

·
tivo_xml developer
Joined
·
2,538 Posts
0.11 -- Added a simple slideshow Picture Viewer to the included apps. It depends on the Python Imaging Library, and you'll have to edit picture/__init__.py to set ROOT to an appropriate directory (because I didn't want to bloat the archive with sample pictures). The app automatically uses hi-def mode when available.

- Changed the Animation class (and all the "animtime" parameters of various functions) to take seconds instead of milliseconds, to make it more consistent with general Python usage. I hope this doesn't inconvenience anyone.

- Small tweak to the put_chunked() function.

But I guess people are losing interest, judging by the number of downloads.
I'm tracking your updates, I just don't have a lot of time to play, unfortunately. I would like to use HME for python for a few projects I have in the back of my mind, when I can find the time to devote to them.
 

·
Forum Denizen
Joined
·
2,620 Posts
But I guess people are losing interest, judging by the number of downloads.
Not at all, I just am not able to spend much time on it right now. I think I am still at 0.5 for my playing around and learning about event driven programming using python and hme. I have only done procedural scripts up to this point and have a lot to learn. In addition to that I probably will put more effort into fixing pytivo on my NAS first. It isn't as stable there as it is on a PC, and I fear it may be resource bound. I am trying to learn enough about Linux to try to look into that. But that is for another forum.

This is great stuff, amazing to me really.
 

·
Forum Denizen
Joined
·
2,620 Posts
I then ran animate and the screen showed the corect animation for about a second and then blanked showing an occasional tall rectangle. I took a long sequence of shots at about 2 per second to capture one of the rare appearances of a rectangle. They were appearing every 5 to 10 seconds, in different locations on the screen, but mostly to the right side.

When I exited the TiVo had lost fonts and rebooted.
I can happily report that the new 9.3 software on my Humax DVD burner TiVo fixes the issues I was seeing in HME, it all works correctly now.
 

·
Well-Known Mumbler
Joined
·
12,540 Posts
Discussion Starter · #59 ·
I can happily report that the new 9.3 software on my Humax DVD burner TiVo fixes the issues I was seeing in HME, it all works correctly now.
Well, I wish I could say the same for my 540. I still see it crashing in Animate, leaving me textless.

It works OK for the first few seconds... which might be an improvement. But fundamentally, it's not fixed. :(
 

·
Forum Denizen
Joined
·
2,620 Posts
Bummer, I only tested it for about 10 or 15 seconds, I guess I should have tried for much longer. It was so nice seeing it behave correctly for the first time ever. Try it again after a day, just in case indexing is pushing it over the edge.
 
41 - 60 of 232 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top