Share My Creation JG Squash Score Board 2.0

Ok, this is my 2nd app.

It's functions quite nicely, but I've got larger plans for it. Including bluetooth connectivity to a arduino and 2x 20chars lcd display to update scores in real time.

Instruction;
Android, grab the file and install it.

Long click on buttons allows you to edit individual names.
Single click increments score, games, etc...
Spinner allow you to choose which side you serve on.

Scoring is Point a Rally, 5 matches in a set.

Still working on a few things...
 
Last edited:

merlin2049er

Well-Known Member
Licensed User
Longtime User
Hi, I designed it to fit my phone. I'll be looking at scaling it for other devices too.
I also designed it off centre, I'll be putting a few more buttons on the right hand side.

Thanks for the feedback, there is more work to be done on the app.
 

merlin2049er

Well-Known Member
Licensed User
Longtime User
New update.

Fixed default serve side to right, added choice button (switch serve side to the left).
Added history of sets.
Added bluetooth connectivity...
Added admobs - like to keep the app free

Need to work on dashboard :-

Changed my mind, dashboard will run on a composite or hdmi monitor.
Ideally dashboard will run from a raspberry pi, with a bluetooth dongle.

Basically I'll be transmitting about 2 lines of 30 characters to update the scoreboard.
Need to connect to serial port (via bluetooth), monitor incoming data and parse that nicely into a display.

I think my best bet is to use python with pyserial, but I'm looking at it. (Could use some help here).
 

Attachments

  • result.apk
    275.3 KB · Views: 226

Tom Christman

Active Member
Licensed User
Longtime User
I have some python code useable on a Windows box that you might be able to port to another device.


B4X:
#Python code
import serial, os, string, math
#Serial Data Input with save file
ser = serial.Serial(port='COM2',baudrate=9600,bytesize=8, parity="N",stopbits=1,timeout=200,xonxoff=0, rtscts=0, interCharTimeout=None)

ser.write(2)

#whilenot(line.startswith("wait or idle here for data")):

