PHP web application for use with moodlog.txt

0xRoM authored 27 days ago
deps now with added habit tracker 2 months ago
webfonts now with added habit tracker 2 months ago
README.md now with added habit tracker 2 months ago
config.php now with added habit tracker 2 months ago
example.png now with added habit tracker 2 months ago
example_mob.png now with added habit tracker 2 months ago
habit.js minor ui bug fixes 27 days ago
habit.php minor ui bug fixes 27 days ago
habit.txt now with added habit tracker 2 months ago
habit_ui.php fixed the last of the logic errors! well one can dream 2 months ago
habit_ui_script.js ui updates, more stats, logic fixes 2 months ago
habit_ui_style.css ui updates, more stats, logic fixes 2 months ago
index.php ui improvements 2 months ago
login.html Initial commit 4 years ago
moodlog.txt now with added habit tracker 2 months ago
script.js ლ(⋋·⋌)ლ more fekkin UI fixes 2 months ago
style.css hopefully final ui and logic changes for a while 2 months ago
README.md

moodlog_web

PHP web application for use with moodlog.txt

Installation

clone this into web root

edit config.php to contain:

1) md5 hash of login password

2) location of you moodlog.txt

Screenshot screenshot

android screenshot

API

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

&action=habit_cal_daily&habit=[word]

get habit daily stats

&action=habit_cal_weekly&habit=[word]

get habit weekly stats

&action=habit_update&habit=[word]

toggle habit status for today