Hello,
My problem is as follows. I need to be able to pass a room name, which can contain numbers, spaces and pretty much all basic sentence characters to my timer. The timer name is the only way I can figure out to do this. However, numbers, spaces and I can imagine some other characters are not allowed there (30008 errorcode).
I figured I can hash each roomname into a-z somehow, but I'd need to loop through each key/value combination in my original table afterwards to find out which roomname it corresponds to. This table can get pretty large (100+ entries), so looping whenever a timer fires would be most likely slow things down enough to be noticed with the other 30 plugins I have installed as well. Then again, maybe an algorithm would be slower than looping.
Anyway, there might be a solution I haven't thought about yet. Thanks for all the help, I really appreciate it.
My problem is as follows. I need to be able to pass a room name, which can contain numbers, spaces and pretty much all basic sentence characters to my timer. The timer name is the only way I can figure out to do this. However, numbers, spaces and I can imagine some other characters are not allowed there (30008 errorcode).
I figured I can hash each roomname into a-z somehow, but I'd need to loop through each key/value combination in my original table afterwards to find out which roomname it corresponds to. This table can get pretty large (100+ entries), so looping whenever a timer fires would be most likely slow things down enough to be noticed with the other 30 plugins I have installed as well. Then again, maybe an algorithm would be slower than looping.
Anyway, there might be a solution I haven't thought about yet. Thanks for all the help, I really appreciate it.