PmWikiWatch

Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.


PmWiki-Watch

Why I created pmwiki-watch

Using the PmWiki program and detecting other PmWikis in the Web I found it would be a good thing to search multiple PmWikis for recently changed sites. Otherwise the built-in mailpost function was not flexible enough and could not be configured to search in other PmWikis. Therefore I decided to develop a universal tool that can watch changes from any PmWiki and post me the changes via Mail. This could be configured by time directed jobs (cron jobs).

News

  • 04/30/2004 Release 0.0.7

Requirements

  • Linux (tested on debian woody, suse 8.2)
  • Ruby Skript Language >= 1.6.7 (debian: apt-get install ruby)

Installation

  • get the latest archive from [(approve links) edit diff]
  • extract tarball
    • $ tar -xvzf pmwiki-watch.tar.gz
  • go into created pmwiki-watch dir and run as root:
    • # ruby setup.rb config
    • # ruby setup.rb setup
    • # ruby setup.rb install
  • after new install:
    • # cd /etc/pmwiki-watch
    • # cp pmwiki-watch.conf.tmpl pmwiki-watch.conf
    • # cp parse.rb.tmpl parse.rb
  • setup your pmwiki-watch.conf
  • create your own Job-Files in /etc/pmwiki-watch
  • Test:
    • # pmwiki-watch -j myjob

Examples

This Example checks the pmichaud Wiki and the lugrudo Wiki and send a Mail to foo@server.de and bar@server.de. Pmwiki-watch is daily started with a cronjob: `pmwiki-watch -j daily´. The Linux-Box has a local Smtp-Mailserver.

 
---snip--- file /etc/pmwiki-watch/pmwiki-watch.conf (Configuration)
DebugLevel   1
SendMail     yes
SmtpServer   localhost
MailFrom mailerdaemon@myserver.de
HttpRedo     3

<WatchWiki PMichaud>
  url      www.pmichaud.com/wiki
  ARFormat 1  # new 0.6.x AllRecentChanges Format
</WatchWiki>

<WatchWiki Lugrudo>
  url      wiki.lugrudo.de/pmwiki.php
  ARFormat 0  # old 0.5.x AllRecentChanges Format
</WatchWiki>
---snip--- end file


---snip--- file /etc/pmwiki-watch/daily (Jobfile)
PMichaud  foo@server.de
PMichaud  bar@server.de
Lugrudo   foo@server.de
Lugrudo   bar@server.de
---snip--- end file


---snip--- Mail result
To: foo@server.de
Subject: [PMichaud] recent changes daily
From: mailerdaemon@myserver.de
Date: Fri, 23 Apr 2004 17:20:02 +0200 (CEST)

Changed Pages:
(URL: http://www.pmichaud.com/wiki?pagename=Main.AllRecentChanges)

PmWiki/WikiPage                     Fri Apr 23 07:34:00 CEST 2004
PmWiki/PmWiki                       Fri Apr 23 07:12:00 CEST 2004
Main/SideBar                        Fri Apr 23 02:07:00 CEST 2004
Main/WikiSandbox                    Fri Apr 23 01:47:00 CEST 2004
PmWiki/PmWikiUsers                  Thu Apr 22 22:22:00 CEST 2004
Cookbook/PmWikiLogo                 Thu Apr 22 21:04:00 CEST 2004
PmWiki/PhpSafeMode                  Thu Apr 22 18:13:00 CEST 2004
Cookbook/ComplexRecipes             Thu Apr 22 17:51:00 CEST 2004
---snip--- End Mail

pmwiki-2.3.38 -- Last modified by {{wm}}?

from IP: 85.171.160.186 ip should be disabled by default for security reasons