GitHub Install

From webCoRE Wiki - Web-enabled Community's own Rule Engine
Revision as of 23:56, 17 August 2020 by WCmore (talk | contribs)
Jump to: navigation, search
Share on FacebookShare on TwitterShare on Google+Share on LinkedInShare on DiggShare on deliciousShare on redditShare on StumbleUpon

Summary

These instructions will guide you through installing via GitHub integration all the way to adding devices and authorizing your browser for use.

Warning Warning: Edit August 2020: Not sure if GitHub will work in the new app, but the new SmartThings app has different installation steps.

Installing Source Code into SmartThings Cloud

  1. Login to the SmartThings IDE.
  2. Click on My SmartApps.
    Mysmartapps.jpg
  3. Click the Settings button at the top of the page.
    Settings.jpg
  4. Click the Add new repository link at the bottom of the pop up.
  5. Enter ady624 in the Owner column.
  6. Enter webCoRE in the Name column.
  7. Enter master in the Branch column.
  8. Click Save (do not hit the Enter key, it will exit the form without saving).
    Githubrepo.jpg
  9. Click Update From Repo.
  10. Select webCoRE (master) from the list.
    Update.jpg
  11. Check "webCore.groovy" from the New (only in GitHub) box.
    Warning Warning: Do not update all at once
    Githubinstall webcoreonly.png
  12. Check the Publish checkbox at the bottom of the pop up.
    Ide update.png
  13. Click the Execute Update button.
    Ide update-new.png
  14. Click again on Update From Repo.
  15. Select webCoRE (master) from the list.
    Update.jpg
  16. Check "webCoRE Piston.groovy", "webCoRE Storage.groovy"and "webCoRE Dashboard.groovy" from the New (only in GitHub) box.
    Githubinstall allchecked.png
  17. Check the Publish checkbox at the bottom of the pop up.
    Ide update.png
  18. Click the Execute Update button.
    Ide update-new.png

Enabling OAuth for webCoRE

  1. Navigate to the My SmartApps page if you are not already there.
    Mysmartapps.jpg
  2. Click the edit button to the left of ady624 : webCoRE, it looks like a rounded square with a pencil in it.
    Editwebcore.jpg
  3. Scroll down and click on OAuth.
  4. Click the Enable OAuth in SmartApp button.
  5. Click the Update button at the bottom of the page.
    Oauth.jpg


Installing webCoRE

  1. Open the SmartThings app on your mobile device.
  2. Tap the Marketplace icon at the bottom of the screen. If you are in a Room or Device within the app you will need to go back to My Home.
  3. Tap the SmartApps header at the top of the page.
  4. Scroll down and tap My Apps.
  5. Scroll down until you find webCoRE and tap it. Do not tap webCoRE Piston. If you can't find webCore you likely skipped some steps above.
  6. Tap Next.
  7. Here you can change the name from webCoRE to anything you desire then tap Next. (Recommend leaving it unless you are working with multiple instances.)
  8. Choose a password and expiration length then tap Next.
  9. Scroll through the list and select all of the devices you want webCoRE to have access to. If you do not do this, you will not be able to use those devices in webCoRE. This must also be done again when adding new devices to your SmartThings Account. webCoRE will not automatically import them.
  10. Tap Next.
  11. Tap Done.


Opening the new dashboard from your phone

  1. From within the SmartThings app, tap the Automations icon at the bottom of the screen and select the SmartApps section.
  2. Scroll down and tap the name of the webCoRE instance you are trying to access. This is typically webCoRE, unless you edited the name during the installation process.
  3. Tap Dashboard.
  4. You will be prompted to enter the security password, the same password you created when you installed webCoRE.


Using webCoRE from another browser

You cannot bookmark the URL you launched from the SmartThing app. In order to use webCoRE on another device you must follow these instructions.

  1. From within the SmartThings app, tap the Automations icon at the bottom of the screen and select the SmartApps section.
  2. Scroll down and tap the name of the webCoRE instance you are trying to access. This is typically webCoRE, unless you edited the name during the installation process.
  3. Tap Register a browser, a page will appear providing you with a registration code. The code expires in 3 minutes and can only be used once.
    Register a Browser Register a Browser
  4. On your other device, open the browser and visit webcore.co/re
  5. Enter the code and click Register.
  6. You will be prompted to enter the security password, the same password you created when you installed webCoRE.


Github Installation Troubleshooting

500error.png
If you receive this error it may be because you installed and published both "webCore.groovy" and other SmartApps at the same time. Please do them in order per the instructions. Be sure to install/publish "webCore.groovy" first then the others after (See steps 11-16). You can do the other SmartApps at the same time after "webCore.groovy" has been installed and published.