Giter Site home page Giter Site logo

discodanz / rmonitorleaderboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zacharyfox/rmonitorleaderboard

0.0 0.0 0.0 729 KB

A Swing desktop application for displaying race information from an rmonitor protocol feed.

License: Other

Java 100.00%

rmonitorleaderboard's Introduction

RMonitor Leaderboard

RMonitor Leaderboard is a swing application designed for displaying race summary information from an rmonitor feed over tcp, such as the one provided by the MyLaps Orbits software.

Screenshot

Protocol information was taken from here: http://www.imsatiming.com/software/Protocols/AMB%20RMonitor%20Timing%20Protocol.pdf

It displays summary information and a sortable table of the current competitors in the race. In addition, it will provide an estimate of time or laps remaining (based on time to go / laps to go received from the rmonitor feed.)

In addition to the swing application, this repository contains library packages for handling rmonitor feed data.

Building the Application

// TODO

LIbrary Packages

com.zacharyfox.rmonitor.entities

This package contains the models for the race and competitors.

com.zacharyfox.rmonitor.message

This package contains classes for each type of message provided in the protocol, and a factory for creating the objects from an ascii string. Example usage below (returns a Heartbeat):

import com.zacharyfox.rmonitor.message.*

String line = "$F,14,\"00:12:45\",\"13:34:23\",\"00:09:47\",\"Green\"";
RMonitorMessage message = Factory.getMessage(line);

com.zacharyfox.rmonitor.utils

Duration

Duration takes time values as strings ("00:01:23.456"), integers (milliseconds), or floats (seconds) supplied by the feed and stores them as milliseconds.

import com.zacharyfox.rmonitor.utils.Duration

Duration duration = new Duration("00:01:23.456");

Connection

Connection extends Socket and contains a BufferedLineReader.

import com.zacharyfox.rmonitor.utils.Connection;

String ip = "127.0.0.1";
Integer port = 50000;
Connection connection = new Connection(ip, port);

while ((line = connection.readLine()) != null) {
	System.out.println(line);
}

rmonitorleaderboard's People

Contributors

zacharyfox avatar zfox-alertlogic 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.