Next Step

Need some guidance.
Have Installed IDE
Created a skeleton.
Developed a working binding.
Compiled it without errors to verify it in my installation.

What is the next step?


That what i said all of this is done.


Next steps would be:

  • Announce your binding (with link to were they find a jar to try out) on this forum so people can give you feedback on your binding, find bugs and enjoy your contribution.
  • Create a pull request on the openhab2-addons repository on GitHub. Than it will be reviewed (you probably will need to make some improvements). And than it will be included in openHAB and be available for all in the next release.



Sorry… I thought you were asking how to get your binding into the distro, and there’s a whole section in the doc’s on how to do that.

Now my GIT knowledge is to low.

Now i have a working binding in my IDE.
Have compiled it and tested it in my production environment.

Now i want to have this up in my GitHub so i can link to the documentation when i release this to Beta testers.

Can i from eclipse do a replica in my Github?
How will this be connected to OpenHAB repository?


Did you fork the openhab2-addons repo? Like this?

If so, you should be able to push your local dev branch by doing:

git push origin name-of-your-dev-branch

No i did not create a fork just followed the IDE Installation Guide.


Now i have created a fork but when i run your command i get an error.

$ git push origin smhi
error: src refspec smhi does not match any.
error: failed to push some refs to ''


I’m sorry, I’m not sure what to suggest. I’ve had this setup since I installed the IDE a very long time ago, and it just works. I know just enough git to get by…

This is how my remotes are set up. Perhaps this is not standard anymore, but that’s how it was set up way back…

$ git remote --verbose
origin (fetch)
origin (push)
upstream (fetch)
upstream (push)

This is my remotes

$ git remote --verbose
origin (fetch)
origin (push)

If I google for your error message the common answer seems to be this error is given when you try to push while you haven’t commit any messages (and/or only added files). I that is the case, as you already mentioned your not very familiar with git, I would advice to learn a little bit more about how git works. There a numerous resources around the internet that teach you how to learn git. That will get you progress much faster than asking help for each and every problem you encounter.

I have searched for some info. regarding this issues as well. I have found this and it seems to be close to what we are looking for. Please, have a look.

Br Basse

1 Like