sgdq-collector
v1.0.0
Published
Collects Twitch / Donation information and pushes data to Firebase
Downloads
3
Readme
sgdq-collector
:video_game: Backend data collector for SGDQ-Stats
Tools
- NodeJS
- node-scheduler for scheduling
- scrape-it for scraping donation page
- tmi.js for Twitch.tv data
- Firebase for backend storage
- MongoDB for local backup (and more data storage for later use)
Firebase Schema
data
=> Holds collection of data points<epoch time>
=> Entrym
=> Total donations ($)d
=> Total num donatorsv
=> Number of Twitch viewrs
games
=> Holds collection of games<epoch time>
=> Start time of gametitle
=> Name of gamerunner
=> Name of speed runnerduration
=> Planned duration of game's runstart_time
=> Start time of game's run in epoch time (Redundant...)
stats
avg_donation
=> Average donation ammount ($)max_donation
=> Largest donation ammount ($)num_donators
=> Number of individual donations (not a perfect 1-to-1 map, but close enough)total_donations
=> Sum of all donations ($)