Originally posted by claude
View Post
Announcement
Collapse
No announcement yet.
Windows Style Live-Tile UI for HomeSeer
Collapse
This is a sticky topic.
X
X
-
Really having fun.
I'm struggling with the images. As an example...
PHP Code:<hsdevice class="hstile" params="url: 'http://192.168.0.109', ref: 28, color: 'steel', icons: {
'Disarmed': '/images/HomeSeer/status/unlocked.gif',
'armed': '/images/HomeSeer/status/locked.gif'}"></hsdevice>
What is the magic here?
Great job WayneDon
Comment
-
It's nothing that you're doing wrong. I actually haven't coded in alarm system states yet. So there is no code to recognize a status of Arm, Armed, Disarm, Disarmed. I'll add that in for you.
Right now I'm banging my head trying to figure out a way to use the ASCII interface so that I can pass status updates automagically back to the tiles. I'm not seeing a very straight forward way to do it using just javascript. I just simply can't connect to it. I'm afraid I may have to go the route of some sort of proxy server, but that will add a level of complexity to this that I'm afraid some users won't want to deal with.
Comment
-
Yeah, for someone like me w/ limited brain cells, I'm already in the deep end of the pool. But it's sooo cool.
Is there some way to incorporate both the location and location2 names of the device? In my case I have devices named 'overhead lights' and differentiate using location2 like 'office' and 'living room'.
Thanks.Don
Comment
-
Originally posted by wposner View Post... Right now I'm banging my head trying to figure out a way to use the ASCII interface so that I can pass status updates automagically back to the tiles. I'm not seeing a very straight forward way to do it using just javascript. I just simply can't connect to it ...
So either you ask all users to create such a user/password combination on their HS and have a way for them to make that available to your JavaScript, or you ask all users to create a common generic user/password combination which is then hard coded in your JavaScript.
P.S. See my response to your other post on the ASCII interface (status changes)
Comment
-
Originally posted by travisdh View PostApologies if I have glossed over how to do this, but I am wondering if I can set up status only devices which just report a string, and also if it is possible to set double or triple width tiles (like the news ones) to report the string.
Comment
-
Originally posted by travisdh View PostSounds great, I think it might have been because I had not removed the icons I guess from the config part, if it was possible to specify a width & height (relative to the normal tile), e.g. 1x1 is default, you could then be 2x1 which is two wide, 1 high, and so on that would be fantastic
I can change it so that you can specify a tile width, but don't want to start getting in to height changes for the hsdevice type. If you have a specific type of device that requires a very large layout to present info in a certain way, it might be better to create a new tile type.
Comment
-
I'm extremely excited to announce that I have FINALLY!!! gotten the ASCII interface communicated to the tiles. So if you turn on a light, the associated tile will show that the light is on. If you lock the door, the tile will update to show the door is locked. Previously, as those of you who are playing around with this already know, you had to manually refresh to get the tiles to display status of devices you didn't control through the UI.
There is a catch, though. You will need to install NodeJS to get this to work. You will then need to configure a small proxy server to run as a service. The proxy service is responsible for receiving updates from your HomeTroller and passing the info to the UI. You will also need to be running .153 of HomeSeer software which I don't believe Rich has publicly released yet.
I will post instructions in the 1st post of this thread once I get everything finalized.
Comment
-
Originally posted by wposner View PostI'm extremely excited to announce that I have FINALLY!!! gotten the ASCII interface communicated to the tiles.
Originally posted by wposner View PostThere is a catch, though. You will need to install NodeJS to get this to work. You will then need to configure a small proxy server to run as a service.
Originally posted by wposner View PostYou will also need to be running .153 of HomeSeer software which I don't believe Rich has publicly released yet.
Comment
-
I gather you are using something like websockets to communicate with the tiles and Node.js, or is this some other way, like an ajax thingy.
Not suggestion to reinvent the wheel, but if you are going the websocket way it may be worth looking at superwebsocket, I am using this in a number of my personal plugins and one I am hoping to release soon and it works on mono and windows.
Comment
Comment