On 05/10/06, erland
<[EMAIL PROTECTED]> wrote:

Dr Lovegrove, I would like to change the CLI commands/notifications
towards TrackStat so the rating number is sent/received as number
between 0-100 instead of 0-5 as it is today.

The easiest way for me would obviously be to just switch the number and
start to use a rating scale between 0-100, but I am not sure how this
would affect Moose. I could also add completely new CLI commands and
notifications for the 0-100 scale, but that will result in more work in
TrackStat. Do you have any suggestion of how you would like the switch
to happen and when ?

The conversion between the old and new scale would be:
0 -> 0
1 -> 20
2 -> 40
3 -> 60
4 -> 80
5 -> 100

Hi Erland,

How about having getrating return a percentage value as well as the old
star-number value:

So:
<mac> trackstat getrating 69831
would return:
<mac> trackstat getrating 69831 rating%3A3 percentage%3A60

In Moose I split the reply by spaces and count the arguments, so adding
more arguments to a reply would cause moose to stop decoding it (and
hence not crash, etc).. So this would be safest, then I could add support
for the extra arguments in the next release..

With the setrating, could you make it accept a '%' as part of the number,
so:
<mac> trackstat setrating 69831 3
would be similar to:
<mac> trackstat setrating 69831 60%

Also.. Bit confused with your conversion scale..

0 -> 0
1 -> 20
2 -> 40
3 -> 60
4 -> 80
5 -> 100

Does this mean a '0' denotes 0-19, or just 0 ?
If so, does '5' denote 81-100, or just 100 ?

Thanks,

--
- Dr Lovegrove
Free Moose for all at:
http://www.rusticrhino.com/drlovegrove
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to