GithubHelp home page GithubHelp logo

cs0x7f / cstimer Goto Github PK

View Code? Open in Web Editor NEW
530.0 530.0 123.0 31.32 MB

Professional Speedcubing/Training Timer

License: GNU General Public License v3.0

Makefile 0.15% PHP 31.75% CSS 1.72% JavaScript 66.27% Hack 0.11%

cstimer's People

Contributors

afedotov avatar antalviktorprezi avatar aokiken avatar bczhc avatar blonkm avatar candytw avatar cs0x7f avatar euphwes avatar foundregain avatar lucasalfare avatar msemtd avatar oyyq99999 avatar sqatx avatar tristanb0 avatar tsuchida avatar xenotrix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cstimer's Issues

Cstimer Stackmat Connecting but not working properly

Jay has this problem with his stackmat. The stackmat connects to cstimer but sometimes it take like 5 seconds to actually respond and start the time on the screen(though it when it starts showing the time on the screen it goes to the correct time). Also more importantly, when he stops the timer(stackmat) the stackmat stops but the computer(cstimer) continues to count up. Though when he turns the timer off and on it shows the correct time.

Jay's video showing the problem:
https://www.youtube.com/watch?v=se_QnHCl-W8&feature=push-u-sub&attr_tag=c9HrWPJlbmNvyA7r%3A6&ab_channel=JaydenMcNeill

Unable to export to server

I was regularly uploading my times to the server when suddenly yesterday i tried exporting to the server and i was told that "Some errors occured". Tried using a different name and got the same error.

Add timestamp to export file name

A small request, please add:

  1. A timestamp to the full JSON export file name.
  2. Session name and timestamp to session CSV export file name. And maybe some indication if it's a full or partial session export.

I believe would be best to use something like the YYYY-MM-DD HH-MM-SS format for clarity and natural sorting.

[Suggestion] Adding a square-1 CSP (cube shape parity) trainer

CSP is a technique in square-1 to solve the cube without parity problem.

One thing that can help in this is get scrambles in a fixed case or list of cases because, once when we learn one is bored wait for the case randomly (one chance in 3678 values).

Thinking in this I have been used sq12phase java classes to generating these fixed cube shapes (once I'm not familiar with javascript). I just created this gist to expose my code, using, as base, your sq12phase:

https://gist.github.com/LucasAlfare/0a3089b60c908ac6147336445641f247

Now in relation to the interface can be tought some ways to make user able to choose their cube shapes, like comboBoxes with a sided button to add that value to "UserShapes" list. This is just a approach.

Beyond this, another tool related to CSP can be a Parity Checker, to user checks if the result is odd or even. This should take in mind the two inspections methods for CSP: BLD and Cale Tracing. In case of implementing Cale Tracing Checker, this tool should do the user click in the scramble preview (in the pieces) and get the triads and result.

If you have any questions about the CSP feel free to ask.

Option to change the order of the sessions

Right now there's no way to change the session order. So for many the sessions order is pretty chaotic. I'd like to have my 4BLD and 5BLD session right beneath my 3BLD session. An option to change the order of the sessions would be awesome.

Feature Requests

  • Update inputTimer with multi-phase timing.
  • Align scramble moves vertically as WCA.
  • More penalty options besides +2, e.g. +4, +6, ...
  • Message filter for logohint
  • Make the timer beep after a specified amount of time.
  • Using wca notation for relay scrambles
  • Input relay (multi-line) scrambles
  • Save time intervals in distribution in session data

Displaying a message when breaking a PB

Breaking a PB is a huge excitement, and it would be great if cstimer could display a message when a PB is broken in a session -- whether single or aoN. Perhaps even with a few bits of data like by how much, after how many solves, and after how much time (now that dates are available).

Thanks again for your work on this timer, it's awesome!

Gen 4 timer not recognised in csTimer

So I can connect my Gen4 to the computer using the mic jack. In Edge, csTimer recognises it is plugged in but does not display anything other than --:-- as if it were turned off or not connected. In Chrome, csTimer doesn't recognise it is connected at all and does not ask to even allow microphone usage.

Export button

When you click on the export button usually there is coming a little screen where you can save your times and import them. but i doesn't work anymore, for me at least. I hope you can fix it!

Archive/unarchive solves within a session

I believe most cubers like to see the full stats and progression of long-running sessions of months or even years, but on the other hand also want to see the stats of the current "mini-session" they're doing right now. Being able to switch between the two modes would provide the full picture, a kind of a new session within the session.

A possible implementation: on click, "archive" all current solves so you have a clean session. No solves in the list, solve counter starts with 1 and in your stats you only see those new solves, no old PBs. On click you either get back to seeing all solves, including the new ones, or you just "archive" the ones you did and start a new session again.

All the recent updates are so awesome, this is the only thing keeping me from switching back from Twisty Timer :)

