Diaspora pod uptime watch script in PHP
PHP CSS Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
css
db fix config file up like it was Dec 30, 2016
images and more cleanup Dec 21, 2016
js Single quotes for HTML and JS. Dec 21, 2016
log
.gitignore vendor gone Dec 30, 2016
COPYRIGHT add license since i am open sourcing this Oct 1, 2011
README.md
api-more.php fix api more Dec 17, 2016
api.php Add labels for HTML forms. Dec 23, 2016
bower.json and more cleanup Dec 21, 2016
cleanup.php add alt tags and fix add.php log so it writes Dec 30, 2016
composer.lock Ignore vendor and bower_components folders. Dec 21, 2016
config.php.example fix config file up like it was Dec 30, 2016
favicon.ico
go.php
index.php fix random, rename to go, link pods out for stats Dec 23, 2016
license.txt add license since i am open sourcing this Oct 1, 2011
logging.php
podmin.php Add labels for HTML forms. Dec 23, 2016
podminedit.php Add labels for HTML forms. Dec 23, 2016
rate.php Clean up most of the PHP code. Dec 22, 2016
robots.txt add pg start Sep 30, 2011
show.php
showfull.php
showmap.php fix random, rename to go, link pods out for stats Dec 23, 2016
showstats.php move external stats out of db and rename file Dec 23, 2016

README.md

Poduptime

Poduptime is software to get live stats and data on listed Diaspora Pods.

Dependencies:

php7.0 php7.0-curl php7.0-pgsql php-geoip php7.0-cli php7.0-common php7.0-json php7.0-readline
git
curl
postgresql postgresql-contrib
wget
dnsutils
npm
nodejs nodejs-legacy

To Install:

git clone https://github.com/diasporg/Poduptime.git
cd Poduptime
sudo npm install -g bower
bower install
cp config.php.example config.php

If you need to setup your Postgresql/DB:

sudo adduser podupuser
sudo -u postgres bash -c "psql -c \"CREATE USER podupuser WITH PASSWORD 'MYpassword';\""
sudo -u postgres bash -c "psql -c \"CREATE DATABASE podupdb;\""
sudo -u postgres bash -c "psql -c \"GRANT ALL PRIVILEGES ON DATABASE podupdb TO podupuser;\""

# update your local line to allow md5 METHOD
sudo nano /etc/postgresql/vx.x/main/pg_hba.conf

# restart postgresql

# import database structure
psql -u podupuser podupdb < db/tables.sql

Edit config.php to add your DB and file settings. touch add.log in location you configured in config.php

Source for https://podupti.me

Poduptime is software to get live stats and data on listed Diaspora Pods. Copyright (C) 2011 David Morley

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.