How To Host webcore Local Server


#1

1) Give a description of the problem
How To Host webcore Local Server

2) What is the expected behavior?
How To Host webcore Local Server
3) What is happening/not happening?
(PUT YOUR INFO HERE)

4) Post a Green Snapshot of the pistonimage
How To Host webcore Local Server
5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

#3

thank but my Question is how to host https://dashboard.webcore.co/register
in local server


#4

Is this what you are after.
I have done this on an RPi for my Hubitat installation and it works well.


#5

I’m about to ask a question of huge sacrilegious proportions…

Has anybody got any instructions to run WebCore (the local Hubitat version) on Apache for Windows? I have neither a RPi, nor any *ix experience…

Thanks
J


#6

@GatVlieg did you manage to get windows instructions in the end or get it working on windows? I have a win 10 machine running 24/7 for HomeBridge, Plex etc so it could sit nicely on that, just not sure where to start


#7

Nope, never did. Using it on Hubitat in its default configuration.

J


#8

Hey @GatVlieg
I managed to get WC working local on Windows 10. Hubitat is pretty sweet on local copy.
Let me know if you want the instructions posted here


#9

Hi there,
Did you ever published the instructions to run webcore on win10 ?
can you show me how ?
Thanks
Robert


#11

I have not tried it on windows

but the webcore repo is what you download to your system (you will be using the /dashboard directory)

There is a superstatic config file (for npm) in that directory, so if you have nodeJS installed and superstatic.

Here is rough of what I do on a pi system

I usually use git clone to get a copy of the tree.

I use superstatic (npm) to run the web server (on my pi)

so on the pi

  • one time install nodeJS, npm, and superstatic in npm

cd dashboard (where you git cloned the files)

superstatic --host thismachineIPaddress

So now you can navigate to the dashboard. http://machineip:3474

In the current webcore. (HE console -> Apps -> webcore) , the settings should be

Use custom endpoints (set to true)

Use local hub URL for API access. (set to true)

Done your way out of webcore (at bottom of page) to ensure all settings are applied.


#12

I’m curious, what is the benefit of running webcore locally? I thought the webcore instance was only used to create/edit pistons and was not involved in the execution of the pistons?


#13

that is correct, ‘local’ only means serving the html/js/css files to your browser.

For most it is more ‘philosophy’ than a behavior change.

In some cases it can make life more difficult if you want access to webcore dashboards/ide but you are not on the local network.


#14

Do you have the instructions on installing webcore locally on a windows machine?


#15

For HE, this is described in links for “How webCoRE on HE works”: