climateprediction.net (CPDN) home page
Thread 'Schedulers online status for websites'

Thread 'Schedulers online status for websites'

Message boards : Number crunching : Schedulers online status for websites
Message board moderation

To post messages, you must log in.

1 · 2 · Next

AuthorMessage
Profileold_user2275
Avatar

Send message
Joined: 28 Aug 04
Posts: 69
Credit: 260,395
RAC: 0
Message 11297 - Posted: 23 Mar 2005, 3:24:45 UTC

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: &lt;img src="http://83.72.130.163/esea/boincschedulers.php"&gt;

It's updated every 5 minutes. Future plans for it includes:

- choice of projects to display
- choice of colors to use


ID: 11297 · Report as offensive     Reply Quote
ProfileHonza
Volunteer moderator

Send message
Joined: 5 Aug 04
Posts: 390
Credit: 2,475,242
RAC: 0
Message 11304 - Posted: 23 Mar 2005, 7:36:20 UTC

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>
ID: 11304 · Report as offensive     Reply Quote
Profileold_user2275
Avatar

Send message
Joined: 28 Aug 04
Posts: 69
Credit: 260,395
RAC: 0
Message 11318 - Posted: 23 Mar 2005, 16:45:18 UTC - in response to Message 11304.  

&gt; Bruno, thanks for the tool.
&gt; I may save a lot of ever-repeating questions.
&gt;
&gt; Can we you it on other forums/web-sites as well?

yep, you can use it where you want (for now at least, I don't think it impacts my bandwidth too much ;))


ID: 11318 · Report as offensive     Reply Quote
Profileold_user2275
Avatar

Send message
Joined: 28 Aug 04
Posts: 69
Credit: 260,395
RAC: 0
Message 11319 - Posted: 23 Mar 2005, 16:45:49 UTC

<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>&lt;img src=&quot;http://www.esea.dk/esea/boincschedulers.php&quot;&gt;
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>&lt;img src=&quot;http://www.esea.dk/esea/boincschedulers.php?seti=no&quot;&gt;
- 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 &amp; as in &lt;img src=&quot;http://www.esea.dk/esea/boincschedulers.php?pred=no&amp;burp=no&quot;&gt;
which would look like</p>
<p><img src="http://www.esea.dk/esea/boincschedulers.php?pred=no&amp;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>


ID: 11319 · Report as offensive     Reply Quote
ProfileHonza
Volunteer moderator

Send message
Joined: 5 Aug 04
Posts: 390
Credit: 2,475,242
RAC: 0
Message 11321 - Posted: 23 Mar 2005, 17:11:11 UTC
Last modified: 23 Mar 2005, 17:11:27 UTC

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>
ID: 11321 · Report as offensive     Reply Quote
Profileold_user2275
Avatar

Send message
Joined: 28 Aug 04
Posts: 69
Credit: 260,395
RAC: 0
Message 11323 - Posted: 23 Mar 2005, 19:13:10 UTC - in response to Message 11321.  

&gt; thanks for update. I'm looking for change bg color option and then it will be
&gt; just perfect...

This will be possible in the next update :)


ID: 11323 · Report as offensive     Reply Quote
Profileold_user2275
Avatar

Send message
Joined: 28 Aug 04
Posts: 69
Credit: 260,395
RAC: 0
Message 11328 - Posted: 23 Mar 2005, 21:18:32 UTC

<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>&lt;img src=&quot;http://www.esea.dk/esea/boincschedulers.php&quot;&gt; will
still display all projects supported - like this:</p>
<p><img src="http://www.esea.dk/esea/boincschedulers.php"></p>
<p>&lt;img src=&quot;http://www.esea.dk/esea/boincschedulers.php?pred=no&amp;ein=no&quot;&gt;
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&amp;ein=no"></p>
<p>&lt;img src=&quot;http://www.esea.dk/esea/boincschedulers.php?pred=yes&amp;ein=yes&quot;&gt;
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&amp;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>&lt;img src=&quot;http://www.esea.dk/esea/boincschedulers.php?pred=yes&amp;ein=yes&amp;backcolor=aquamarine&quot;&gt;</p>
<p><img src="http://www.esea.dk/esea/boincschedulers.php?pred=yes&amp;ein=yes&amp;backcolor=aquamarine"></p>
<p>&lt;img src=&quot;http://www.esea.dk/esea/boincschedulers.php?backcolor=cornsilk&quot;&gt;</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>


