Author |
|
bobbrock Newbie
Joined: July 14 2014 Location: United States
Online Status: Offline Posts: 2
|
Posted: July 14 2014 at 19:18 | IP Logged
|
|
|
Is it possible for PowerHome to receive a serial or IP commands? Wanting to
setup a POS System for a pool hall to send commands to turn on or off lights
when transactions are open/closed
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: July 14 2014 at 23:26 | IP Logged
|
|
|
Bob,
Yes...PowerHome can send/receive serial commands using the built in serial functions or the generic serial plugin. PowerHome is also capable of responding to IP via the webserver and the socket server. It also can respond to Windows messages.
Dave.
|
Back to Top |
|
|
bobbrock Newbie
Joined: July 14 2014 Location: United States
Online Status: Offline Posts: 2
|
Posted: July 15 2014 at 15:44 | IP Logged
|
|
|
Thanks for the reply Dave.
|
Back to Top |
|
|
artart Newbie
Joined: August 02 2014 Location: United States
Online Status: Offline Posts: 13
|
Posted: August 04 2014 at 17:33 | IP Logged
|
|
|
Are there other plugins to download somewhere? I found messages referencing other plugins but is there somewhere to download all available plugins?
Edited by artart - August 04 2014 at 17:46
|
Back to Top |
|
|
artart Newbie
Joined: August 02 2014 Location: United States
Online Status: Offline Posts: 13
|
Posted: August 04 2014 at 18:53 | IP Logged
|
|
|
Trying to install the comm plugin. The help file says:
Raw COMM
Launch Data (ActiveX Classname): PH_Socket.phsocket
Is PH_Socket.phsocket the correct name for the plugin? That
is also the name of the Socket plugin. Is it the same
plugin?
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: August 04 2014 at 19:02 | IP Logged
|
|
|
artart,
All the available plugins should have been auto-installed with PowerHome in the c:\powerhome\plugins directory.
The help file is wrong (copy/paste error). The correct name for the ph_comm plugin is PH_COMM.phcomm.
Hope this helps,
Dave.
|
Back to Top |
|
|
artart Newbie
Joined: August 02 2014 Location: United States
Online Status: Offline Posts: 13
|
Posted: August 04 2014 at 19:06 | IP Logged
|
|
|
Thanks Dave. I did read some forum posts about other plugins like the Growl plugin for example. Is that plugin included in the install?
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: August 04 2014 at 19:10 | IP Logged
|
|
|
Art,
Yes, in version 2.1.5a, all available plugins should be included in the install. Documentation still needs to be updated to reflect the newer plugins but alot of them have been documented on the forum and some include help texts in the plugins folder.
Dave.
|
Back to Top |
|
|
artart Newbie
Joined: August 02 2014 Location: United States
Online Status: Offline Posts: 13
|
Posted: August 04 2014 at 19:19 | IP Logged
|
|
|
Understand but I must be missing something then. I do not see a Growl plugin in the plugins directory.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: August 04 2014 at 19:28 | IP Logged
|
|
|
art,
What version of PowerHome do you have installed? Version 2.1.5a should have all the plugins available.
Dave.
|
Back to Top |
|
|
artart Newbie
Joined: August 02 2014 Location: United States
Online Status: Offline Posts: 13
|
Posted: August 04 2014 at 19:31 | IP Logged
|
|
|
It is the one I downloaded from the website about a week ago. Help/About says 2.1b
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: August 04 2014 at 19:32 | IP Logged
|
|
|
art,
You'll want to upgrade to version 2.1.5a. You can find the file in the forums here: http://www.power-home.com/forum/forum_posts.asp?TID=3393&PN= 1
Dave.
|
Back to Top |
|
|
artart Newbie
Joined: August 02 2014 Location: United States
Online Status: Offline Posts: 13
|
Posted: August 04 2014 at 19:47 | IP Logged
|
|
|
Dave,
I was wondering about that post but I assued the latest version would be on the website so I ignored it. I'll update now then. Thanks for your help.
Art
|
Back to Top |
|
|
artart Newbie
Joined: August 02 2014 Location: United States
Online Status: Offline Posts: 13
|
Posted: August 05 2014 at 00:30 | IP Logged
|
|
|
Dave,
I was able to install 2.1.5 after going thru two or three
database upgrades...not fun, but it's done and works. I
did have to reset my Sun settings and reset the Web
Server to be on. I also had to regenerate my Control
Center using the wizard.
I also had a problem with button graphics missing on my
Control Center even after recreating the Control Center
using the Wizard. I did find this in the .ini file:
WEBSERVERDIRECTORY=C:\Program Files (x86)\powerhome\web.
I changed it to WEBSERVERDIRECTORY=C:\powerhome\web and
that seems to have fixed the missing graphics issue. But,
whereas with 2.1b web pages rendered perfectly on my
smartphone over cellular using no-ip to redirect, after
installing 2.1.5b the Control Center page is *huge*. The
other pages look OK. I don't know if it is a bug in the
install process or if it is something I did during the
process. Any idea how to fix this?
Anyway
|
Back to Top |
|
|
artart Newbie
Joined: August 02 2014 Location: United States
Online Status: Offline Posts: 13
|
Posted: August 05 2014 at 00:52 | IP Logged
|
|
|
I tried a different browser on my phone (Opera Mini) and
the Control Center page looks fine. I was using Chrome so I
guess something changed in the way 2.1.5 renders pages that
Chrome does not like. I guess I'll switch to Opera!
Did some additional testing on different devices with
different browsers. They all seem to render differently.
Opera is even different than Opera Mini on my Android
tablet. I don't think this was the case when I was running
2.1b
Edited by artart - August 05 2014 at 01:37
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: August 05 2014 at 19:06 | IP Logged
|
|
|
Art,
I'll have to check into this. I don't think anything changed in the resulting html for a control center between 2.1b and 2.1.5 but I'll have to do a code comparison.
Ive got just the opposite problem. On my Android running Chrome, Chrome had an upgrade which caused the rendering of my CC screens to be compressed so that the entire CC is in the upper half of the screen. Before the chrome upgrade, Chrome would display the CC as much as would fit left to right but filling the whole screen vertically. A simple flick allowed me to get to the other half. Now I have to do a pinch zoom and then when I press the button, it immediately resizes back to the tiny little control center. I don't have this problem with other browsers such as Boat.
I'll check the code and report back.
Dave.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: August 08 2014 at 13:55 | IP Logged
|
|
|
Art,
I checked the code and no changes occurred between version 2.1.4 and 2.1.5a that would affect this. However, a change did occur between 2.1b and 2.1.4.
In 2.1.4 and up, webpages now include a couple of meta tags to try and make viewing on handheld/smartphone devices more compatible.
The tags that now appear are:
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width=device-width; initial-scale=1.0;" />
On Control Center pages, the tags are nearly identical but do not include the initial-scale=1.0 in the viewport (not sure why I did this but I had code to specifically pull this out for CC pages).
In the past, this always worked well for me with my Control Center starting at normal size (but larger than would fit on the screen) and I could scroll around to appropriate areas of the screen and press buttons without having to zoom in to make the button discernible from other buttons. My current problem is that a more recent version of Chrome for Android changed this behaviour and now my CC screen is squashed so that the entire CC screen fits on the screen of my phone (I can see everything which is nice but cant really control without zooming in. This is a pain because every button press causes the CC to be resized to fit full screen necessitating a zoom in before each button press). Other browsers such as stock android and boat browser do not have this issue.
Ive run some tests on the code and Im able to get back my original functionality (desired for me...it might not be desired by anyone else) by modifying the meta tags to look like this for all web pages include Control Center pages:
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width=device-width,user-scalable=yes,initial-scale= 1.0" />
This solves my Chrome issue and allows my other browsers to work as well however in an effort to make sure I don't introduce undesirable effects for other people, I suggest everyone run a test to see if the changes above will cause an issue.
The easiest way to test is to hit the CC page (or any page for that matter) from a desktop browser and do a view source. Save this source into the PH web directory with a name such as cc.htm. Edit the source and change the current meta tags within (or delete them altogether to test a 2.1b type of page) to match the new tags above. Save your changes and then open this webpage from your mobile device to see how it views.
Let me know,
Dave.
|
Back to Top |
|
|