DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#26 2008-07-22 14:22:31

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Sorry, I must've missed that post.
Can you give more information on your problem? Can you start Automatic manually, by typing (in the ffp/start directory):

Code:

./automatic.sh start

funplug-0.5 creates a logfile at /mnt/HD_a2/ffp.log, check it for references to Automatic.
It should say

Code:

Starting /ffp/bin/automatic -c /ffp/etc/automatic.conf

This means it is executed by the boot script, but something causes the app to close down immediately.
If you've specified a logfile in your /ffp/etc/automatic.conf, it might contain information as to why it did not start properly.

If ffp.log says

Code:

* /ffp/start/automatic.sh inactive

instead, then it doesn't have the executable flag. Check via 'ls -alh'.

Offline

 

#27 2008-07-24 14:43:01

d98jh
Member
Registered: 2008-07-12
Posts: 10

Re: [REL] Automatic for funplug-0.5

I don't have any trouble starting automatic. with './automatic.sh start'. The only problem is that it won't start when I reboot the dns323.

The executable flag is set.

There is no referrence to automatic in the ffp.log, neither active nor inactive...

maybe it's a fun_plug problem that it doesn't run all scripts in /ffp/start.

Any other ideas?

Offline

 

#28 2008-07-24 14:55:45

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

That is very weird. Does the fun_plug script at startup maybe access a different /ffp root directory? (do you have a stray FFP setup somewhere)
If there's no mention whatsoever to automatic in ffp.log, then the automatic.sh is not where it's supposed to be.

Offline

 

#29 2008-07-24 15:21:09

d98jh
Member
Registered: 2008-07-12
Posts: 10

Re: [REL] Automatic for funplug-0.5

This is how it started:

I got the following error message in ffp.log after I upgraded to the latest version of automatic

rcorder: requirement `Transmission' in file `/ffp/start/automatic.sh' has no providers.

So I changed the REQUIRES: tag in automatic.sh from Transmission to transmission.

Now I don't get the error in ffp.log but automatic still won't start at boot.

Offline

 

#30 2008-07-24 15:41:17

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Actually, there's a bug in these startup scripts: the keywords for rcorder are PROVIDE: and REQUIRE:
Please correct this in both transmission.sh and automatic.sh, and  then type this on the console:

Code:

