in

Community Server

The platform that enables you to build rich, interactive communities

NHL pool

Last post 05-14-2012 3:27 AM by larrygregory. 63 replies.
Page 4 of 5 (64 items) < Previous 1 2 3 4 5 Next >
Sort Posts: Previous Next
  • 02-02-2012 12:59 PM In reply to

    Re: NHL pool

    Drizz do you have a copy of the pool for download?  I would love to try this out.  Thanks Bud.

  • 02-02-2012 3:21 PM In reply to

    • drizzt09
    • Top 10 Contributor
    • Joined on 08-22-2009
    • Ontario Canada
    • Posts 399

    Re: NHL pool

    i can provide a copy as is but it isnt done. i am unable to figure out the coding for the last few features. everyone that takes the code and tries to help disappears.
  • 02-16-2012 8:14 PM In reply to

    Re: NHL pool

    Hello Drizz. 

     If you are still trying to make this happen I am willing to help out.  I have some programming experience with php, asp, mysql, and sql.  I also have a computer science background with quite a bit programming experience using C++ and Java.  Let me know how I can help and I will do all I can to help make everything work.  If you email me at site_admin@goldbarassociataion.org I will take a look and make an estimate at how much work needs to be done.  If it is coding I will see about breaking things down to easy to accomplish tasks.

  • 02-18-2012 4:24 PM In reply to

    • drizzt09
    • Top 10 Contributor
    • Joined on 08-22-2009
    • Ontario Canada
    • Posts 399

    Re: NHL pool

    Mail Delivery Subsystem mailer-daemon@googlemail.com to me
    show details 7:19 PM (2 minutes ago)
    Delivery to the following recipient failed permanently:

        site_admin@goldbarassociataion.org

    Technical details of permanent failure:
    DNS Error: Domain name not found
  • 02-25-2012 9:22 AM In reply to

    Re: NHL pool

    Sorry typo - I typed it in wrong.  I think you got it right when you sent it though since it was delivered.  I have some questions on how I can help..

    1. I noticed the message you sent me stated that the Points is being displayed as column yet the website link you gave looks correct.. is this still an issue?
    2. The OTL - how does it get calculated and I will look through and figure it out.  I might have to create a new function for it, but do not think it will be too hard to do.  (Should not be more than a day or two)
    3. Is the scoreboard working correctly?  I noticed that it appears to change as the date changes.  If not let me know what you have done and I can see if there is a conflict in the system that can be resolved.  (This might take a few days)
    4. I will need to talk to you on the tiebreaker.  I have a basic understanding of Hockey but will need a better understand how ties, scoring, and standing works in order to build the code to work on it.  (If we can Skype ---skype id - sorghof_fans -- on the weekend - this might take a few hours - to a few days depending on the complexity)

    Ok.  Like I said I am willing and able to help out, and I think you have something special going.  I appreciate your trust with the work you have done.  Just let me know which direction to go in and together it will happen.

    Talk to you later,

  • 02-25-2012 10:12 AM In reply to

    • drizzt09
    • Top 10 Contributor
    • Joined on 08-22-2009
    • Ontario Canada
    • Posts 399

    Re: NHL pool

    1. yes forgot that got corrected.

    2. If a team Wins they get 2 points, doesnt matter if it is in regulation, OT[Over Time] or SO[Shoot Out]. So would be 1W but 2 points
        If a team Loses in regulation they receive 1L and 0 points
        If a team loses in OT or SO they get a bonus point so would be 1OTL but get 1 point
    3. Currently it shows correct games but no scores as there are no games playing, I will check back later tonight during the games to see.
    4. I dont use skype but you can reach my via email at drizzt09@gmail.com at any time as I get it instantly on my BlackBerry and/or Playbook
  • 02-25-2012 12:33 PM In reply to

    • drizzt09
    • Top 10 Contributor
    • Joined on 08-22-2009
    • Ontario Canada
    • Posts 399

    Re: NHL pool

    3. A couple games have started early so I checked back

    Sat 2/25
    TBL 1
    PIT 7
    03:58 3rd


    Sat 2/25
    STL 2
    WPG 1
    07:48 2nd

  • 02-25-2012 2:01 PM In reply to

    Re: NHL pool

    So, it is working the way you want?  -- No need to look at the code for the scoreboard?

  • 02-25-2012 7:07 PM In reply to

    • drizzt09
    • Top 10 Contributor
    • Joined on 08-22-2009
    • Ontario Canada
    • Posts 399

    Re: NHL pool

    It used to work, then it stopped working, just sat spinning. no games showed. Been awhile since I looked at it. NHL.com must have fixed something cause it appears to be working again. Although I dont like how the games from the previous day are not storing. Just shows as "NA". Also you can scroll left or right to see additional games. If you know any coding that might bring in that feature. Alot more games in NHL than NFL
  • 02-25-2012 7:09 PM In reply to

    • drizzt09
    • Top 10 Contributor
    • Joined on 08-22-2009
    • Ontario Canada
    • Posts 399

    Re: NHL pool

    I did miss something else. On the update scores page I don't have the "auto update" check box or the "load" button like in NFL... not sure why that is
  • 02-26-2012 8:02 AM In reply to

    Re: NHL pool

    OK - I have added them to the things to look at list.  I think I have the scoring part (2 points for a win, 1 point for a loss in regulation) just about ready to test.  I will upload it to my testing server and run through it then send you the finished product so you can take a look. 

     Next I will start looking at storing the score from NHL.com.  I can not give an estimate on it since it will be new material. :)

  • 03-09-2012 3:37 PM In reply to

    Re: NHL pool

    Got my schedule cleared up a bit, so hopefully I will have some progress with the code this weekend.  I thought I had the live feed from NHL updating, but I must have fat fingered a portion.  I will look things over and try again.  Once the feed updates, I will know which variables are used so I can code out the proper scoring.  I will update as things progress.

    GB

  • 03-10-2012 6:38 AM In reply to

    • drizzt09
    • Top 10 Contributor
    • Joined on 08-22-2009
    • Ontario Canada
    • Posts 399

    Re: NHL pool

    Thanks for the update

  • 03-12-2012 6:49 PM In reply to

    Re: NHL pool

    I am having trouble with the NHL.com feed that is suppling the scores.  The current location where the scores comes from is :

    http://live.nhl.com/GameData/Scoreboard.jsonp

    The issue that I am seeing is that the scores do not always pull correctly.. For example the site is listing game id 2011021030 which was the Game bvetween NYI and NYR that ended in a OT victory for the Rangers.  The pull I made three times in a roll at around 9:20 on the 12th shows this:

    "id":2011021030,"startTime":"7:00 PM","boxScoreLink":"http://www.nhl.com/ice/gamecenter.htm?id=2011021030&navid=sb:gamecenter","recapLink":"http://www.nhl.com/ice/recap.htm?id=2011021030&navid=sb:recap","awayTeamId":2,"previewLink":"http://www.nhl.com/ice/preview.htm?id=2011021030&navid=sb:preview","homeTeamId":3,"isFavorite":false,"awayTeamName":"NYI","homeTeamName":"NYR","awayTeamScore":3},{"startDate":"SUN 3/11","progressTime":"","gameImportant":false,"gameState":3,"awayTeamSog":29,"longStartTime":"03/11/2012 20:00:00","videoLink":"http://video.nhl.com/videocenter/console?hlg=20112012,2,1031&fr=false&navid=sb:highlights","isToday":false,"homeTeamSog":37,"period":5,"homeTeamScore":2,

    The issue I am having is that the varibale gameState is reporting differently.  The current code in the scoreboard.js file is written as such: (Slightly modified by to illustrate the OT / SO state.)

    // Determine the game status.
      switch (gameState) {
       case 0:
        status = gameTime.toLowerCase();
        break;
       case 1:
        isActive = true;
        status  = progress.substring(0, 1).toUpperCase() + progress.substring(1).toLowerCase();
        break;
       case 2:
        isOver = true;
        status = "Final";
        progress = progress.toUpperCase();
        if (progress.indexOf("OT") >= 0)
        {
         status += "-OT";
         isOT = true;
        }
        else if (progress.indexOf("SO") >= 0)
        {
         status += "-SO";
         isSO = true; 
        }
        break;

       default:
        status = "n/a";
        break;
      }

    As you can see the gameState is the determining factor in the whole process.  As it stands right now the gameState varibale is not reporting anything when listed by NHL.com as '3' - thus it automatically reports as n/a. 

    Summary:  I will have to watch what is being reported through the next week to see what has changed in the way NHL.com reports game scores and try to figure out how to change the code to reflect the new scoring method.  Right now, I am not sure if it is a change, or a mistake on their end.  I will watch it and see if I can find a patern - but if anyone knows another site like ESPN that is pusing out scores in json or xml format please post it.  That might be the only way to finish this thing out. 

    As far as the updateScores.asp page.  I am trying to match up the data from scoresbard.js to the variables in the updateScores.asp page in order to pull the correct data.  I have failed miserably several times when editing the functions and have had to start over.  I think I am getting somewhere but hit this snag which has slowed me down.

    Well, if nothing else - hopefully persistance will pay off soon.  Take care Drizz and talk to you soon.

    GB

  • 03-12-2012 7:48 PM In reply to

    • drizzt09
    • Top 10 Contributor
    • Joined on 08-22-2009
    • Ontario Canada
    • Posts 399

    Re: NHL pool

    Ya if you dont have to use NHL.com thats fine, as long as the data is there.

    Would this tool help out any?

    http://developer.yahoo.com/fantasysports/

Page 4 of 5 (64 items) < Previous 1 2 3 4 5 Next >
Powered by Community Server (Non-Commercial Edition), by Telligent Systems