The instructions for my "offline" version of the timer.
For those who think getting this to work without needing to be tethered to the Internet is an overly complex task, or may be slightly squeamish about modifying/customizing this timer, I figured I'd at least start with a "how-to" on installing and getting it up & running with a "local" PHP host. Just to show how it's not that difficult at all.
The timer is even fully functional with no customization or mods needed what-so-ever. Or, you can customize/mod it to your heart's content. Heck, even if you're just curious about learning what it takes to do that. Here's your perfect opportunity. As I've said before, I'm in no way, shape, or form a "programmer". Everything I do is based on simple common sense & deductive reasoning... coupled with a ton of "cut & try" experimentation that can & does go totally sideways on occasion... but then, that's why you always do a backup first, & experiment on a copy..... right?
In case you're wondering, it's not possible to screw-up your computer in the process. You can't cause any ill-effects to any of your hardware or your operating system figuring this out. Not possible. The worst that's going to happen is you'll try to view your results in a web-browser & get a crap-ton of errors on the page it's trying to render. No harm, no foul. But, you do now have to try & figure out what you did wrong, or start over. I won't say trying to get a handle on it may not be frustrating at times, but then, playing poker against donkeys can be too, right?... same deal. In fact, I'd say if you're sharp enough to play poker semi-decently, you're sharp enough to figure this stuff out too.
For example, when I was trying to get my "comma separator" mod for the blind amounts working I spent about a half-hour trying to figure out why it didn't work... only to finally notice that I'd forgotten a simple single "closing bracket" (
] ) in the formatting at the end of the file..... yea, nice move dumb*ss.
So, "getting on with it"....
This is the same "v2.1" version in the screenshot above. If you go fullscreen mode with your browser & have a vertical resolution of at least 846 pixels you'll have no scrollbar. (most people seem to use 1600x900 - I'm old, I use 1504x846).
- Yellow clock on Dark (Navy) Blue background - Easily readable from a distance.
- No random card & chip slideshows.
- Alert sound plays at breaks. Not just running level changes only.
- Clickable "Progress Bar" that allows time adjustment.
- Extra Break & ColorUp alert screen popups.
- Also includes the blinds schedule I created for our local tourney.
I have 2 versions available.
The FULL version - AKA: The "easy" version. Everything all set up, ready to go in one ZIP file. (50MB)
The LITE version - The "website" files only. You have to download & install a local PHP host. (5MB)
I also have the
BREAK TIMER ADD-ON for anyone that wants it to go with the above. (8KB)
FULL (easy) VERSION (Windows only - Sorry Mac users).
This version includes EasyPHP with the "website" files already setup & ready to go.
The EasyPHP version I've included is a really old one (5.3.3). Biggest reason is to keep the filesize at a minimum. Even with this old version the zip file is nearly 50MB. Using the latest version of EasyPHP would have made it 5 times that. But, I've tested it on a Win7-64bit laptop & had it running with no issues.
The upside is, if you have a really old laptop sitting in a closet collecting dust, you can pull it out & use it as a dedicated blinds timer. It'll run on Windows as old as Windows 2000. (Yes, that's the old machine I pulled that version off of). Although, if you do actually use Win2k, the only browser that works properly is an old version of Firefox (v12). IE & Netscape can't cope. Also, with Win2k you may need to change the audio alert to use the included "WAV" file. (simply find the text "
<source src="ship_bell.mp3" type="audio/mpeg" />" in the "
blinds.php" file, change it to "
<source src="ship_bell.wav" type="audio/wav" />" & resave the file)
WinXP & up should all be fine with MP3 audio.
Step one is simply unpacking the ZIP file. Once that's done, you'll find a "PCF Blinds Timer" folder. If you have somewhere special you want this folder to live, now is the best time to move it.
Inside the PCF Blinds Timer folder is a file called "EasyPHP-5.3.3.exe". This is the executable that starts your "server". You can either double-click it from inside this folder, or right-click it and create a shortcut to it for your desktop. At any rate, getting your "server" running is as easy as clicking the EXE file or your shortcut.
Well, sort of...
The 1st time you run it you'll get a prompt telling you the location of the install has been moved and asking if you want to regenerate the configuration files.
YOU MUST CLICK "YES" TO THIS PROMPT!!!
EasyPHP will then re-write all of it's configuration files for the local PHP server so they will point to the correct local directory. If you install this on your local machine's hard drive you will only get this prompt once.
A bonus is that you CAN run this from a portable drive (like a USB stick). The only downside is that you may get that warning prompt above if Windows assigns the portable drive a different drive letter than the one it used previously. No issues, simply click "Yes" again & have it once again re-write the config files. (it takes less than a few seconds)
This is also a "one shot" deal. You have one chance, & one chance only, to click "Yes" to the config files re-write. Miss that opportunity and nothing is going to work.
OK, so you're like me & never read the instructions first. You unzipped everything, didn't bother with reading that text file called "
IMPORTANT-READ 1ST" either, saw that prompt about regenerating config files, either dismissed it or clicked "No", & then got some kind of warning about a "Syntax Error".
That voice in your head saying, "You should have read the instructions." ... That's your wife... or mine, if you don't happen to have one of those.
The good news is, all is not lost, you just created a little extra work for yourself.
Find the EasyPHP icon that's running in your system tray, Right-click it & close the program.
The easy way out is to just delete the whole PCF Blinds Timer directory & start over. However, there's another way around this that can come in handy if you plan on using it from a portable drive. So, you may want to practice this one.
Create a directory somewhere on your drive (it can be a temporary one). "Cut & Paste" the whole PCF Blinds Timer Directory into it (effectively moving it to yet another "new" location). Then run it again from inside this new directory. Remember to click "Yes" to the config files regen this time. Now, everything should be working fine. If you moved it to what you intended to be a temp directory, you can now close EasyPHP (again), then move it back & repeat the config files regen process... again.
Once you have EasyPHP running you'll find an icon running in your taskbar. To verify that everything is running properly, double-click it and a "Dashboard" or "Control Panel" should appear. You should see two "servers" both with green lights that say "started".
If you want, you can stop the "MySQL" (database) side, it's not needed.
At this point you can now open your web browser & type "127.0.0.1" in the address bar. (without the quotes) That will open the timer homepage. Or, if you "right-click" the EasyPHP icon & select "Local Web" (or press F7), your default browser will open & go to the timer's homepage.
That's it, you now have it running & don't need an Internet connection. All the specified modifications to install your own blind schedule apply. Mod it to your heart's content... or stay tuned. If I get some time in the not too distant future maybe I'll do a few quick "walkthroughs" on some of those details as well.
LITE VERSION - Website Files Only
If you have a Mac (or want to use a different PHP host/later version of EasyPHP), I also have a "Lite" version. This is the timer website files only (with my above listed mods).
Download & install whatever version of whatever local PHP server you like & install the "website" files into it.
As stated in a post above, for Mac users a quick Google search turned up a free local PHP server called MAMP as one solution:
https://www.mamp.info/en/
If you want my "
Breaks Timer Add-On" page as well, let me know & I'll include a link to it.
Although, I'd suggest getting the initial setup running & tested 1st. Then add the breaks timer.
If you want to preserve the initial "no breaks timer" setup, rename your "
index.php" file to "
index.orig" or something to that effect. The add-on includes a new index.php file that you'd need to overwrite the original with, as the new index file includes breaks page links.
Once you've renamed the index file (if you wanted) simply unzip & copy all the files included into the "www" directory of EasyPHP where all the other website files are located. If you didn't rename the index file (because you didn't care to keep it) you'll be asked if you want to "overwrite" or "replace" the existing file, just accept the file replacement.
On the new "homepage" you'll notice "breaks" links below the timer link options...
To use these, right-click the breaks link in the appropriate "version" of the blinds structure you're using, & select "open link in new tab" or "open link in new browser window" (whichever you prefer). This becomes the tab or window you will switch to at break time.
NOTE: You don't have to select the same time interval for breaks as levels. You can select a 10 or 15 minute interval for breaks, while using a 20 or 30 minute blind level interval for the tourney.
If you've made up a custom "
blinds_x.php" file, you can optionally create a corresponding "
breaks_x.php" file to display what the upcoming post-break blinds level will be. (if you don't, that area will simply remain blank).
This can be done by simply making a copy of your "
blinds_x.php" file, renaming it "
breaks_x.php" & editing out all the levels that are not immediately preceded by a break. The ones listed in your "
blinds_x_alerts.php" file are the ones you want to keep.
Just be mindful that your last one must end with that closing bracket between the last "curly brace" & the final comma- }
],
Oh, and one last "tip"...
Go into your power saving/screensaver settings and turn 'em off. Otherwise you'll have to "wake up" your screen at whatever interval that's set for. You can probably guess how I know this.