ID: 11328 · Report as offensive     Reply Quote
Profileold_user8924

Send message
Joined: 2 Sep 04
Posts: 3
Credit: 13,011
RAC: 0
Message 11329 - Posted: 23 Mar 2005, 21:24:58 UTC - in response to Message 11323.  
Last modified: 23 Mar 2005, 21:25:33 UTC

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 ?

ID: 11329 · Report as offensive     Reply Quote
Profileold_user2275
Avatar

Send message
Joined: 28 Aug 04
Posts: 69
Credit: 260,395
RAC: 0
Message 11336 - Posted: 23 Mar 2005, 22:49:44 UTC

all colors of the list is now available as background
ID: 11336 · Report as offensive     Reply Quote
Profileold_user2275
Avatar

Send message
Joined: 28 Aug 04
Posts: 69
Credit: 260,395
RAC: 0
Message 11337 - Posted: 23 Mar 2005, 22:50:43 UTC - in response to Message 11329.  
Last modified: 23 Mar 2005, 22:52:36 UTC

&gt; Great idea !
&gt; Thank you very much!
&gt; 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

&gt; Would it be possible to have a "transparency" color ?

Once I figure out how it will surely be implemented ;)


ID: 11337 · Report as offensive     Reply Quote
ProfileHonza
Volunteer moderator

Send message
Joined: 5 Aug 04
Posts: 390
Credit: 2,475,242
RAC: 0
Message 11346 - Posted: 24 Mar 2005, 7:28:18 UTC - in response to Message 11336.  

&gt; 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>
ID: 11346 · Report as offensive     Reply Quote
Profileold_user2275
Avatar

Send message
Joined: 28 Aug 04
Posts: 69
Credit: 260,395
RAC: 0
Message 11354 - Posted: 24 Mar 2005, 11:02:10 UTC - in response to Message 11346.  

&gt; &gt; all colors of the list is now available as background
&gt;
&gt; Colors names working fine. I think many admins would invite option to choose
&gt; colors in hex format so they correspondent with other visual elements of
&gt; 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) ;)


ID: 11354 · Report as offensive     Reply Quote
old_user2467

Send message
Joined: 28 Aug 04
Posts: 90
Credit: 2,736,552
RAC: 0
Message 11355 - Posted: 24 Mar 2005, 11:16:16 UTC - in response to Message 11354.  

&gt; Well, I chose this way first as it was the easier one to implement quickly ;)
&gt; I'm still new to PHP, so there are things I need to learn. I was actually
&gt; thinking of making it possible to choose rgb colors in dec first, but I want
&gt; to see if there's a smart way to do that. When I got that, I'll see if I can
&gt; make some dec2hex conversion as well (there are propably code out there I can
&gt; grab ;))

It's some kind of this:
<pre>
function hex2rgb($hex) {
$color = str_replace('#','',$hex);
$rgb = array('r' =&gt; hexdec(substr($color,0,2)),
'g' =&gt; hexdec(substr($color,2,2)),
'b' =&gt; hexdec(substr($color,4,2)));
return $rgb;
}
</pre>
ID: 11355 · Report as offensive     Reply Quote
Profileold_user2275
Avatar

Send message
Joined: 28 Aug 04
Posts: 69
Credit: 260,395
RAC: 0
Message 11357 - Posted: 24 Mar 2005, 12:22:16 UTC
Last modified: 24 Mar 2005, 12:24:37 UTC

