pyTivo Discussion Forum Forum Index pyTivo Discussion Forum
Answers and the development of pyTivo a TiVo transcoding server
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Self shutdown

 
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> pyTivo
 View previous topic :: View next topic  
Author Message
wmcbrine



Joined: 04 Jan 2008
Posts: 2009
Location: Maryland

PostPosted: Thu Feb 09, 2012 9:12 pm    Post subject: Self shutdown Reply with quote

I finally added this feature -- it works with Python 2.6+ only. Go to the Web Config menu, and press the "Shutdown pyTivo" button. Alternatively, you can use this URL:

http://localhost:9032/TiVoConnect?Command=Quit&Container=Settings

This won't work yet with the Windows service version (pyTivoService.py).

_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
txporter



Joined: 11 Dec 2008
Posts: 263
Location: Austin, TX

PostPosted: Fri Feb 10, 2012 5:34 pm    Post subject: Reply with quote

Does this mean that I could shutdown pyTivo running on my synology NAS from a browser now? Can it also be restarted the same way? Any interest in another button to perform a git pull to update the software?? Smile
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2009
Location: Maryland

PostPosted: Fri Feb 10, 2012 7:08 pm    Post subject: Reply with quote

txporter wrote:
Does this mean that I could shutdown pyTivo running on my synology NAS from a browser now?

Yes.

Quote:
Can it also be restarted the same way?

What, after you've shut it down? Smile

Actually I tried to do a restart function as well, but couldn't quite get there yet. It's easier to just put a wrapper around pyTivo to restart it automatically on exit... but then of course you lose the pure shutdown.

Quote:
Any interest in another button to perform a git pull to update the software?? Smile

While it's running? I don't think that will work.

_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
txporter



Joined: 11 Dec 2008
Posts: 263
Location: Austin, TX

PostPosted: Fri Feb 10, 2012 7:23 pm    Post subject: Reply with quote

wmcbrine wrote:
While it's running? I don't think that will work.


No. Was hoping to click a button to shut it down. Click another to update software and then a final one to restart. I can update manually if I ssh in with putty, but it is a PITA compared with just a few button clicks. Wink
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2009
Location: Maryland

PostPosted: Fri Feb 10, 2012 7:35 pm    Post subject: Reply with quote

If pyTivo is shut down, what's recognizing those last two button clicks?
_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
txporter



Joined: 11 Dec 2008
Posts: 263
Location: Austin, TX

PostPosted: Fri Feb 10, 2012 7:53 pm    Post subject: Reply with quote

wmcbrine wrote:
If pyTivo is shut down, what's recognizing those last two button clicks?


Well...stop thinking about this all logically. Wink Maybe it could be one button to execute a shell script to stop the service, do a git pull and then restart the service. Similar to what you already have to restart the service for a config update but including a git pull.
Back to top
View user's profile Send private message
wmcbrine



Joined: 04 Jan 2008
Posts: 2009
Location: Maryland

PostPosted: Sat Feb 11, 2012 8:36 am    Post subject: Reply with quote

I have restart working now, but it's not in my repo yet.
_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
wmcbrine



Joined: 04 Jan 2008
Posts: 2009
Location: Maryland

PostPosted: Sat Feb 11, 2012 8:44 pm    Post subject: Reply with quote

In now.
_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
wmcbrine



Joined: 04 Jan 2008
Posts: 2009
Location: Maryland

PostPosted: Sun Feb 12, 2012 4:34 am    Post subject: Reply with quote

I have a version that should allow restart and quit from the Windows service in my repo now, but I haven't tested it.

So, besides the obvious, part of the reason I did all this was to allow pyTivo to be imported, stopped, and restarted from another program. Here's that program, as of now -- not terribly useful, just a proof of concept. It's a simple GUI wrapper. Possibly to be extended in the future.



wrapper.zip
 Description:

Download
 Filename:  wrapper.zip
 Filesize:  874 Bytes
 Downloaded:  10 Time(s)


_________________
My pyTivo fork . My page
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    pyTivo Discussion Forum Forum Index -> pyTivo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Site is in NO WAY affiliated with TiVo Inc

Powered by phpBB © 2001, 2005 phpBB Group
phpBB SEO

Get pytivo at SourceForge.net. Fast, secure and Free Open Source software downloads
[ Time: 0.2370s ][ Queries: 14 (0.0141s) ][ GZIP on - Debug on ]