Message boards : Number crunching : Schedulers online status for websites
Message board moderation
Author | Message |
---|---|
Send message Joined: 28 Aug 04 Posts: 69 Credit: 260,395 RAC: 0 |
I thought there would be some website owners out there who wanted to be able to display online status of the boinc projects schedulers. So I created this little script that does exactly that. It looks like this: <img src="http://83.72.130.163/esea/boincschedulers.php"> Now, Boinc Online Schedulers (BOS) version 0.3 is pretty much still an alpha version, but it looks to work pretty good. All that's needed is to make an image tag on the page you want to display it at, like this: <img src="http://83.72.130.163/esea/boincschedulers.php"> It's updated every 5 minutes. Future plans for it includes: - choice of projects to display - choice of colors to use |
Send message Joined: 5 Aug 04 Posts: 390 Credit: 2,475,242 RAC: 0 |
Bruno, thanks for the tool. I may save a lot of ever-repeating questions. Can we you it on other forums/web-sites as well? <i>phpBB forum for CPDN, all are </i><a href="http://www.climateprediction.net/board">invited</a> |
Send message Joined: 28 Aug 04 Posts: 69 Credit: 260,395 RAC: 0 |
|
Send message Joined: 28 Aug 04 Posts: 69 Credit: 260,395 RAC: 0 |
<p>New version 0.4</p> <p>First of all the URL has changed.</p> <p>And now you can choose which projects to display by selecting the ones you don't want displayed.</p> <p><img src="http://www.esea.dk/esea/boincschedulers.php"> displays all supported projects like this:</p> <p><img src="http://www.esea.dk/esea/boincschedulers.php"></p> <p>To select not to display a project add a parameter for that project, ex.:</p> <p><img src="http://www.esea.dk/esea/boincschedulers.php?seti=no"> - looks like:</p> <p><img src="http://www.esea.dk/esea/boincschedulers.php?seti=no"></p> <p>For each additional project add more parameters with & as in <img src="http://www.esea.dk/esea/boincschedulers.php?pred=no&burp=no"> which would look like</p> <p><img src="http://www.esea.dk/esea/boincschedulers.php?pred=no&burp=no"></p> <p>Parameter list:</p> <p>SETI@home: seti=no<br> Predictor@home: pred=no<br> climateprediction.net: clim=no<br> LHC@home: lhc=no<br> Pirates@home: pir=no<br> Einstein@home: ein=no<br> BURP: burp=no</p> |
Send message Joined: 5 Aug 04 Posts: 390 Credit: 2,475,242 RAC: 0 |
thanks for update. I'm looking for change bg color option and then it will be just perfect... <i>phpBB forum for CPDN, all are </i><a href="http://www.climateprediction.net/board">invited</a> |
Send message Joined: 28 Aug 04 Posts: 69 Credit: 260,395 RAC: 0 |
|
Send message Joined: 28 Aug 04 Posts: 69 Credit: 260,395 RAC: 0 |
<p>Version 0.5</p> <p>You now have two choices of how to choose which projects to display:</p> <p>1) if you use the no setting on the parameters, you choose not to display those projects, but any new projects added to the script will automatically be displayed as well as the current ones you left displayable<br> 2) if you use a yes setting on the parameters, you isplay only those projects selected - any new projects added to the script will remain hidden</p> <p>Example:</p> <p><img src="http://www.esea.dk/esea/boincschedulers.php"> will still display all projects supported - like this:</p> <p><img src="http://www.esea.dk/esea/boincschedulers.php"></p> <p><img src="http://www.esea.dk/esea/boincschedulers.php?pred=no&ein=no"> will de-select predictor and einstein but display all other supported projects, including future projects</p> <p><img src="http://www.esea.dk/esea/boincschedulers.php?pred=no&ein=no"></p> <p><img src="http://www.esea.dk/esea/boincschedulers.php?pred=yes&ein=yes"> will display only predictor and einstein, and even if new projects are added they will not show up</p> <p><img src="http://www.esea.dk/esea/boincschedulers.php?pred=yes&ein=yes"></p> <p>As you can see, there's a small issue with the size, but I'll work on that.</p> <p>Another new feature is the ability to change the background color. Add the parameter backcolor and choose a color name from <a href="http://www.oreilly.com/catalog/wdnut/excerpt/color_names.html">O'Reilly's list</a> (I'm adding all colors alphabetically, last one this minute is cyan, but I'll continue to add colors 'till they're all there right after posting this).</p> <p>Example:</p> <p><img src="http://www.esea.dk/esea/boincschedulers.php?pred=yes&ein=yes&backcolor=aquamarine"></p> <p><img src="http://www.esea.dk/esea/boincschedulers.php?pred=yes&ein=yes&backcolor=aquamarine"></p> <p><img src="http://www.esea.dk/esea/boincschedulers.php?backcolor=cornsilk"></p> <p><img src="http://www.esea.dk/esea/boincschedulers.php?backcolor=cornsilk"></p> <p>Please let me know if a color doesn't work - I'll propably make some typo's here and there.</p> <p>Next the textcolors will be changable - same color names ;)</p> |
Send message Joined: 2 Sep 04 Posts: 3 Credit: 13,011 RAC: 0 |
Great idea ! Thank you very much! I'm using it for my "miniteam portal" : http://www.boinc-est.tk Would it be possible to have a "transparency" color ? |
Send message Joined: 28 Aug 04 Posts: 69 Credit: 260,395 RAC: 0 |
all colors of the list is now available as background |
Send message Joined: 28 Aug 04 Posts: 69 Credit: 260,395 RAC: 0 |
> Great idea ! > Thank you very much! > I'm using it for my "miniteam portal" : http://www.boinc-est.tk Looks great :) A good thing I made the width alot smaller than the original :D > Would it be possible to have a "transparency" color ? Once I figure out how it will surely be implemented ;) |
Send message Joined: 5 Aug 04 Posts: 390 Credit: 2,475,242 RAC: 0 |
> all colors of the list is now available as background Colors names working fine. I think many admins would invite option to choose colors in hex format so they correspondent with other visual elements of forum; not that the name list is short :-) <i>phpBB forum for CPDN, all are </i><a href="http://www.climateprediction.net/board">invited</a> |
Send message Joined: 28 Aug 04 Posts: 69 Credit: 260,395 RAC: 0 |
> > all colors of the list is now available as background > > Colors names working fine. I think many admins would invite option to choose > colors in hex format so they correspondent with other visual elements of > forum; not that the name list is short :-) Well, I chose this way first as it was the easier one to implement quickly ;) I'm still new to PHP, so there are things I need to learn. I was actually thinking of making it possible to choose rgb colors in dec first, but I want to see if there's a smart way to do that. When I got that, I'll see if I can make some dec2hex conversion as well (there are propably code out there I can grab ;)) But right now I'll see to it that the text colors can be changed as weel - that has higher priority for the moment - as well as a URL generator (another idea I grabbed from Petrus) ;) |
Send message Joined: 28 Aug 04 Posts: 90 Credit: 2,736,552 RAC: 0 |
> Well, I chose this way first as it was the easier one to implement quickly ;) > I'm still new to PHP, so there are things I need to learn. I was actually > thinking of making it possible to choose rgb colors in dec first, but I want > to see if there's a smart way to do that. When I got that, I'll see if I can > make some dec2hex conversion as well (there are propably code out there I can > grab ;)) It's some kind of this: <pre> function hex2rgb($hex) { $color = str_replace('#','',$hex); $rgb = array('r' => hexdec(substr($color,0,2)), 'g' => hexdec(substr($color,2,2)), 'b' => hexdec(substr($color,4,2))); return $rgb; } </pre> |
Send message Joined: 28 Aug 04 Posts: 69 Credit: 260,395 RAC: 0 |
<p>Version 0.6</p> <p>Textcolor is now changable.</p> <p>Parameters:</p> <p>projectcolor: changes the color of the projects names<br> onlinecolor: changes the color of the "Online" text<br> downcolor: changes the color of the "Down" text<br> unreachcolor: changes the color of the "Unreachable" text</p> <p>Still the colors are the names from O'Reilly's list.</p> <p>Example:</p> <p><img src="http://83.72.130.163/esea/boincschedulers.php?projectcolor=darkslateblue&backcolor=cornsilk&onlinecolor=skyblue &unreachcolor=indigo&downcolor=gray"> looks like</p> <p><img src="http://83.72.130.163/esea/boincschedulers.php?projectcolor=darkslateblue&backcolor=cornsilk&onlinecolor=skyblue&unreachcolor=indigo&downcolor=gray"></p> <p>And btw, if you misspell a color name, the script will revert to the standard color.</p> <p>Also fixed the height when using the yes value on project parameters.</p> <p>Next I'll create an URL creator as the URLs can now potentially get tricky - after that I'll look into direct RGB color changes (dec and hex)</p> |
Send message Joined: 28 Aug 04 Posts: 69 Credit: 260,395 RAC: 0 |
> It's some kind of this: > <pre> > function hex2rgb($hex) { > $color = str_replace('#','',$hex); > $rgb = array('r' => hexdec(substr($color,0,2)), > 'g' => hexdec(substr($color,2,2)), > 'b' => hexdec(substr($color,4,2))); > return $rgb; > } > </pre> Hey, thanks - that get's me closer alot sooner :) |
Send message Joined: 28 Aug 04 Posts: 69 Credit: 260,395 RAC: 0 |
Now it's gotten even easier ;) The URL generator is ready. Next two things on the todo-list is direct hex color choices and transparency color. But for now take a look at the <a href="http://www.esea.dk/esea/bos.asp">URL generator</a> - I've tested it during development, but there might be a slip up somewhere. |
Send message Joined: 2 Sep 04 Posts: 3 Credit: 13,011 RAC: 0 |
> Now it's gotten even easier ;) > > The URL generator is ready. Next two things on the todo-list is direct hex > color choices and transparency color. > > But for now take a look at the <a href="http://www.esea.dk/esea/bos.asp">URL > generator</a> - I've tested it during development, but there might be a slip > up somewhere. Very nice ! thanks a lot ! Another "weird idea" maybe for your todo-list : your tool could become "international" if it was possible to specify the local word for "online", "down" and "unreachable" in the URL ... Real weird indeed... :-) |
Send message Joined: 28 Aug 04 Posts: 69 Credit: 260,395 RAC: 0 |
> Very nice ! thanks a lot ! > > Another "weird idea" maybe for your todo-list : your tool could become > "international" if it was possible to specify the local word for "online", > "down" and "unreachable" in the URL ... > > Real weird indeed... :-) Not so wierd ;) But I know there might be some trouble with that - not so much specifying it in the url, but with special letters. In Danish there's the problem with the translation from Unreachable -> Utilgængelig - the letter "æ" becomes some other char. But I would love for it to be "multilinguable" :) I'll think of something :) |
Send message Joined: 28 Aug 04 Posts: 90 Credit: 2,736,552 RAC: 0 |
> Not so wierd ;) But I know there might be some trouble with that - not so much > specifying it in the url, but with special letters. In Danish there's the > problem with the translation from Unreachable -> Utilgængelig - the letter > "æ" becomes some other char. But I would love for it to be "multilinguable" > :) It would be possible to add multilanguage support for at least common languages by adding a datafile containig datasets with specific local expressions and adding a localisation string (en,ge,fr,dk,gr etc.) to url which specifies the requested language. Then theres no problem with special characters. Ciao, Tom |
Send message Joined: 5 Aug 04 Posts: 390 Credit: 2,475,242 RAC: 0 |
> Very nice ! thanks a lot ! Yes, the idea of URL generator may come handy for many forum administrators. > Another "weird idea" maybe for your todo-list : your tool could become "international" if it was possible to specify the local word for "online", "down" and "unreachable" in the URL ... Not weird. I'm also assuming that this tool becomes internation - which may result in some traffic. You may then consider of releasing source code so that people can put script on their forum, with their translation. For sure, credit must remains as is. <i>phpBB forum for CPDN, all are </i><a href="http://www.climateprediction.net/board">invited</a> |
©2024 cpdn.org