<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>&lt;img src="http://83.72.130.163/esea/boincschedulers.php?projectcolor=darkslateblue&amp;backcolor=cornsilk&amp;onlinecolor=skyblue
&amp;unreachcolor=indigo&amp;downcolor=gray"&gt;
looks like</p>
<p><img src="http://83.72.130.163/esea/boincschedulers.php?projectcolor=darkslateblue&amp;backcolor=cornsilk&amp;onlinecolor=skyblue&amp;unreachcolor=indigo&amp;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>


ID: 11357 · Report as offensive     Reply Quote
Profileold_user2275
Avatar

Send message
Joined: 28 Aug 04
Posts: 69
Credit: 260,395
RAC: 0
Message 11358 - Posted: 24 Mar 2005, 12:26:35 UTC - in response to Message 11355.  

&gt; It's some kind of this:
&gt; <pre>
&gt; function hex2rgb($hex) {
&gt; $color = str_replace('#','',$hex);
&gt; $rgb = array('r' =&gt; hexdec(substr($color,0,2)),
&gt; 'g' =&gt; hexdec(substr($color,2,2)),
&gt; 'b' =&gt; hexdec(substr($color,4,2)));
&gt; return $rgb;
&gt; }
&gt; </pre>

Hey, thanks - that get's me closer alot sooner :)


ID: 11358 · Report as offensive     Reply Quote
Profileold_user2275
Avatar

Send message
Joined: 28 Aug 04
Posts: 69
Credit: 260,395
RAC: 0
Message 11365 - Posted: 24 Mar 2005, 16:04:12 UTC

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.


ID: 11365 · Report as offensive     Reply Quote
Profileold_user8924

Send message
Joined: 2 Sep 04
Posts: 3
Credit: 13,011
RAC: 0
Message 11369 - Posted: 24 Mar 2005, 17:17:00 UTC - in response to Message 11365.  

&gt; Now it's gotten even easier ;)
&gt;
&gt; The URL generator is ready. Next two things on the todo-list is direct hex
&gt; color choices and transparency color.
&gt;
&gt; But for now take a look at the <a href="http://www.esea.dk/esea/bos.asp">URL
&gt; generator</a> - I've tested it during development, but there might be a slip
&gt; 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... :-)
ID: 11369 · Report as offensive     Reply Quote
Profileold_user2275
Avatar

Send message
Joined: 28 Aug 04
Posts: 69
Credit: 260,395
RAC: 0
Message 11370 - Posted: 24 Mar 2005, 17:38:03 UTC - in response to Message 11369.  

&gt; Very nice ! thanks a lot !
&gt;
&gt; Another "weird idea" maybe for your todo-list : your tool could become
&gt; "international" if it was possible to specify the local word for "online",
&gt; "down" and "unreachable" in the URL ...
&gt;
&gt; 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 -&gt; Utilgængelig - the letter "æ" becomes some other char. But I would love for it to be "multilinguable" :)

I'll think of something :)


ID: 11370 · Report as offensive     Reply Quote
old_user2467

Send message
Joined: 28 Aug 04
Posts: 90
Credit: 2,736,552
RAC: 0
Message 11371 - Posted: 24 Mar 2005, 17:52:52 UTC - in response to Message 11370.  
Last modified: 24 Mar 2005, 17:54:27 UTC

&gt; Not so wierd ;) But I know there might be some trouble with that - not so much
&gt; specifying it in the url, but with special letters. In Danish there's the
&gt; problem with the translation from Unreachable -&gt; Utilgængelig - the letter
&gt; "æ" becomes some other char. But I would love for it to be "multilinguable"
&gt; :)

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
ID: 11371 · Report as offensive     Reply Quote
ProfileHonza
Volunteer moderator

Send message
Joined: 5 Aug 04
Posts: 390
Credit: 2,475,242
RAC: 0
Message 11378 - Posted: 24 Mar 2005, 19:47:46 UTC - in response to Message 11369.  

&gt; Very nice ! thanks a lot !
Yes, the idea of URL generator may come handy for many forum administrators.

&gt; 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>
ID: 11378 · Report as offensive     Reply Quote
1 · 2 · Next

Message boards : Number crunching : Schedulers online status for websites

©2024 cpdn.org