Times not showing up in Chrome 71.0.3578.98 (Windows 10)

Here's what it looks like when I load csTimer (all solves are missing).

image

And after I do a single solve it shows three dots, and then when I click on them it shows this (UI is broken, as when I hover over times it won't give me options to +2/delete/etc.).

image

Here are two errors I'm getting in the developer console:

Uncaught TypeError: r.slice is not a function
    at new r (cstimer.js:314)
    at Array.nb (cstimer.js:338)
    at r (cstimer.js:98)
    at Object.reg [as regProp] (cstimer.js:106)
    at HTMLDocument.<anonymous> (cstimer.js:377)
    at k (jquery.min.js:2)
    at Object.fireWith [as resolveWith] (jquery.min.js:2)
    at Function.ready (jquery.min.js:2)
    at HTMLDocument.D (jquery.min.js:2)
Uncaught TypeError: this.timeAt is not a function
    at r.runAvgMean (cstimer.js:319)
    at n (cstimer.js:322)
    at $a (cstimer.js:324)
    at Qa (cstimer.js:363)
    at IDBTransaction.<anonymous> (cstimer.js:312)

[Feature Request/Bug] Inspection in Stackmat mode

Seem like stackmat mode is unreliable when it comes to inspection. For me inspection sometimes starts randomly. Could there possibly be an option to only start inspection with space and not some motion on the timer itself? Of course direct starts still need to work for BLD.

List of times not visible

Currently getting the following error in chrome's JS console:

cstimer.js:378 Uncaught ReferenceError: TOOLS_HUGESTATS is not defined
at HTMLDocument. (cstimer.js:378)
at k (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
at HTMLDocument.D (jquery.min.js:2)

Indicator when a Sq1 scramble leaves the cubeshape

Random state Square-1 scrambles seem to always stay in cubeshape for a few slices. Thus, some sort of indication when the scramble leaves the cubeshape would be helpful in my opinion to reduce the number a user misscrambles. (btw I use cubeshape as synonym for Square/Square, the “solved” cubeshape)

The idea comes from Squanmate (https://cdn.rawgit.com/sp3ctum/squanmate/master/resources/public/index.html#/ and https://github.com/sp3ctum/squanmate/) that does this. Go to the website, select a case and then generate a new scramble. Here’s a screenshot of what it looks like.

image

The blue part indicates that after (0,-2)/ you should be out of cubeshape. Sometimes there’s an asterisk indicating that you leave the cubeshape with misaligned squares but that’s not relevant here. I would like to see something similar to this blue font color in csTimer that shows me when I have to leave the cubeshape.

Somewhere, an explantion what this asterisk/different color (or whatever it ends up to be) represents is needed and I have no good idea how to display it. Maybe the same way like Squanmate does with a mousehover? This would be bad for mobile users though and they would be confused at first.

Special cases: Scrambles that go back into Square/Square would need a second asterisk to denote going back into cubeshape. I’ve btw created the same issue for TNoodlee and copied it almost 1:1.

WCA penalties

Right now, you can only add one +2 penalty. Since it's possible to get multiple penalties in WCA regulations, I request adding multiple +2's (+2, +4, +6 etc) somehow.

Automatically disable inspection time for Blind events

For blind events we don't use inspection time.
Would it be possible to deactivate inspection automatically if the scramble type is 3BLD, 4BLD, 5BLD or mbld?
Another possibility would be to safe the inspection option for each session independently, like it is with multi phase.

entering times with input with timestamp

Thx for adding multi-phase timing input, this is awesome! While playing around with it, I realised that the input is a bit buggy if you include the timestamp at the end.

Right now this:

2:36.50=1:48.32+48.18 D2 R2 B2 U' L2 U' L2 U' F2 D U' L B2 R B' U2 B2 L2 R' B2 Rw' Uw2 @6.12.2018, 16:32:36

becomes this.

  1. 2:36.50=1:48.32+48.18 D2 R2 B2 U' L2 U' L2 U' F2 D U' L B2 R B' U2 B2 L2 R' B2 Rw' Uw2 @6.12.2018 @7.12.2018, 13:40:46
  2. 16:32:36.00 F' R' D2 L2 B D' R2 U L' F2 B2 U R2 U' L2 U2 L2 D' L2 D' @6.12.2018, 21:10:47

The time at the end will be added as another solve, the scramble is the current scramble displayed in the session at the top. Also for the first added solve it keeps the date (here: @6.12.2018) and adds a current timestamp (here: @7.12.2018, 13:40:46).

Save points, #solved and #attempted for multi blind

Would it be possible to save the points, amount of solves cubes and amount of attempted cubes for multi blind and also show those in the stats together with the times, but ranked after the criteria of the wca?

Toolbox that shows #solves of the ../day/month/year

It'd be really nice to have a quick overview on how many solves I did today (today/week/month/year) in total and how many in each session.

I imagine a toolbox could be a good way to just show all session names and the number solves and the sum of all those solves. A drop down menu to specify ../day/month/year.

Could you also add sth like last 24 hours and last 12 hours. When you'd cube past midnight the "today" option wouldn't really help.

Exporting sessions

In what all format can we export sessions ?
I can only export the sessions in txt format and I can't see any other option there. But after seeing this it seems that I am missing something.

[Feature Request] Session folders

At the same time that I'd like to have a blank session every time I start solving, it's always nice to be able to see progress over time and big averages that can't be done in one sitting, like ao1000. The best way I can think to solve both issues is to have session folders. For example, lets imagine I have a folder called 3x3, and in it, I start daily sessions in which I do 3x3 solves, it would be nice to, at the end of the day, go back to the 3x3 folder and see all the sessions in that folder merged, but maintain the ability to go back to a specific session and see it's times, as well as solve more. I don't have any relevant programming experience, so I don't know how hard that'd be to implement, just thought it was a cool idea.

Latest update removes clearing session

I was planning on clearing out my current sessions ready for the new year but I am unable to delete all times from a session now. Alt+d now adds a session as the hotkey is linked to the button (I believe).

I would still like to be able to keep the session but delete all times within it.

[suggestion]First-block solver for roux method

Since roux method is becoming popular, it would be good if there is a first-block solver like cross and EO-Line solver for CFOP and ZZ methods.
My suggestion is to add a function 'Solve first-block' that shows solutions for first-block with white or yellow base(x2 y color neutrality)

Showing session name in confirmations

Please display the session name in confirmations -- this is especially relevant for using the new and awesome session manager, and especially on mobile. When I'm merging, splitting and deleting sessions, I'm never sure if I tapped the correct small link/icon, and it would be very helpful to know on which session the action is going to be performed.

Lack of trailing whitespace in megaminx scrambles

When the last move of a megaminx scramble is D++ U, for some reason the trailing whitespace doesn't show up in the scramble display, so the last line isn't aligned with the others.

See screenshot:

screenshot of scramble

TODO

  • more draw scramble options, e.g. megaminx
  • export times into csv/txt
  • truncates the third decimal?
  • Include metronome in Tools menu for look ahead training such as F2L
  • Improve UI
  • Login by google account and use Google Drive to store data

Fix portuguese translation.

I saw some elements not translated yet, however, some which are translated appear not in UFT-8 (chars like Ç are making some grammar errors).

Session-Specific Timer Input

I have two separate sessions for 3x3 Blindfolded right now with two different timer inputs.

On the first session, where I time memo/exec splits, I use the regular "Timer" input. On the second, which I use for my stackmatted solves, I use the "Typing" input.

This leads me to the following request:

Being able to define, per session, how times are entered. This way I won't have to manually switch it every time I change sessions.

Create Login Function

Can you integrate a login function through Google or Facebook so we can save out times online and be able to easier access them from multiple devices?

Feature request for solving-date and session statistics

Since we have solving date now, theoretically csTimer is able to do all statistics like some other analysis tools. Write down your suggestion that you think csTimer should implement.

  • Count number of solves in the last day/month/year/24hours, etc
  • Renaming and more customizable statistics on split
  • Define a specific time as start of a day, then support some daily/weekly/monthly statistics.
  • Count number of solves, Sum of time of all those solves for last day/week/month, etc.
  • Summarize PBs per session or all sessions, and with different sorted keys
  • Summarize top X single/moX/aoX per session
  • Comparator of statistics

Custom Statistical indicators

option -> statistics -> Statistical indicators -> Custom
isn't working on https://cstimer.net/new/

edit:
Also when I switch from https://cstimer.net/ to https://cstimer.net/new/, tools aren't working anymore: on the right bot of the the screen they are just gone and a click on tools does nothing. Mouse over the tools button just shows a blank box. In the options -> tools I can only see time distribution precision, nothing else. Same if I go to https://cstimer.net/new/ and import a backup that I made with https://cstimer.net/.

Custom color scheme for scrambles display

Thanks so much for implementing all the various improvements lately! I've now switched back to cstimer, and it's great to be back.

This request is for myself and around 10% of the male population who are colorblind. Could we get a custom color scheme for the scrambles display?

For example, on my cubes I use black instead of orange, and grey instead of green. I almost can't tell apart the green and orange on the scramble display.

Giiker features

Giiker is working great in the new version!
A few feature requests:

  1. As a Roux user, slice moves are very important -- would it be possible to add slice moves recognition? Someone on reddit said that a threshold of 30 ms is working well to differentiate between a slice move and simultaneous moves.
  2. Would it be possible to save the reconstruction of the solve, maybe even with a link to open it in alg.cubing.net directly?
  3. The automatic splits are great, could we get (in addition to the reconstruction per step) additional statistics of tps and pauses per step?

Timer is incorrectly rounding instead of truncating in certain places

The following is an incorrect output that was generated when my friend used the timer:

Generated By csTimer on 2017-6-27
single: 1:00.00

Time List:
1. 59.99  (mega scramble)

The time was 59.997 with the millisecond option on. Notice that the single is incorrectly displayed.

This also goes into calculating averages. The times should be truncated first before calculating the average, like on competition.
For example, five 1.009s gives a 1.009 average in millisecond mode. That is fine. However, the same times in centisecond mode count as 1.00s, but the timer shows a 1.01 average. The times should be truncated first before the average is calculated.

Statistics

Please bring back the old statistocs tool, the new one is absolute ass

Emphasize when displaying previous scramble

It happens that I click "last" to go back to the previous scramble, and afterwards forget about it and do the same scramble yet again.

Could you mark it somehow that the previous scramble is displayed? Perhaps even by just disabling the "last" link, which does nothing in this case anyway.

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.