Note the code linked there is old. The line that says require 'openhab' needs to be removed to be compatible with the new library.
But as @rlkoshak said, if you explain your situation in more detail, we could give you better suggestions in how to tackle it. There’s usually more than one way to do things