2018-12-05 09:54:25 -05:00
2019-09-12 17:15:00 -04:00
2020-08-30 15:42:02 -04:00
2020-08-30 15:40:01 -04:00
2020-08-30 15:40:15 -04:00
2019-09-12 20:30:15 -04:00
2020-08-30 16:07:22 -04:00
2019-09-12 17:15:11 -04:00
2020-08-30 15:39:40 -04:00

PS4 Gametime

Prerequisites

  • MySQL Database
  • Node-Red server with ps4-waker installed.

MySQL Database

  • Table :
    CREATE DATABASE ps4 /*!40100 DEFAULT CHARACTER SET utf8 */;

  • game_time :
    USE ps4; DROP TABLE IF EXISTS game_time; CREATE TABLE game_time ( id int(11) NOT NULL AUTO_INCREMENT, timestamp timestamp NOT NULL DEFAULT current_timestamp(), game_id varchar(255) NOT NULL, game_name varchar(255) NOT NULL, game_start varchar(255) NOT NULL, game_end varchar(255) DEFAULT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

  • game_thumbnail :
    USE ps4; DROP TABLE IF EXISTS game_thumbnail; CREATE TABLE game_thumbnail ( id int(11) NOT NULL AUTO_INCREMENT, game_id varchar(255) NOT NULL, thumbnail longblob NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Node-Red Flow

  • Use "nodered.flow" to import the flow.

To do

  • Add a way to use multi-user time attribute.
  • Add a login (oauth?) to prevent image change.
  • Make thumnail the right size before saving.

Changelog (yyyy-mm-dd)

2020.08.30

  • Moved from intenal DB Class to MeekroDB
  • Moved from extenal URL for thumbnail to internally stored thumbnail.
Description
No description provided
Readme 409 KiB
Languages
PHP 93.7%
CSS 4.7%
JavaScript 1.6%