summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg2021-08-06 17:52:16 +0200
committerGeorg2021-08-06 17:52:16 +0200
commit57819c03f7c164c5e4d93f6288a87cee070408f1 (patch)
treeb2aa033a50ffa1dc9f699522a5afd0443aaf0b15
parent8ac54183cc4d44e95f3185aae22bc692c7397a2c (diff)
downloadstatistics-57819c03f7c164c5e4d93f6288a87cee070408f1.tar.gz
statistics-57819c03f7c164c5e4d93f6288a87cee070408f1.tar.bz2
statistics-57819c03f7c164c5e4d93f6288a87cee070408f1.zip
SuperSeriousStats Commit 06/08/2021
Signed-off-by: Georg <georg@lysergic.dev>
-rw-r--r--superseriousstats/README.md1
-rw-r--r--superseriousstats/configs/libertacasa/libcasa.conf31
-rw-r--r--superseriousstats/configs/libertacasa/libcasa.info.conf31
-rw-r--r--superseriousstats/crontab2
-rw-r--r--superseriousstats/www/README.md5
5 files changed, 70 insertions, 0 deletions
diff --git a/superseriousstats/README.md b/superseriousstats/README.md
new file mode 100644
index 0000000..5371f49
--- /dev/null
+++ b/superseriousstats/README.md
@@ -0,0 +1 @@
+Thank you: https://sss.dutnie.nl/
diff --git a/superseriousstats/configs/libertacasa/libcasa.conf b/superseriousstats/configs/libertacasa/libcasa.conf
new file mode 100644
index 0000000..8e081d4
--- /dev/null
+++ b/superseriousstats/configs/libertacasa/libcasa.conf
@@ -0,0 +1,31 @@
+# configuration file for superseriousstats
+
+### REQUIRED SETTINGS ###
+
+# name of the irc channel
+# example: "#my_channel"
+channel = "#libcasa"
+
+# name of the logfile parser (see parsers directory)
+# example: "parser_eggdrop"
+parser = "parser_supybot"
+
+# timezone the logs are in (see online ''tz database'')
+# example: "Europe/Berlin"
+timezone = "Europe/Berlin"
+
+# (path to) the sqlite database for this channel
+# example: "/var/www/databases/my_channel.db"
+database = "/opt/superseriousstats/databases/libertacasa/libcasa.db"
+
+### OPTIONAL SETTINGS (default values are shown below) ###
+
+#auto_link_nicks = "true" # link nicks like Guest33 to Guest
+#stylesheet = "sss.css" # change if you have a custom css
+#link_history_php = "true" # create links to history.php on the main page
+link_user_php = "true" # create links to user.php on the main/history pages
+#main_page = "./" # be specific if httpd doesn't know of index file
+#userpics_dir = "userpics" # directory to put user pics in
+#userpics_default = "" # default pic if none found for user
+#show_banner = "true" # put the sss logo at the top
+#favicon = "favicon.svg" # include a link to this favicon on all pages
diff --git a/superseriousstats/configs/libertacasa/libcasa.info.conf b/superseriousstats/configs/libertacasa/libcasa.info.conf
new file mode 100644
index 0000000..da414a8
--- /dev/null
+++ b/superseriousstats/configs/libertacasa/libcasa.info.conf
@@ -0,0 +1,31 @@
+# configuration file for superseriousstats
+
+### REQUIRED SETTINGS ###
+
+# name of the irc channel
+# example: "#my_channel"
+channel = "#libcasa.info"
+
+# name of the logfile parser (see parsers directory)
+# example: "parser_eggdrop"
+parser = "parser_supybot"
+
+# timezone the logs are in (see online ''tz database'')
+# example: "Europe/Berlin"
+timezone = "Europe/Berlin"
+
+# (path to) the sqlite database for this channel
+# example: "/var/www/databases/my_channel.db"
+database = "/opt/superseriousstats/databases/libertacasa/libcasa.info.db"
+
+### OPTIONAL SETTINGS (default values are shown below) ###
+
+#auto_link_nicks = "true" # link nicks like Guest33 to Guest
+#stylesheet = "sss.css" # change if you have a custom css
+#link_history_php = "true" # create links to history.php on the main page
+#link_user_php = "true" # create links to user.php on the main/history pages
+#main_page = "./" # be specific if httpd doesn't know of index file
+#userpics_dir = "userpics" # directory to put user pics in
+#userpics_default = "" # default pic if none found for user
+#show_banner = "true" # put the sss logo at the top
+#favicon = "favicon.svg" # include a link to this favicon on all pages
diff --git a/superseriousstats/crontab b/superseriousstats/crontab
new file mode 100644
index 0000000..d07fb10
--- /dev/null
+++ b/superseriousstats/crontab
@@ -0,0 +1,2 @@
+@hourly /usr/bin/php /opt/superseriousstats/superseriousstats/sss.php -v -c /opt/superseriousstats/configs/libertacasa/libcasa.conf -i /opt/limnoria/katyusha/logs/ChannelLogger/libcasa/\#libcasa/ -o /srv/www/superseriousstats/libertacasa/libcasa/index.html | nc -N 127.0.0.2 2424
+@hourly /usr/bin/php /opt/superseriousstats/superseriousstats/sss.php -v -c /opt/superseriousstats/configs/libertacasa/libcasa.info.conf -i /opt/limnoria/katyusha/logs/ChannelLogger/libcasa/\#libcasa.info/ -o /srv/www/superseriousstats/libertacasa/libcasa.info/index.html | nc -N 127.0.0.2 2424
diff --git a/superseriousstats/www/README.md b/superseriousstats/www/README.md
new file mode 100644
index 0000000..bb1e6a9
--- /dev/null
+++ b/superseriousstats/www/README.md
@@ -0,0 +1,5 @@
+LibertaCasa specific instructions:
+Adjust
+`private static string $database = '/opt/superseriousstats/databases/<network>/<channel>.db';`
+respectively in
+`/srv/www/superseriousstats/<network>/<channel>/web.php`