Next Step


(Michael Parment) #1

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?

/Mike


(Scott Rushworth) #2

(Michael Parment) #3

That what i said all of this is done.

/mike


(Hilbrand Bouwkamp) #4

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.

(Michael Parment) #5

Thanks.

/Mike


(Scott Rushworth) #6

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.


(Michael Parment) #7

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?

/Mike


(Mark) #8

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

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

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

(Michael Parment) #9

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

/mike


(Michael Parment) #10

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 'https://github.com/tnemrap/openhab2-addons.git'

/mike


(Mark) #11

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  https://github.com/mhilbush/openhab2-addons (fetch)
origin  https://github.com/mhilbush/openhab2-addons (push)
upstream        https://github.com/openhab/openhab2-addons.git (fetch)
upstream        https://github.com/openhab/openhab2-addons.git (push)

(Michael Parment) #12

This is my remotes

$ git remote --verbose
origin  https://github.com/openhab/openhab2-addons.git (fetch)
origin  https://github.com/tnemrap/openhab2-addons.git (push)


(Hilbrand Bouwkamp) #13

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.


(Örjan Backsell) #14

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.
http://www.vogella.com/tutorials/EclipseGit/article.html

Br Basse