Handige html Plugwise op je pda/smart phone/mobiel

Plugwise Forum about Plugwise devices and the Source software.
Post Reply
Reinder
Member
Member
Posts: 220
Joined: Sun Jan 13, 2008 12:57 am
Location: Netherlands

Handige html Plugwise op je pda/smart phone/mobiel

Post by Reinder »

In de bijlage vinden jullie een handige html gebaseerd op de webserver functionaliteit van de Plugwise software, de Source.

Het is een heel simpele html die prima draait op smarphones. Mijn collega had hem in een uurtje in elkaar gedraait, en ik wilde hem graag met jullie delen. Ik hoop dat dit een aanzet geeft tot nieuwe dergelijke simpele handige oplossingen.

Het werkt heel simpel. Plaats de html in de www directorie van de Source. Configureer in de Source groepen die beginnen met "_RC". De html zal deze groepen heel simpel weergeven en kunnen schakelen.

Succes. Ik hoop echt dat men hier eigen handigheidjes aan toe voegd en weer deelt met elkaar.

<b>Download Attachment:</b> [img]images/icon_paperclip.gif[/img] rc.zip<br />1.62KB
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Handige html Plugwise op je pda/smart phone/mobiel

Post by Bwired »

Thanks Reinder
I will install it!
BTW: please this forum is English.
highseas@hetnet.nl
Starting Member
Starting Member
Posts: 4
Joined: Sun Feb 22, 2009 5:41 pm
Location: Netherlands

Handige html Plugwise op je pda/smart phone/mobiel

Post by highseas@hetnet.nl »

Thanks Reinder! It started my curiosity to find out what's possible and not.

Don't know if it's appropriate to take a sideturn on the conversation here or maybe I should do that in a seperate post, but since I'm new to this server thing I guess it's ok to take a small sidestep :-)

After RTFM, that is the resource template, which I normally only do when I get stuck ;-) I made a very basic testpage to see what data I can poll (testpage is attached). I'm not so familiar with the javascript syntax (only goodold VB) but I guess I made it so far.
Some interesting things show up that have me puzzled a bit, because there's not a lot of info from Plugwise.

1. The Enviromental data does not really seem to serve a purpose other than gathering information (for whom?) but I can't find info on what data represents what, apart from the obvious.

2. There is one more Module then the number of Appliances (Circles). This must be the Stick logically. Type=0 whereas the Circle+ has Type 1 and all other Circles are Type 2.

3. Module ID and Appliance ID are not the same. Don't see why they must be different even if there is one more Module than there are Appliances. Makes it harder to find the right one (extra code) as I understand that the Modules work Realtime and the Appliances based on Last known info.

Anyway, this was just a lookaround exercise from me :-) Will try to make someting I can add to the Startup-folder of Windows, just to switch the things that I always need when I start up my computer. Was hoping to address that directly with code instead of calling a HTML-page, but working on that. Maybe this is also a good time to get myself into Java so I can migrate it later to my NAS ;-)
Problem so far is that the Source server only works if the PlugwiseSource program is running (and that is a slow starter). This PlugwiseServer is much quicker on start up, but doesn't do anything it seems.

<b>Download Attachment:</b> [img]images/icon_paperclip.gif[/img] test.zip<br />2.16 KB
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Handige html Plugwise op je pda/smart phone/mobiel

Post by Bwired »

PlugwiseServer.exe is only the webserver version, you can poll this webserver and get the same information as with the source, the source has also a GUI for graphs and direct info.
It's also very lean and mean regarding taking resources from your computer (less memory etc).
So your code should work on this PlugwiseServer.exe
Lot of your other questions are answered in other topics of the Plugwise forum.
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Handige html Plugwise op je pda/smart phone/mobiel

Post by Bwired »

btw: your test.html is running but needs some optimizing! it's taking a lot of time to complete, more then 1 minute with 30 plugwise circles :-)
highseas@hetnet.nl
Starting Member
Starting Member
Posts: 4
Joined: Sun Feb 22, 2009 5:41 pm
Location: Netherlands

Handige html Plugwise op je pda/smart phone/mobiel

Post by highseas@hetnet.nl »

Yeah, it's only a tryout actually, just to see what it does. Got the plugs for about a week now. Besides I'm pretty new to the scripting language, so still figuring out a lot esp. syntaxwise it's a bit different from VB.

30 circles is quite something :-) It says in the Template info that All returned information on the Modules is real time, so using the Module object can cause page delays, since execution of the template is halted until the requested information is received from the module, so this might explain the slowdown!
Already noticed in the Source program that especially the Circle+ takes much longer to update than the other circles.

Will go through all the other post too but sometimes it's very tempting to just do something before reading everything ;-) so excuses if I have been asking known-to-everybody-but-me questions! Catching up reading as we speak ;-)
highseas@hetnet.nl
Starting Member
Starting Member
Posts: 4
Joined: Sun Feb 22, 2009 5:41 pm
Location: Netherlands

Handige html Plugwise op je pda/smart phone/mobiel

Post by highseas@hetnet.nl »

You're right about PlugwiseServer.exe!
I was just too impatient. It has to be running for some time before the page is processed at all, otherwise it says page not found.

But even then, page processing is much slower than with PlugwisePC.exe!
Bwired
Administrator
Administrator
Posts: 4704
Joined: Sat Mar 25, 2006 1:07 am
Location: Netherlands
Contact:

Handige html Plugwise op je pda/smart phone/mobiel

Post by Bwired »

You could be right, I run the source because it's easy to see the GUI once in a while:-)
Digit
Global Moderator
Global Moderator
Posts: 3388
Joined: Sat Mar 25, 2006 10:23 am
Location: Netherlands
Contact:

Handige html Plugwise op je pda/smart phone/mobiel

Post by Digit »

I've got the Source running 24/7 also, never had any problems. Although shutting down can take a while after it (the Source) has been running for multiple weeks.
User avatar
Rene
Global Moderator
Global Moderator
Posts: 1689
Joined: Wed Oct 08, 2008 3:54 pm
Location: Netherlands

Handige html Plugwise op je pda/smart phone/mobiel

Post by Rene »

I also never experienced a problem while running the source 24/7. However, the webserver software is a bit buggy. Often the status of the webserver is displayed as stopped while it is actualy running.

Rene.
Post Reply

Return to “Plugwise Forum”