Newer
Older
moodlog_web / README.md
root on 9 May 2019 1 KB fixing image
moodlog_web
===============

PHP web application for use with moodlog.txt

**<u>Installation</u>**

clone this into web root

edit config.php to contain:

1) md5 hash of login password

2) location of you moodlog.txt

**<u>Screenshot</u>**
![screenshot](https://rossmarks.uk/git/0xRM/moodlog_web/raw/361cf535d50f6aa4d3055d66c5c7d79513352f8e/example.png)

**<u>API</u>**

There is a sort-of API with this, it's super basic and crappy.

Use GET requests to /index.php

Always include &password=[your password here]

here are the basic functtions:

**&action=main_cal**

get unfiltered main cal averages - output JSON

**&action=filtered_cal&filter=**

get filtered main cal averages (filter=+test-test@test-test...) - output JSON

**&action=date&date=[specific date]**

get specific date's log - output HTML

**&action=date_average&date=[specific date]**

get specific date's average - output no.

**&action=latest&tag=[pos,neg or con]**

get latest 5 tags - output JSON

**&action=top&tag=[pos,neg or con]**

get top 5 tags - output JSON

**&action=alltag**

get all tags in popularity order - output JSON

**&action=save&log=[your log to save]**

save a new moodlog

the log format should be: *no|small description+tag-tag+tag@context*

however as simple single number will also work