GitHub integration and Smartthings


#1

I noticed I can sync GitHub with my ST hub. As I am just starting to use Github I was wondering if I could automatically pull in the code into the needed smartapp or smart device without having to copy and paste.

As I mentioned very new to it so any help would be welcomed. I’ll also YouTube it in the meantime.


FAQ: Github Integration How to Add and Update from Repositories
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #2

Yes… though technically GitHub integration is much more complicated than cut and paste until you get the hang of it, but once you get it working, it is the streamlined approach for the long term.

Ummm… We need to make this a FAQ or video of the Steps to Integrate GitHub… especially for the “read-only” mode that many users are asking for.

… heck, I still barely use the function, but I don’t run a lot of Community code that is updated frequently.


(Mike Whitaker) #3

We should also use GitHub for what the Good Lord intended it for more, as well - I’ve lost count of the number of times I’ve seen people pasting patches into forum threads rather than links to pull requests :smiley:


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #4

True… but we also should respect the fact that many clever folks here have barely begun to get their feet wet with Groovy (or perhaps any programming) … it’s quite possible to do a lot of SmartThings coding by just following examples and modifying templates, etc…

Understanding Git & GitHub (and the extra layer of the actual “integration”!) is a non-trivial burden.

(Though for those who are “graphically inclined”, as opposed to CLI), I highly recommend the free tool SourceTree … It’s perhaps overkill for Repositories with trivial branching, but I like the way it lets me visualize and navigate).

Well… let’s see if a discussion of the process (along with the existing documentation, etc.) leads to the creation of a good FAQ … and/or a Wiki page at: http://ThingsThatAreSmart.wiki !


(Mike Whitaker) #5

I ought to at least volunteer to help here, since I get paid to use Git :smiley:


(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy) #6

Perfect!

I don’t get paid (unfortunately?), but I’m rather OCD, so I love version control systems. Took me a while to adapt from RCS, SCCS, and even Subversion; but I think I have the hang of the most common procedures and “best” practices … of course, how one uses Git is partially up to the individual, as long as it meshes with their teams.

For tracking updates, I actually recommend a “per page” web tracker (I wrote up a suggested method to a member here, but didn’t get confirmation it was working well for him) – since GitHub notifications are at the entire Repository level, not the individual file.

Combine my less-experienced but fast-learning with your experience – and your practices using the SmartThings integration? – we ought to be able to come up with a three part FAQ or something (Beginner, Intermediate, Advanced…?).

We can take the discussion offline to PM if this Topic meanders to much; but feel welcome to take a stab at it and we’ll iterate?


(Mike Whitaker) #7

I’ll see what I can come up with while hiding from the teenager’s video party/sleepover this weekend :smiley:


(Marc) #8

Awesome. Included in this video should be:

  • How to sync with SmartThings Master Repository

  • How to sync with other developer’s repositories

  • How to setup your own repository so other users can sync to it


(Jason) #9

Reviving an old thread… I stumbled on this looking for a nice GitHub FAQ, but instead found this fun little bit

I bet this isn’t true anymore with @bravenel’s rapid releases of Rule Machine. =D


#10

What’s rule machine?


(Albert Cancino) #11

Hello all, I’m new to the community and hoping to find some answers!

I’m in the process of "trying’ to setup the integration between github and smarthings. I’m currently reading the instructions located here, http://docs.smartthings.com/en/latest/tools-and-ide/github-integration.html#github-integration-help. I’m completely stumped on step 1. lol. I’m no developer by any means, but I’m a self taught technie so I’m fairly good at following instructions and figuring things out on my own. I just can’t quite figure out the pre-requisites on how to add the “enable github integration” to my api.

I’m hoping someone can lead me in the right direction? Hope to hear from someone soon and TIA!


(Mark) #12

What exactly do you mean by you’re stumped?

You don’t see the enable github integration button in the IDE?

Or maybe you don’t know how to access the IDE?

If you’re not in the US, you won’t see that button (as that article explains at the top).

If you want to login to the web-based management console called the integrated development environment (IDE), see this post: