This may help the OP.
How to ask a good question / Help Us Help You - Tutorials & Examples - openHAB Community