logfile = open('test.log","w")
i=0
while i < 200 : #Or number of data points
     line= ser.readline()
     if (line.starts with ("Data")):
         print line
         line = ser.readline()
         print line
         line = ser.readline()
         print line
         ser.close
#      logfile.close()
         break
else: logfile.write(line)
print line
i=i+1

ser.close()
logfile.close()
Hope this helps.
Tom
 

merlin2049er

Well-Known Member
Licensed User
Longtime User
Thanks, that's a start.

I have to get python up and running on a rasperberry pi. I guess I can use tkinter to display some sort of gui dashboard.
 

Tom Christman

Active Member
Licensed User
Longtime User
Sure that would work, or you can use a windows pc and a terminal emulator such as PuTTY or Tera Term. If you have a Windows version older than Vista you can use the built-in HyperTerminal in Accessories.
 

merlin2049er

Well-Known Member
Licensed User
Longtime User
Oh, I'm so stupid... I just thought of something that I've already finished.

I'll be developing another basic4android app that will just display the scoreboard itself for spectators. I'm developing it for a 10" portrait tablet.

Makes my job so much easier. I thought I had to jump thru loops.
 

merlin2049er

Well-Known Member
Licensed User
Longtime User
More updates -

I've added violations button, which pops up a panel and allows the ref to select the player from a spinner, and the violation from the 2nd spinner then populated the listview. - and award a point if the violation is a "CS" - Conduct Stroke and loss of serve.

Added a timer which counts up in 1 minute increments, automatically stops the timer after the game end. Displays total time of the set when it's over in the history (along with the score).

I've added a undo button - which toasts a message saying "Available in Pro Version" - I'll need to figure out how to deal with lists or arrays or hire a "Pro" programmer. - this frustrated me last night for a while (then I put it on the back burner).

Still working on using streaming text to the other paired android tablet.
 

merlin2049er

Well-Known Member
Licensed User
Longtime User
Almost nearing completion; I've worked on the scoreboard side, enabling the use of multiple fonts (default, and 3 others) - custom toast message(s).
Will add live wallpaper in the pro version.

I need approximately 30 minutes to discuss with someone how to implement asyncstreamtext - send me a private IM with a your rate and availability.
Sending text from one app and receiving text in the other app. Once messages are being sent I can figure out what to do with the rest.

Then you can invoice me thru paypal for your time.
 

merlin2049er

Well-Known Member
Licensed User
Longtime User
Sample Log file of a complete game;

LogCat connected to: B4A-Bridge: Acer A500-
--------- beginning of /dev/log/main
--------- beginning of /dev/log/system
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (service1) Create **
** Service (service1) Start **
Connected to B4A-Bridge (Wifi)
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:JG_Squash.board
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
P1S.Player 1 1 0 0 0 0
P1S.Player 1 1 0 0 0 0
P2S.Player 2 1 0 0 0 0
P2S.Player 2 1 0 0 0 0
P1S.Player 1 2 0 0 0 0
P1S.Player 1 2 0 0 0 0
P2S.Player 2 2 0 0 0 0
P2S.Player 2 2 0 0 0 0
P1S.Player 1 3 0 0 0 0
P1S.Player 1 3 0 0 0 0
P2S.Player 2 3 0 0 0 0
P2S.Player 2 3 0 0 0 0
P2S.Player 2 4 0 0 0 0
P2S.Player 2 4 0 0 0 0
P1S.Player 1 4 0 0 0 0
P1S.Player 1 4 0 0 0 0
P2S.Player 2 5 0 0 0 0
P2S.Player 2 5 0 0 0 0
P1Fred
P1Fred
P2Ted
P2Ted
P2S.Ted 6 0 0 0 0
P2S.Ted 6 0 0 0 0
P1S.Fred 5 0 0 0 0
P1S.Fred 5 0 0 0 0
P2S.Ted 7 0 0 0 0
P2S.Ted 7 0 0 0 0
P1S.Fred 6 0 0 0 0
P1S.Fred 6 0 0 0 0
P2S.Ted 8 0 0 0 0
P2S.Ted 8 0 0 0 0
P1S.Fred 7 0 0 0 0
P1S.Fred 7 0 0 0 0
P2S.Ted 9 0 0 0 0
P2S.Ted 9 0 0 0 0
P2S.Ted 10 0 0 0 0
P2S.Ted 10 0 0 0 0
P1S.Fred 8 0 0 0 0
P1S.Fred 8 0 0 0 0
P1S.Fred 9 0 0 0 0
P1S.Fred 9 0 0 0 0
P1S.Fred 10 0 0 0 0
P1S.Fred 10 0 0 0 0
P1S.Fred 11 0 0 0 0
P1S.Fred 11 0 0 0 0
P2S.Ted 11 0 0 0 0
P2S.Ted 11 0 0 0 0
P1S.Fred 12 0 0 0 0
P1S.Fred 12 0 0 0 0
P1S.Fred 13 0 0 0 0
P1S.Fred 13 0 0 0 0
P2S.Ted 11 1 0 0 0
P2S.Ted 11 1 0 0 0
P1S.Fred 13 1 0 0 0
P1S.Fred 13 1 0 0 0
P1S.Fred 13 2 0 0 0
P1S.Fred 13 2 0 0 0
P1S.Fred 13 3 0 0 0
P1S.Fred 13 3 0 0 0
P1S.Fred 13 4 0 0 0
P1S.Fred 13 4 0 0 0
P1S.Fred 13 5 0 0 0
P1S.Fred 13 5 0 0 0
P1S.Fred 13 6 0 0 0
P1S.Fred 13 6 0 0 0
P1S.Fred 13 7 0 0 0
P1S.Fred 13 7 0 0 0
P1S.Fred 13 8 0 0 0
P1S.Fred 13 8 0 0 0
P1S.Fred 13 9 0 0 0
P1S.Fred 13 9 0 0 0
P1S.Fred 13 10 0 0 0
P1S.Fred 13 10 0 0 0
P1S.Fred 13 11 0 0 0
P1S.Fred 13 11 0 0 0
P2S.Ted 11 1 1 0 0
P2S.Ted 11 1 1 0 0
P1S.Fred 13 11 1 0 0
P1S.Fred 13 11 1 0 0
P2S.Ted 11 1 2 0 0
P2S.Ted 11 1 2 0 0
P2S.Ted 11 1 3 0 0
P2S.Ted 11 1 3 0 0
P1S.Fred 13 11 2 0 0
P1S.Fred 13 11 2 0 0
P2S.Ted 11 1 4 0 0
P2S.Ted 11 1 4 0 0
P1S.Fred 13 11 3 0 0
P1S.Fred 13 11 3 0 0
P2S.Ted 11 1 5 0 0
P2S.Ted 11 1 5 0 0
P1S.Fred 13 11 4 0 0
P1S.Fred 13 11 4 0 0
P1S.Fred 13 11 5 0 0
P1S.Fred 13 11 5 0 0
P1S.Fred 13 11 6 0 0
P1S.Fred 13 11 6 0 0
P2S.Ted 11 1 6 0 0
P2S.Ted 11 1 6 0 0
P1S.Fred 13 11 7 0 0
P1S.Fred 13 11 7 0 0
P2S.Ted 11 1 7 0 0
P2S.Ted 11 1 7 0 0
P1S.Fred 13 11 8 0 0
P1S.Fred 13 11 8 0 0
P1S.Fred 13 11 9 0 0
P1S.Fred 13 11 9 0 0
P2S.Ted 11 1 8 0 0
P2S.Ted 11 1 8 0 0
P1S.Fred 13 11 10 0 0
P1S.Fred 13 11 10 0 0
P2S.Ted 11 1 9 0 0
P2S.Ted 11 1 9 0 0
P1S.Fred 13 11 11 0 0
P1S.Fred 13 11 11 0 0
RESET!
 

merlin2049er

Well-Known Member
Licensed User
Longtime User
Got my .apk up on Google play alpha.

Need some alpha testers ( with a gmail account)

Nice to have both a phone and tablet 4 testing purposes.

Any willing participants?
 

merlin2049er

Well-Known Member
Licensed User
Longtime User
Published to production. It will be available on google play soon - download both apps.

:)
 
Top