rcorder /ffp/start/*.sh

Both transmission.sh and automatic.sh should be listed somewhere in there, and transmission should be listed before automatic.sh

Offline

 

#31 2008-07-24 16:41:48

d98jh
Member
Registered: 2008-07-12
Posts: 10

Re: [REL] Automatic for funplug-0.5

I changed the startup scripts but that didn't solve my problem.

I did however notice that the script that's started before automatic is the ctrl_fanspeed script, which isn't run in the background and never let's the other scripts that are to be started after it execute.

So I wrote a new startup script that starts the ctrl_fanspeed script in the background in stead and now everything works great.

Thanks for your help! I probably wouldn't have found out what was wrong without your hint about the 'rcorder' command.
And thanks for the Automatic script! It wass actually one of the reasons I got the DNS-323, that I was able to automatically download torrents. smile

Keep up the good work!

Offline

 

#32 2008-07-24 17:00:29

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Nice to hear you could fix your problem smile

Offline

 

#33 2008-07-25 20:30:28

aceofbase
Member
Registered: 2008-07-25
Posts: 9

Re: [REL] Automatic for funplug-0.5

Hi

I would like to be able to just drop .torrent files in a specified folder and then get Transmission to DL them automatically.
Is it possible to use Automatic for this?

Offline

 

#34 2008-07-27 02:57:12

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Currently, that's not possible, but it's already on my todo list. I'll post here once it's been implemented.

Offline

 

#35 2008-07-27 07:57:44

aceofbase
Member
Registered: 2008-07-25
Posts: 9

Re: [REL] Automatic for funplug-0.5

Excellent! Keep up the good work.

Offline

 

#36 2008-07-28 07:48:05

diamond187
Member
Registered: 2008-03-30
Posts: 6

Re: [REL] Automatic for funplug-0.5

This script looks very promising indeed... Just wondering, taking a quick look at it it still looks fairly point and shoot, but are there plans in the works to add filtering / etc?

Right now I'm using scaneRSS with Azereus, and it works great.  For instance,

add an RSS feed for a local public broadcast program.. smile

Set a filter such that it downloads only new episodes from a certain group, or more specifically something like S03E08 or greater, no duplicates, etc.


Any thoughts on implementing this, or is it there and I just need to really start boning back up on my regex?

Thanks again for the script, if it starts working I can finally turn off the machine that runs all the time that lives just to do BT!

Diamond187

Offline

 

#37 2008-07-28 12:03:32

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

You basically just described the single function of Automatic smile
Only that the filters are described as regular expressions.

It's not that hard, really. Take a look at the automatic.conf-sample in the /ffp/etc folder to see some examples. If you need help with regular expressions I can be of assistance as well.

I'm always open for suggestions, so let me know if something's missing that you'd like to see here.

Offline

 

#38 2008-07-28 12:59:25

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

New version 0.1.4 is out. I updated the first post.

mudapw: This fixes the segmentation fault you experienced, so the program shouldn't crash on you anymore.
Downloading torrents from password-protected feeds proves a bit more difficult though, so that's not possible yet, I'm afraid.
I haven't found a solution for this that I'm happy with. I'll keep you updated though.

Offline

 

#39 2008-08-03 22:58:44

Fevida
Member
From: Eindhoven, Netherlands
Registered: 2008-08-03
Posts: 12

Re: [REL] Automatic for funplug-0.5

I'd love to give Automatic a try, but the downloadlink in the startpost is not working. sad

Offline

 

#40 2008-08-04 01:46:25

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Fevida wrote:

I'd love to give Automatic a try, but the downloadlink in the startpost is not working. :(

I'm terribly sorry, webspace was offline for a while. It should work fine now though, please try again.

Offline

 

#41 2008-08-04 11:36:01

Fevida
Member
From: Eindhoven, Netherlands
Registered: 2008-08-03
Posts: 12

Re: [REL] Automatic for funplug-0.5

Thnx for the download!

I think I installed automatic successfully, no errors what so ever. But I have some question.

- Is it possible to specify multiple RSS-feeds in the config-file to check? I ask this because when I use a RSS-provider like http://tvrss.net I have the option to specify regular expressions in the feed itself.
- In case of tvrss.net I don't need automatic to use regular expressions in it's own config, but when there are nu regular expression specified I get "No patterns specified in automatic.conf!" at startup. Are those patterns required for automatic to work at all?

Offline

 

#42 2008-08-04 11:42:12

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

The next version will support multiple RSS feeds, shouldn't be that much longer. I'll keep you posted.

Automatic is designed to check the items of an RSS feed against one or more filters. Not defining any filters (regular expressions) currently doesn't work. It would never download anything because it doesn't match anything.

If you want to download every item in your feed, I guess you could specify a singler filter as ".*", I haven't tested that yet though.

Doesn't it make more sense to subscribe to a feed that provides TV episodes of different shows, and then pick the ones you want to see via filters?
Specifying the filter inside the URL seems somewhat convoluted to me.

Offline

 

#43 2008-08-11 11:50:32

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Just FYI, if you upgrade to Transmission 1.3x, Automatic won't work properly anymore because of the extensive changes in Transmission. I'll implement the changes and hope to have a release ready within a week.

Offline

 

#44 2008-08-15 17:18:35

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

New version 0.2 with support for Transmission 1.3+ and support for multiple RSS feeds is out!

The first post has been updated with information about the new release and new links as well.

Please note that the configuration file has numerous new options and some were removed, so please use the new automatic.conf-sample as template.

EDIT: Ok, for some reason the changes of the first post I made earlier didn't take. I've updated it again and it's working fine now.

Last edited by KyleK (2008-08-15 22:17:57)

Offline

 

#45 2008-08-16 18:55:55

Fevida
Member
From: Eindhoven, Netherlands
Registered: 2008-08-03
Posts: 12

Re: [REL] Automatic for funplug-0.5

Thnx for this great update! Looks like all is working just fine. smile

Offline

 

#46 2008-09-02 21:39:39

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: [REL] Automatic for funplug-0.5

Sounds like a great tool. Good job. A nice feature would be to have it also check a watch folder, so if you upload/put a torrent file in that folder, it's added to transmission daemon as well!

Is the source available? (Above link to source doesn't get me to source download, just info page on version 0.14).

Last edited by Opperpanter (2008-09-02 21:40:40)

Offline

 

#47 2008-09-02 21:55:55

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Sorry,

I've been a bit busy lately (started at a new job), so I kinda forgot to update the sources. I'll try to upload the new stuff this weekend.

Yes, watchfolder functionality is on the To-Do list smile

Offline

 

#48 2008-09-03 01:50:29

index monkey
Member
From: UK
Registered: 2007-06-14
Posts: 112

Re: [REL] Automatic for funplug-0.5

watchfolder function(ish) - if you copy .torrent files to
/mnt/HD_a2/.transmission-daemon/torrents/
and restart transmission
/mnt/HD_a2/ffp/start/transmission.sh restart
it will pick up torrent files you put there and add them without you using the web interface to do it.
handy if you have a large batch of torrent files you want to add.
It takes a while to get back up and running but at least you dont have to upload each file manually.

Last edited by index monkey (2008-09-03 01:57:23)


DNS-323, HW B1, 2 x 2TB WD green, fw 1.08, fun_plug 0.5, transmission, automatic, nzbget newsreader & rsync time machine backup.

Offline

 

#49 2008-09-03 22:08:32

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: [REL] Automatic for funplug-0.5

index monkey wrote:

watchfolder function(ish) - if you copy .torrent files to
/mnt/HD_a2/.transmission-daemon/torrents/
and restart transmission
/mnt/HD_a2/ffp/start/transmission.sh restart
it will pick up torrent files you put there and add them without you using the web interface to do it.
handy if you have a large batch of torrent files you want to add.
It takes a while to get back up and running but at least you dont have to upload each file manually.

hmm ok, didn't know that, BUT a restart will sometimes indeed cause you to loose some good connections and stuff..

I just wrote a script to handle a watch folder myself.

If interest is there, I can post it here on the forum.

Offline

 

#50 2008-09-06 03:12:30

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: [REL] Automatic for funplug-0.5

Just as a heads up, the downloads won't be available for about a week. Waiting for new internet connection.
I'll let you guys know as soon as everything's back up to normal.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB