Hi!
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:
ampima.py
PiwikTracker.php
Place both files here:
/var/hda/apps/
cd /var/hda/apps
wget http://dl.dropbox.com/u/9322690/Ampima/ampima.py
wget http://dl.dropbox.com/u/9322690/Ampima/PiwikTracker.php
chown -R apache:users /var/hda/apps/ (for Fedora)
chown -R www-data:users /var/hda/apps/ (for Ubuntu)
chmod a+x ampima.py
cd
Create Cron-Job:
Ubuntu:
sudo crontab -u www-data -e
Fedora:
crontab -u apache -e
Choose your favourite editor and enter:
0 4 * * * /var/hda/apps/ampima.py --update
Amahi Piwik Manager
Re: Amahi Piwik Manager
uhhm ,very interesting. anyone has tried yet?
Who is online
Users browsing this forum: No registered users and 59 guests