Amahi Piwik Manager

Posts: 134
Joined: Thu Oct 13, 2011 8:03 am

Amahi Piwik Manager

Postby stern88 » Sat Aug 04, 2012 12:27 pm


I'm working on a script which automatically configures all Amahi-Apps for Piwik. Anyone who is interested in helping me making the script "series maturity" please PM me. I've named this script "AmPiMa" which means "Amahi Piwik Manager" and will release it under the "GNU General Public License" (or something like that).
The main idea is to run this script by a Cron-Job, so the user will never have to call this script manually

I'm proud to help the community making Amahi a little bit better and hope there will be some volunteers.

# manpage

ampima --add <appname>

Adds an app to monitor list for Piwik

ampima --remove <appname>

Removes an app from monitor list

ampima --update
ampima --update <appname>

Looks for new apps and add em to monitor list. Apps which are removed by the user (ampima --remove) wont be added to monitor list.

ampima --reset
ampima --reset <appname>

Ampima will delete all modified datas and will restore them from backups.

# Installation

There are two files:

Place both files here:

cd /var/hda/apps
chown -R apache:users /var/hda/apps/ (for Fedora)
chown -R www-data:users /var/hda/apps/ (for Ubuntu)
chmod a+x

Create Cron-Job:

sudo crontab -u www-data -e
crontab -u apache -e

Choose your favourite editor and enter:

0 4 * * * /var/hda/apps/ --update

Posts: 17
Joined: Sat May 19, 2012 8:25 am

Re: Amahi Piwik Manager

Postby sanfelix » Mon Sep 24, 2012 12:15 am

uhhm ,very interesting. anyone has tried yet?

Who is online

Users browsing this forum: No registered users and 1 guest