Coder Social home page Coder Social logo

hiscore-api's Introduction

hiscore-api

An api to retrieve highscores from retroPie mame2003. This is a modification of https://github.com/CrazySpence/hiscore-php/, but in api form.

install apache/php

https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md

install the api

cd /var/www/html/
sudo git clone https://github.com/kmcrawford/hiscore-api.git

mame2003 hi scores location

By default this will use /home/pi/RetroPie/roms/mame-libretro/mame2003/hi/ if you have your games in another loction please set the environment variable HISCORE_LOCATION to the path of your highscores.

view api

http://retropie.local/hiscore-api/

credit:

https://github.com/CrazySpence/hiscore-php/
http://forum.arcadecontrols.com/index.php/topic,83614.0.html

example output

{
	"games": [{
		"scoreData": {
			"score": [42650, 40440, 28200, 27090, 26240],
			"initials": ["KEN", "CSC", "AAA", "KEN", "KEN"],
			"top": 42650
		},
		"game": "galaga"
	}, {
		"scoreData": {
			"score": 26440
		},
		"game": "mspacman"
	}, {
		"scoreData": {
			"score": 4190
		},
		"game": "pacman"
	}, {
		"scoreData": {
			"scores": [{
				"score": 10400,
				"scoreWithLeadingZeros": "010400",
				"initials": "   "
			}, {
				"score": 7650,
				"scoreWithLeadingZeros": "007650",
				"initials": "   "
			}, {
				"score": 6900,
				"scoreWithLeadingZeros": "006900",
				"initials": "KEN"
			}, {
				"score": 6100,
				"scoreWithLeadingZeros": "006100",
				"initials": "   "
			}, {
				"score": 5950,
				"scoreWithLeadingZeros": "005950",
				"initials": "   "
			}]
		},
		"game": "dkong"
	}]
}

hiscore-api's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.