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.
ampima --add <appname>
Adds an app to monitor list for Piwik
ampima --remove <appname>
Removes an app from monitor list
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 <appname>
Ampima will delete all modified datas and will restore them from backups.
There are two files:
Place both files here:
chown -R apache:users /var/hda/apps/ (for Fedora)
chown -R www-data:users /var/hda/apps/ (for Ubuntu)
chmod a+x ampima.py
sudo crontab -u www-data -e
crontab -u apache -e
Choose your favourite editor and enter:
0 4 * * * /var/hda/apps/ampima.py --update
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest