Mick,
he means make it into a plugin. take a look at like the screensaver plugin (src/plugins/screensaver.py) or icecast plugin (src/plugins/icecast.py), and put all your code in the poll function of the class that inherits from DaemonPlugin. You can read the plugin writing howto, it is incomplete but the sections you need to do this are there.
--
Michael Ruelle
[EMAIL PROTECTED]
-------------- Original message --------------
>
> > > a) into recodserver as rob suggested
> >
> > Right. I think this would make a good recordserver daemon plugin. This
> > will require a slight amount of work to hook the plugin's poll() method
> > into the server main loop. I will take care of that after Freevo 1.5 is
> > released.
> >
> Yes, i think this is the best place for it. i would love for my crappy
> coding to go mainstream ;-)
>
> > > b) at least into the freevo code.
> >
> > In the meantime you could still turn this into a daemon plugin and run
> > it inside Freevo main.
> >
> This sounds good, but I have no idea what it means.
>
> As a helper it imports config.py, reads for TV_REC_DIR and TV_REC_SPA CE.
> After starting it has a very simple loop to keep going (while 1: run;
> wait(60))
> I've hacked the gentoo init scripts and it runs at startup..
>
> Do you mean to have it run from local-conf.py like
> plugin.activate('tv_spacer')? That would "fit" freevo's config better
> woudn't it? I guess to do this I would need some knowledge of "making"
> plugins listen for events.
>
> Lets start:
> What even would be best to use? I see the menu redraws every 30 seconds,
> this interval would be puurfect to run, where do I find its name?
>
> Mick
> > -Rob
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email sponsored by Black Hat Briefings & Training.
> > Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> > digital self defense, t op technical experts, no vendor pitches,
> > unmatched networking opportunities. Visit www.blackhat.com
> > _______________________________________________
> > Freevo-devel mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/freevo-devel
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.com
> _______________________________________________
> Freevo-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/freevo-devel