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

#301 2010-05-25 22:07:32

Elgrande
Member
Registered: 2010-05-02
Posts: 9

Re: [REL] Automatic for funplug-0.5

Hy Kylek,

ok, but wath if a serie is in 2 diferent feeds and the are both from a diferent site then it is also going to download twice ...
that was 4 me the reason to add show specific feeds.

I think a user-configurable state size ( like x items per feed ) would be the awnser for me.


NAS: CH3MNAS with 2 TB storage.

Offline

 

#302 2010-05-31 20:37:34

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: [REL] Automatic for funplug-0.5

Ehancement request: Fixed time scheduling

An option to check for updates at a specific schedule would be great (along the same lines as crontab?). I have mine configured to check once an hour to coincide with some other events and things but the time creaps earlier and earlier as indicated in the log. Not a huge deal, but it is a small issue for me.


[10/05/29 22:44:37] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/29 23:44:23] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 00:44:10] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 01:43:56] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 02:43:43] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 03:43:30] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 04:43:16] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 05:43:03] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 06:42:50] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 07:42:37] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 08:42:23] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 09:42:10] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 10:41:56] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 11:41:43] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 12:41:30] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 13:41:16] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 14:41:03] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 15:40:50] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 16:40:37] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 17:40:23] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 18:40:10] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 19:39:57] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 20:39:43] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 21:39:30] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 22:39:16] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/30 23:39:03] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 00:38:49] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 01:38:36] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 02:38:23] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 03:38:10] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 04:37:57] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 05:37:44] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 06:37:30] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 07:37:17] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 08:37:04] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 09:36:50] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 10:36:37] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 11:36:24] ../src/automatic.c, 560: ------ Checking for new episodes ------
[10/05/31 12:36:10] ../src/automatic.c, 560: ------ Checking for new episodes ------

Sorry for the long post of the log, but I wanted to show you the drift even though the config is set to 1 hour.

Last edited by FunFiler (2010-07-02 04:48:49)


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#303 2010-07-01 00:27:55

nyunyu
Member
Registered: 2009-05-03
Posts: 44
Website

Re: [REL] Automatic for funplug-0.5

Kylek, I updated my DNS to v1.08 and suddenly I can't access transmission. Is there something that I should know?
Can you help please?
Thanks.


DNS323 + 2x1TB WD GREEN + Fun Plug 0.5 (Fonz) + Transmission 1.92 + Automatic 0.6 = GREAT!
Looking for Auto Direct Download script if possible smile

Offline

 

#304 2010-07-13 22:46:32

stealthdeath
Member
Registered: 2010-07-13
Posts: 6

Re: [REL] Automatic for funplug-0.5

Hey KyleK,

Love the work you have been doing, I really appreciate it. I just found out about automatic today and its a great idea, but I am unable to get it running.

I have all the dependencies installed, transmission etc all installed. I have been using transmission on the dns323 for a few months now. When I go to run the command /ffp/start/automatic.sh start. It seems like everything goes fine but it immediate stops the process. I checked the automatic.log file and here is what I got.


[10/07/13 13:35:42] ../src/automatic.c, 509: Daemon started
../src/automatic.c, 530: 1 feed URLs
../src/automatic.c, 531: Read 0 filters from config file
../src/automatic.c, 540: No filters specified in automatic.conf!

[10/07/13 13:35:42] ../src/automatic.c, 128: Shutting down daemon

I dont know if this will be any help, but I hope I can get it running! Thanks.

Offline

 

#305 2010-07-13 23:50:23

stealthdeath
Member
Registered: 2010-07-13
Posts: 6

Re: [REL] Automatic for funplug-0.5

Disregard that last msg, I figured it out, I need a filter for some reason. Is there anyway to just get everything from the RSS feed? My RSS feed is already filtered within my torrent site.

I dont know much about filters or patterns, thanks in advance.

Offline

 

#306 2010-07-14 08:36:48

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: [REL] Automatic for funplug-0.5

Although I use actual filters, I assume a wildcard would work:

filter = { pattern => ".*" }

a blank filter may also work:

filter = { pattern => "" }

Give it a shot. Edit the conf file, do a restart, then check the log to see if it worked.


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#307 2010-07-14 18:46:29

stealthdeath
Member
Registered: 2010-07-13
Posts: 6

Re: [REL] Automatic for funplug-0.5

The first one works, thanks.

