RetroStats Web Application
-
RetroStats
I spent some of my free time building a stats tool for you to show how much time you spend in your games, which games you play and when you play them during the week.
Up until recently you had to use the tool via command line interface, but to make it more usable to the average user I have implemented a web client that implements the same functionality, but in your browser on PC or in your phone. Here is some screenshots from the app.
Old thread were some preview and instructions for the CLI tool is available.Features
-
CLI tool and browser app to view your stats
-
Histogram showing Total Time played per game
-
Histogram showing Number of Times you played a game
-
Histogram showing Average Session Time per game
-
Histogram showing Median Session Time per game
-
Heatmap showing which weekday and which hours during the day you spend the most time playing
*Inclusive and exclusive per system filters, show only the platform you are interested in, such as Arcade, SNES or PSX -
Skip sessions that are too short (you accidentally started the wrong game and immediately exited, default 120 seconds)
-
Decide the number of days you want to lookback for your statistics, see your game consumption for the last 7 days, just put 7
-
Number of games you want to include in the plot to make it easier to view, set to empty or 0 to show all games
-
Hover the graph for detailed information, such as exact play time or number of times played.
-
Recently played games (Currently CLI tool only)
Desktop Browser
Phone Browser
Cool, how do install this on my RetroPie?
At the moment there is only manual installation available, step by step instructions are available in the github-repo README.md. Go there and scroll down.Roadmap
Also available in the repo. -
-
Hi @langest ,
first of all I want to thanks you for this nice works, exactly what i was looking for!
Couple of question and notes:
- During the install in my pi , I needed to upgrade to python3.7 ( and pip as well ) not standard in the distro, then to compile i use the command pip3.7 install . --user
- Need to add un entry in /etc/profile to enable $HOME/.local/bin in $PATH
- crontab -e dosent works either as a pi user or root user, I add an entry in /etc/crontab instead @reboot pi retro-stats-server &
after that everything went like a charm...
I take a look at the code , and I see you create also an History plot that is not seem to appear in the main pages . ( /history is populated but not linked in the main page ), is it something you want to develop in the next release ?
Weekly Activity works for a while ( first 6 days ) then disappear, if i check the /schedule it seam populated properly.
Last note , do you mind to better comment the code ? Love to contribute but i'm really newbie.
Thanks, Fabio
-
@Fabioborsoi said in RetroStats Web Application:
first of all I want to thanks you for this nice works, exactly what i was looking for!
Glad to hear!
@Fabioborsoi said in RetroStats Web Application:
Couple of question and notes:
During the install in my pi , I needed to upgrade to python3.7 ( and pip as well ) not standard in the distro, then to compile i use the command pip3.7 install . --user
Need to add un entry in /etc/profile to enable $HOME/.local/bin in $PATH
crontab -e dosent works either as a pi user or root user, I add an entry in /etc/crontab instead @reboot pi retro-stats-server &Interesting. I tried it on a clear slate on my Pi 4, no hickups. Which Pi are you using?
@Fabioborsoi said in RetroStats Web Application:
History plot that is not seem to appear in the main pages . ( /history is populated but not linked in the main page ), is it something you want to develop in the next release ?
Yes, it is implemented and fully functional in the CLI tool. The reason why I haven't released it in the web GUI is just because I didn't have the time yet. So yes, it is in pipeline for some upcoming release.
@Fabioborsoi said in RetroStats Web Application:
Weekly Activity works for a while ( first 6 days ) then disappear, if i check the /schedule it seam populated properly.
Did you perhaps set lookback to 7? If you set it to 0 you should get full history.
Also, if you power off your pi, you will need to have it connected to your network to sync the time since the RPi doesn't persist time and date when shut down.@Fabioborsoi said in RetroStats Web Application:
Last note , do you mind to better comment the code ? Love to contribute but i'm really newbie.
I probably won't comment the code. Comments tend to go out of date. I might clean it up. Some more classes where I currently use dicts might make the program easier to understand.
If you want to contribute, what do you want to do?
Web GUI work or Python backend? I have some suggestions depending on what you want to do. -
Weekly activity does indeed seem broken for me as well. Maybe some dependency has been updated...
So that needs some investigation. I will look at that when I get the time. -
@Fabioborsoi said in RetroStats Web Application:
Weekly Activity works for a while ( first 6 days ) then disappear, if i check the /schedule it seam populated properly.
I see what you mean. There was an indexing error, not sure if or when I might have introduced it. Should be fixed in 0.0.7.
Edit: I rushed the fix and it is not complete in 0.0.7, 0.0.8 should work.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.