FAQ: Github Integration How to Add and Update from Repositories [OBSOLETE]

When I log into that address it take me to the https://graph.api.smartthings.com. I have to click on hubs where it will then prompt me to log in to https://graph-na02-useast1.api.smartthings.com/ide.

@slagle Can you speak to this, What is the proper way to get to the IDE for your respective shard?

1 Like

Interestingly on another thread, someone just posted that ST support told them to use the useast1 shard to solve a problem w/apps not showing up (quote below).

[quote=“SmartApps not showing up on mobile device after install”]I am posting the fix here in case other people have an issue with installing CoRE and it not showing up on the mobile application. Apparently not all of the SmartThings servers can run all code and smart apps.

Instead of logging into https://graph.api.smartthings.com, try logging into https://graph-na02-useast1.api.smartthings.com/1 . You will be able to see all of your devices and Hub by using this URL[/quote]

@E_Sch, What you quoted was from April. Please read the entire thread. where two others mentioned that it did not work as expected.

That’s not the case for my login. https://ide.smartthings.com always takes me to the wrong shard and the support rep confirmed that it is doing this for my login and I have to specifically login to https://graph-na02-useast1.api.smartthings.com.

1 Like

Can someone help am being dense here.

Have just been installing apps through the copy and paste method so far.

Have enabled github integration (UK account) and have linked all ok, but cannot figure out how to add a repo, dont really want to fork the repo.

This is one that im trying to install: https://github.com/erocm123/SmartThingsPublic/blob/master/smartapps/erocm123/virtual-device-sync.src/virtual-device-sync.groovy

It would help if you’d specify where in the process you are getting stuck or getting an error.

Am getting stuck with what to input at this screen:

As you can see i have added some others all ok but for this app i cannot figure it out?

Seems to work w/erocm123 & SmartThingsPublic for me. Added the repo and when I Update from Repo I see this in the list of available items in the GitHub:

smartapps/erocm123/virtual-device-sync.src/virtual-device-sync.groovy

Thanks working now :slight_smile:

Noob here…I’m not sure I understand the GitHub integration. For those of us that will probably never create our own code from scratch…is it even necessary to do the integration? Is there a way to essentially subscribe to a code file so we always have the latest and greatest?

That’s precisely what the github integration does. It allows you to more easily subscribe to someones github repository. It also color codes the smart apps and device handlers you have added so that you can tell when you need to update them. It really just makes it easier if you have a bunch of other peoples code to stay up to date.

Cool. That is what I want to do, but…I could not figure out how to subscribe to a certain person’s repository. All I could see was the “forked” version that I had to do as part of the guided setup. Any thoughts on how to subscribe to it? This is the one I want to subscribe to…

adamoutler/SmartThingsPublic/blob/master/devicetypes/adamoutler/lightify-dimming-switch-zigbee.src/lightify-dimming-switch-zigbee.groovy

I find this Github integration very finicky… Sometimes when I add new GitHub Repository via Owner/Name/Branch and then do a ‘Update from Repo’ it doesn’t show anything in the ‘New (only in GitHub)’ column even though I can see items when browsing on Github. Other times it show files I can add but when I select them and add them it acts like it worked but they don’t show up in My Devices/My SmartApps. I often have to resort to copying the code manually which negates the value of using github.

I have a degree in computer science and have to say that unless this platform becomes much for user friendly I think it never become main stream. Why aren’t people publishing their smart apps to the ‘Marketplace’ which would make accessing them much easier?

Are you making sure to check the publish box?

If you have an outdated version already installed the updated one won’t show up in in the far right column, instead you would check the out of date one in the middle or left column and tick publish box before hitting update

I’m not trying to diminish your troubles with this platform. Many things are finicky. I haven’t personally had any trouble with the gun integration though. From a reliability and user experience standpoint st has a long ways to go.

Here is an example that you can try for yourself to see what I mean. I’d like to install ‘Trend Setter’ from github. First I add the rebo via going into settings and adding Owner:Kriskit, Name:SmartThingsPublic, Branch:master. Then I select ‘Update from Repo’ and select the two Device Handlers devicetypes/kriskit/trendsetter/switch-group-device.groovy and devicetypes/kriskit/trendsetter/dimmer-group-device.groovy. I check ‘Publish’ and then press ‘Execute Update.’ Everything acts like it works but the device handlers are not installed…

Am I doing something wrong? For about half of the github code I try to install this happens. I end up just copying the code myself instead…

Same here…can we get a tutorial for noobs?

Bueller??? Bueller??

1 Like

Hi all

i have managed to successfully link my smartthings and github. But being new to all this,i still have some very basic questions:

  • Once you’ve gone to device handlers/settings/add new repository, where do you get the neccesary info to add it?
  • What does it mean to ‘fork’ something?

When you add a new repository there are usually 3 bits of info you need to fill in…

Owner
Name
Branch

You usually get these from the developer that offers his/her software

Actually adding the specific software to your account is talked about here:

I can’t find the “Enable GitHub Integration” link :confused: Any hints? Its not under “My device handlers”