THe second however gave me an error that the pattern essentially doesnt work.

I wish there was a way to do this, but I dont think it is possible.

I have 3 private trackers that I want to set up RSS feeds for, 1 TV, 1 music and 1 movie. And I wish I was able to have a filter to send each seperate RSS feed into it's own folder. Since not all of my TV shows will have the same strings in them to catch the filter, and all the music doesn't follow a specific format.

Offline

 

#308 2010-07-15 04:45:11

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: [REL] Automatic for funplug-0.5

I think your issue is more of a problem with Tranmission than Automatic.
Running multiple installs of both programs with different paths etc would work, but obviously complicate things more.

I'd like to see Automatic have filter lists as a subset of the feeds as it is causing me grief, but these programs are doing a great job otherwise.


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#309 2010-07-16 00:29:54

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

Re: [REL] Automatic for funplug-0.5

I promise, once the heatwave in Germany is over and I can clearly think again, I'll tackle this much-requested feature smile

Offline

 

#310 2010-07-17 07:09:37

Darkman
Member
From: Sonoran Desert
Registered: 2010-04-23
Posts: 30

Re: [REL] Automatic for funplug-0.5

heres an interesting question:
can you get automatic to notify multiple API keys?

presently sharing a seedbox and had a request to have notification sent a second place.. and rathar than pass on all the stuff from all my stuff onto his iphone, i want to have it send to two.

i tried 2 APIs separated by a comma-
it kinda ticks off automatic. hmm

Code:

/ # more /mnt/HD_a2/.transmission-daemon/automatic.log
[10/07/17 03:56:40] ../src/automatic.c, 509: Daemon started
../src/automatic.c, 530: 1 feed URLs
../src/automatic.c, 531: Read 38 filters from config file
../src/prowl.c, 141: Error: Prowl API  key 'Prowl-API-Key1,Prowl-API-Key2' is invalid!
../src/state.c, 111: Restored 65 old entries

(actual keys removed for my own sanity- cause i KNOW there are jokers out there like me that will send random messages just for fun)

anyway-
any suggestions?


DNS-343 1.04b03
4x 1.0T Seagate Barracuda 7200.11 RAID5 + 3TB external USB storage for occasional rsync backup.
Transmission-2.22-1 Automatic-0.6.4-1 netatalk-2.1.3-1 rsync-3.0.7-1 nano curl fortune screen SSH SSL SMBget wget
...and the all-powerful foo.sh smile

Offline

 

#311 2010-07-26 04:53:55

Atticus
New member
Registered: 2010-07-01
Posts: 2

Re: [REL] Automatic for funplug-0.5

First up, Kylek thanks for your hard work on automatic, I've been using it for a few months now (Since I bought my 323) and it works a treat.

**EDIT** Problem Solved, I put a whitespace in and it works a charm.

filter = { pattern => "(?!.*720p)(?=1x1\s)"
           folder => "/mnt/HD_a2/Media/TV Shows/Pilots/"
         }


for anyone else who wants to do the same ;-)

My issue is simply a lack of logic on my own part, I'm hoping someone here can help me out with a filter issue.

Quite simply I'm trying to make a filter to grab all the pilot episodes from an rss feed. (EZTV)

I've tried a few iterations all with the same result.

filter = { pattern => "(?!.*720p)(?=1x1)"
           folder => "/mnt/HD_a2/Media/TV Shows/Pilots/"
         }

They all result in grabbing not just 1x1 episodes but all 1x10-1x19 as well. I'm only home for 15 days a month so this ends up grabbing a lot of crap I don't want. I've tried to make filters along the lines of "1x1(?!/d) and such but thus far I haven't been able to nut this out.

Any help would be appreciated. I know I'm not the only one who likes to grab all the new pilots.

Last edited by Atticus (2010-07-26 05:05:28)

Offline

 

#312 2010-07-27 05:21:36

Muppet
Member
Registered: 2008-05-21
Posts: 44

Re: [REL] Automatic for funplug-0.5

Might be better to instead just negate anything that is a number. i.e. replace \s with [^0-9] or [^\d]

That way you will still match if the title has 1x1. or 1x1- or anything following the 1 which is not a space.

I dont think negative lookahead works with automatic but if it did you should have used a backslash instead of forward slash - (?!\d)

Offline

 

#313 2010-07-27 07:55:33

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

Re: [REL] Automatic for funplug-0.5

Negative lookahead works with Automatic, he even uses it to exclude "720p" from any of the names.

Offline

 

#314 2010-07-27 08:16:36

Muppet
Member
Registered: 2008-05-21
Posts: 44

Re: [REL] Automatic for funplug-0.5

right you are!

Next time I'll pay more attention smile

Offline

 

#315 2010-08-25 20:05:44

r2d290
Member
Registered: 2010-04-07
Posts: 25

Re: [REL] Automatic for funplug-0.5

I got the problem that I see some of the other here also have. I have not used automatic since before the summer, so I've forgot much of my knowlage sad

I try starting automatic manually:

root@nsa220plus:/ffp/start# ./automatic.sh start
Starting /ffp/bin/automatic -c /ffp/etc/automatic.conf
Error parsing config file: Unknown error
[10/08/25 17:38:43] ../src/automatic.c, 128: Shutting down daemon

What can I do to help you to help me to find the problem?
smile

Offline

 

#316 2010-08-25 20:47:47

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: [REL] Automatic for funplug-0.5

You should check file permissions first. After that, ensure it is a Linux friendly text file (i.e not edited by a Windows program such as Word as it messes with the CR/LF characters).

Try typing a simple new text file right in the telnet/SSH session and see if it loads ok.

Also, make sure the syntax in the file is correct i.e. all the opening brackets have a matching end bracket etc.


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#317 2010-08-25 21:47:19

r2d290
Member
Registered: 2010-04-07
Posts: 25

Re: [REL] Automatic for funplug-0.5

FunFiler wrote:

You should check file permissions first. After that, ensure it is a Linux friendly text file (i.e not edited by a Windows program such as Word as it messes with the CR/LF characters).

Try typing a simple new text file right in the telnet/SSH session and see if it loads ok.

Also, make sure the syntax in the file is correct i.e. all the opening brackets have a matching end bracket etc.

Hi, thanks for reply.

It worked with the same config-file in april, so I think it's a Linux friendly text file. But I think it's a good chance that permissions is the problem. The reason why I think that is because I had a conference with Kylek at IRC around April, and there was some problems with permissions about all over the place...

But, my linux-experience is not the best, so I'm not sure how I changes the permissions. Maybe you can help?


And by the way. How do I "Try typing a simple new text file right in the SSH session"?

Offline

 

#318 2010-08-28 11:49:20

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: [REL] Automatic for funplug-0.5

You can set permissions using the chmod command in telnet/ssh

To give full permissions (a bit overkill but it works)
chmod 777 {directory or file name}

I use "vi" a linux text editor to create/edit the configuration files. Best to google it to get the commands.


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#319 2010-09-01 00:59:33

r2d290
Member
Registered: 2010-04-07
Posts: 25

Re: [REL] Automatic for funplug-0.5

I tried the following with no success:

root@nsa220plus:/ffp# chmod 777 start
root@nsa220plus:/ffp# cd start/
root@nsa220plus:/ffp/start# chmod 777 ./automatic.sh
root@nsa220plus:/ffp/start# ./automatic.sh start
Starting /ffp/bin/automatic -c /ffp/etc/automatic.conf
Error parsing config file: Unknown error
[10/08/31 22:56:04] ../src/automatic.c, 128: Shutting down daemon
root@nsa220plus:/ffp/start#

Did I do something wrong?

Offline

 

#320 2010-09-01 04:04:12

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: [REL] Automatic for funplug-0.5

try
chmod 777 /ffp/etc/automatic.conf

then see if you get the same error on start.


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#321 2010-09-01 17:32:03

r2d290
Member
Registered: 2010-04-07
Posts: 25

Re: [REL] Automatic for funplug-0.5

root@nsa220plus:/# chmod 777 /ffp/etc/automatic.conf
root@nsa220plus:/# cd ffp/
root@nsa220plus:/ffp# cd start/
root@nsa220plus:/ffp/start# ./automatic.sh start
Starting /ffp/bin/automatic -c /ffp/etc/automatic.conf
Error parsing config file: Unknown error
[10/09/01 15:28:35] ../src/automatic.c, 128: Shutting down daemon
root@nsa220plus:/ffp/start#

Offline

 

#322 2010-09-01 20:43:42

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: [REL] Automatic for funplug-0.5

Can you post that file?

Try something like this:
(modify host and port as required)

Code:

transmission-version = "1.3"
rpc-host = "192.168.1.41"
rpc-port = 9090

feed = { url => "http://www.ezrss.it/feed/" }

interval = 20
use-transmission = yes
start-torrents = yes
torrent-folder = "/tmp"
statefile = "/mnt/HD_a2/.transmission-daemon/automatic.state"

filter = { pattern => "(?!.*(micro|repack))^Eureka" }

Last edited by FunFiler (2010-09-01 20:53:10)


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#323 2010-09-02 00:03:18

r2d290
Member
Registered: 2010-04-07
Posts: 25

Re: [REL] Automatic for funplug-0.5

The content of automatic.conf:

##############################
## Version-specific options ##
##############################

# Transmission version. Options are "1.2", "1.3", and "external"
transmission-version = "1.3"

# Call an external program instead of transmission directly
#
# If you use this, set transmission-version to "external"
# For best results, use an absolute path to the executable
# Executable is passed a single parameter, the name of the .torrent
# file that was downloaded.  The .torrent file passed to this external
# program may be removed after the program returns.
# The program should return exit code 0 for success and non-0 for failure
# Automatic won't respond to ctrl-C while waiting for this to return
#
# transmission-external = "/usr/local/bin/custom-add-torrent"

# For Transmission 1.3x and newer only: set the host on which Transmission runs (default: localhost)
rpc-host = "localhost"

# For Transmission 1.3x and newer only: set the RPC port on which Transmission & Clutch communicate (default: 9091)
# rpc-port = 9091

# For Transmission 1.3x and newer only: If you configured Transmission/Clutch to use password authentication, Automatic needs that information as well
rpc-auth = "lo****:pi*****"

# For Transmission 1.2x only: Path to the Transmission configuration files
# transmission-home = "~/.config/transmission"


#####################
## General options ##
#####################


# list of feed URLs. You can specify one or more feeds, in case of the latter use curly brackets (see the "patterns" option for an example)
# url = "http://rss.thepiratebay.org/205"

# feed = { url => "http://www.*******:COOKIE:uid=41***;pass=0b1****" }

feed = { url => "http://www.***bits.net/rss.php?feed=dl&*****"
      cookies => "uid=41***;pass=0b1b***"
}

# interval in minutes between checks for new downloads
interval = 1

# Limit upload speed (in KB/s) for each torrent that is added to Transmission via Automatic
#upload-limit = 10

# Automatically add downloaded torrents to Transmission (requires
# transmission-daemon and transmission-remote to be installed or use
# of "external" option)
# If this is not set, all Automatic will do is save the .torrent file.
use-transmission = yes

# Instruct Transmission to immediately start downloading torrents after being added
# If set to 'no' torrents will be added in a paused state
start-torrents = yes

# path where Automatic will store downloaded torrents
torrent-folder = "/tmp"

# path to the file which stores information about already downloaded torrents (so they don't get readded to Transmission)
statefile = "~/.config/automatic.state"

# Prowl API key. You can use this to send push notifications to an iPhone. See http://prowl.weks.net for more information
#prowl-apikey = ""

# patterns contains a number of regular expressions which are matched against the RSS feed entries
# please don't use curly brackets within a regular expression, it'll horribly break the configuration parser smile
# letter-casing does not matter

# patterns =  {
#           "Doctor"
#           "Something.else.to.download.*720p"
#               "(?!.*720p)Some.Video.But.Not.The.HD.Version"
#             }


filter = { pattern => "Hotel"
           folder => "/mnt/HD_a2/Downloads/Hotel"
         }
    }

The cookie-part is the way Kylek told me to do it for half a year ago, and then it worked.
Do you want me to edit my automatic.conf so it is identical with the part you pasted?

Offline

 

#324 2010-09-02 00:19:35

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: [REL] Automatic for funplug-0.5

Yes, try something REALLY simple just to see if it works. Keep a copy of your original obviously.

It could be as easy as removing the extra } at the end though smile


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

#325 2010-09-02 04:34:10

FunFiler
Member
Registered: 2010-05-23
Posts: 577

Re: [REL] Automatic for funplug-0.5

FWIW - polling every minute seems a bit agressive.


3 * (DNS-323 with 2 * 2TB) = 12TB Running FW v1.08 & FFP v0.5
Useful Links: Transmission, Transmission Remote, Automatic

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB