I have some http enabled switches, and every time I have to write lines like this:
Switch Relais "Relais" <poweroutlet> {http=">[ON:POST:http://<username>:<password>@<host>/xml/jsonswitch.php?id=42&set=1] >[OFF:POST:http://<username>:<password>@<host>/xml/jsonswitch.php?id=42&set=0]" }
The whole path part (except the IDs) repeats serveral times within the configuration. How can I reduce the repeat only specify the IDs, so I don’t have so many repeated paths (and so many changes when I sometimes change the password)? (Without having to write a Java binding? ^^)
Using http.cfg didn’t work as I didn’t find a way to specify only a part of the path (without the IDs).
Thanks in advance.