Originally posted by wposner
View Post
Announcement
Collapse
No announcement yet.
Windows Style Live-Tile UI for HomeSeer
Collapse
This is a sticky topic.
X
X
-
Originally posted by naellis View PostSorry, you'll have to help me that one - type what where ?
Then type:
node proxy.js <ip address of your HomeSeer Server> <Port you want the UI to listen on>
You should start seeing the same output that you did from your telnet session. DO NOT CLOSE THIS WINDOW--yet.
The IP address you used above is the IP address you need to set in your HTML in the port parameter (based on the sample I've provided in home.html)
If everything is configured properly, the UI should update as broadcasts are received.
If all this is working, the next step is to get the service working. Go ahead and cmd-c the proxy window or just close it.
If the proxy was working based on the above command, then it should also work when you install the service via nssm if you use the exact same IP and Port. If it does not work then let's try turning off your firewall first to see if that's the issue.
Report back.
Comment
-
OK so I see the remote to proxy and proxy to client messages. Then tried editing the home.html and changed the ip address in there to my one and changed refID to match my network - none of my on/off device tiles show on the home screen. Terminal window was running. Have I missed something else ?
Comment
-
Originally posted by naellis View PostOK so I see the remote to proxy and proxy to client messages. Then tried editing the home.html and changed the ip address in there to my one and changed refID to match my network - none of my on/off device tiles show on the home screen. Terminal window was running. Have I missed something else ?
Code:<hsdevice class="hstile" id="stair_light" params="url: 'http://192.168.1.250', ref: 220, color: 'steel', icons: { 'on': '/images/HomeSeer/status/on.gif', 'off': '/images/HomeSeer/status/off.gif'}, proxyIP: '192.168.1.90', proxyPort: '8000'"></hsdevice>
Comment
-
My bad. I have my build folder that I generally don't touch. I must have accidentally overwritten the home.html file. Just copy paste the code from my previous post and update the values as needed. That way you're not having to manually add the extra parameters.
I plan to post a new build soon. I was hoping to hold off until I finish the thermostat widget, but I may need to just go ahead and post a new one with the new minor features.
Comment
-
It's got to be a syntax error in the HTML. If the refID was incorrect, you'd get a blank tile. I just tried it on my side and if I make any hsdevice tile have invalid syntax, I get the same result as you. Can you copy/paste your html in a code block block here so I can take a look at it? Or just PM it to me.
Comment
-
Originally posted by wposner View PostIt's got to be a syntax error in the HTML. If the refID was incorrect, you'd get a blank tile. I just tried it on my side and if I make any hsdevice tile have invalid syntax, I get the same result as you. Can you copy/paste your html in a code block block here so I can take a look at it? Or just PM it to me.
<hsdevice class="hstile slide ha ui-sortable-handle" params="url: 'http://192.168.0.102', ref: 59, color: 'steel', icons: {
'on': '/images/HomeSeer/status/on.gif',
'off': '/images/HomeSeer/status/off.gif'},
proxyIP: '192.168.0.102', proxyPort: '6512'"><div class="slide-back ha"></div></hsdevice>
Comment
-
Originally posted by wposner View Post
If everything is configured properly, the UI should update as broadcasts are received.
If the proxy was working based on the above command, then it should also work when you install the service via nssm if you use the exact same IP and Port. If it does not work then let's try turning off your firewall first to see if that's the issue.
Report back.
I removed the service once again and then installed as per instructions using the same ip & port as above. The service still failed to start and in the log I have quite a few of these which I assume are current because there are no time stamps.
Error: Cannot find module 'C:\Program'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
module.js:338
throw err;
I getting closer but need some more advice.
Comment
-
Originally posted by wposner View PostWhen you entered the path to Node.exe did you type it or browse to it? It looks like you've got some sort of string parsing error. For the arguments I would browse to the folder where proxy.js is located and then copy paste from the explorer address bar in to that field.
Edit: Just tried again and get the same error in the log when starting serviceLast edited by naellis; March 12, 2015, 05:08 AM.
Comment
-
Originally posted by naellis View PostI have tried both ways ....browsed within the nssm ui and cut & paste from your instructions. As i mentioned before the node.exe is within c:\program files where a the start in path and arguments are in c:\program files (x86 ) .....could this cause a problem ? I'll try it again anyway and let you know.
Edit: Just tried again and get the same error in the log when starting service
nssm should work under Windows 2000 or later. Specifically, Windows 7 and Windows 8 are supported. 32-bit and 64-bit binaries are included in the download. Most of the time it should be safe to run the 32-bit version on 64-bit Windows but in some circumstances you may find that it doesn't work and you must use the 64-bit version. Both versions are compiled from the same source code. If one works for you, use that one. If it doesn't, try the other.
Comment
-
Originally posted by wposner View PostI think it's because your on an x64 system. There is a x64 version of NSSM that was supposedly included in the zip file when you downloaded it.
That's the one I used even though it was in the (x86) program directory path
I just tried the x86 version - no go.
Can you try to find that version of the executable and use that one. If that doesn't work try to grab the x64 version of Node from here https://nodejs.org/download/
Can I send you anything that may help ?
Comment
Comment