Author |
|
roncomer Newbie
Joined: January 02 2003 Location: United Kingdom
Online Status: Offline Posts: 12
|
Posted: January 02 2003 at 19:09 | IP Logged
|
|
|
I am currently evaluating PowerHome (v1.02.2) and am having problems with the the web server side of things
I have *DIAL-UP* internet access - so am allocated a different IP address each time I connect to the internet…
I am running Windows 95
I thought that PowerHome could handle dial-up access (the main thing I want to do is control my X10 devices over the internet) - but if I have dynamic IP addresses, what address do I connect to?
This is what I have managed to do/get to work so far:
I have connected 1 appliance module for this test. I can see (using Internet Explorer (IE5)) this module - but only when I use the local ‘loopback’ IP address (127.0.0.1) as the internet address
ie when I type http://127.0.0.1:8000 in the browser, the address automatically changes to http://127.0.0.1:8000/ph-cgi/main, and I can see (and control) my test appliance module
So my basic question is - how can I do this over the internet with a dial-up internet account?
Please help!!
Many thanks in advance
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: January 02 2003 at 22:02 | IP Logged
|
|
|
Ron,
Once connected to the internet via your dial-up, you should be able get your current IP a couple of different ways. The way I prefer is to open up a command prompt and type 'ipconfig' and press enter. This should give you your current IP configuration.
Now the problem that you'll have is how to access PowerHome remotely since you'll get a different IP each time you dial-up. Im not sure how you're going to be handling your dial-up connection. You might be planning to have PowerHome connect to the internet at preset times or perhaps you're planning on just staying connected continuously. There are a number of dynamic IP services such as TZO.COM and DYNDNS.COM which will post your dynamic IP for automatically. PowerHome also provides a system variable named [DIALUPIP] which contains the your current dialup IP address. If you are having PowerHome dialup to the internet at preset times for you, you could have PowerHome send you an email with the [DIALUPIP] in the body each time you connect. Most dial-up accounts also provide a user with a small amount of space for their own web pages. These webpages are usually accessed by a URL of something like: http://www.yourisp.com/~username or something similar. I haven't actually looked, but I would be surprised if there aren't any freeware utilities that will automatically upload your current IP to your personal webpage for you.
Having dial-up and a dynamic IP does not make home automation the easiest to do, but it can be done. When I had dial-up, my ISP charged for connect time so I could not stay connected constantly and had PowerHome dial at preset times and email the IP to me. I even played with TZO.COM and it worked quite well, but was an extra cost nicety. I'll do a little more research and post back with what I find.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 03 2003 at 00:34 | IP Logged
|
|
|
I also found a program that may do the trick...
color=#0000cc http://www.algenta.com/software/winip/
Tony
|
Back to Top |
|
|
roncomer Newbie
Joined: January 02 2003 Location: United Kingdom
Online Status: Offline Posts: 12
|
Posted: January 03 2003 at 03:20 | IP Logged
|
|
|
Hi Dave/Tony
Thanks to BT (British Telecom) - I cannot get broadband (ASDL) as I live more than 5.5km from my local telephone exchange! This means I am stuck with dial-up at present!
My ISP does provide free web space, and I am familiar with using it (years ago I uploaded some test websites via FTP etc)
Could you possibly provide me with exact details as to how I can get my IP address emailed to me automatically when I connect? I like the sound of that to try.
One thing worries me though - I found out my IP address yesterday in testing (when I was connected to the internet) but when I typed it in the browser, I never managed to display the PowerHome page (it timed out). I had PowerHome set in 'allow guest' mode. Each time I tried this, it was as if the browser could not resolve/connect to the dynamic IP address...
Related question - with dial-up, should I start PowerHome (and hence the web server) before I connect to the internet, or after? Or does it not make a difference.
I will also investigate Tony's suggestion (next post)
My main concern though, is that I found my IP address when connected to the internet, but the browser could not connect successfully to the PowerHome web page (that I saw when using 127.0.0.1)
Are there any settings I am missing?
Thanks for your help
Ron
|
Back to Top |
|
|
roncomer Newbie
Joined: January 02 2003 Location: United Kingdom
Online Status: Offline Posts: 12
|
Posted: January 03 2003 at 16:14 | IP Logged
|
|
|
SUCCESS!
I downloaded WINIP (thanks for suggesting it Tony - it works a treat!) and after registering etc, can now access my PowerHome web server/web page via dynamic IP using a static 'hostname' (I set one up at ods.org). The icing on the cake was that all this stuff (WINIP etc) is Free!
I am seriously pleased!
Thanks again to you both for responding so quickly to my original post
Dave: because of the above, I don't really need help with how to get PowerHome to email me my IP address automatically - but if you have the information to hand I would like to have it anyway.
I'm sure I'll have some more questions for you soon - but from what I have seen of the PowerHome software so far, I reckon it will be a definite purchase in the near future :-)
Thanks
Ron
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 03 2003 at 22:26 | IP Logged
|
|
|
Glad I could help! There is also a site that lists dozens of dynamic DNS services... www.technopagan.org/dynamic
Tony
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: January 05 2003 at 19:19 | IP Logged
|
|
|
Ron,
Glad it worked for you. Concerning your earlier post...you should start PowerHome first and then have PowerHome launch the web connection. Otherwise the [DIALUPIP] system var won't have the correct IP. If you're using a third party dynamic IP service, then it should'nt matter.
Concerning emailing your IP. What I had done was created a macro which first connected to the internet, and then sent an email. The body of the email contained the [DIALUPIP] system var. I then created timed events which would launch the macro several times a day rather than stay connected as my ISP at the time charged me for connect time. It's been a while since I've had dialup, but the macro outlined below should be pretty close.
10 Set System [DIALUPUSER] "yourdialupusername" 20 Set System [DIALUPPASSWORD] "yourdialuppassword" 30 Dialup Connect Wait "Your Dialup Connection" 40 Set System [EMAILNAME] "yourname@yourisp.com" 50 Set System [EMAILSUBJECT] "Current Dialup IP" 60 Send Email "The IP is: [DIALUPIP]"
When using the dialup control from within PowerHome, you must still provide your username and password even if it is saved within your connection. On line 30 with the dialup connect command, use Wait so that the rest of the macro will wait until the connection is established. The "Your Dialup Connection" should be the exact name of the dialup connection that you've previously defined within Windows. The rest should be self-explanatory.
I also want to thank Tony for taking the time to find the free dynamic IP service . I'll be sure and bookmark it for later reference.
Thanks,
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 05 2003 at 19:38 | IP Logged
|
|
|
No prob guys. I looked into it becasue my current ISP is going under, and, I'm ending up with a dynamic IP from Earthlink myself! I'll try WINIP, then, if it ends up being too big of a hassle, I can pop for the extra $15/month for a static IP.
Tony
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 20 2003 at 08:48 | IP Logged
|
|
|
Well, WinIP does work fine! So much for the down side of a dynamic IP!
I'll be trying to find out if WinIP can auto-start, though (you have to hit the Start button when it launches). If not, I'll add another sendkeys call to hit the button, but, that sometimes does not work. Dave, any pointers here?
Tony
|
Back to Top |
|
|
roncomer Newbie
Joined: January 02 2003 Location: United Kingdom
Online Status: Offline Posts: 12
|
Posted: January 20 2003 at 09:30 | IP Logged
|
|
|
Tony,
Here's my current setup - if it helps you any....
First, I'm fairly sure WinIP can't auto start - but here's how I got round that (since my original post above)
I have dial up internet access, but want the PowerHome webserver to boot up and connect to the internet, so I can control my X10 devices.
I have my PC plugged into an X10 Appliance Module
I have a SC2800 X10 Maxi Controller (see http://www.cyberselect.co.uk/HomeAutomation/Products/MaxiController.html)
This lets me turn X10 Appliance Modules on and off by dialling in over the phone line.
So - I am at work now, and want to start the PowerHome webserver. Here's what I do:
Phone in and turn on the X10 module attached to my PC
PC boots up and automatically starts PowerHome because it is in the Windows start folder
I have a STARTUP macro in PowerHome that then immediately (PowerHome loads) dials my ISP (via the default DUN connection set un Windows)
The macro also emails me the IP address of the current connection - again via the macro
I currently have the macro email me at work - so as soon as I get the email (telling me the IP address) I can then go on the internet and go http://123.456.789.123:8000 - this connects me fine.
When I want to 'powerdown' I have another macro to drop the dialup connection from within PowerHome
Then I dial in over the phone and use the SC2800 to kill the power to the X10 attached to the PC
I live in the UK - so don't know if you guys in the US have heard of "SMS"...? It stands for Short Message Service - cellular phones can send text messages etc.
My cellular providor also has a free email to SMS facility - so in the PowerHome STARTUP macro I also get it to email me at +441234567@xx.co.uk (say +441234567 is my cellular number). This email is converted to a SMS and sent to my cellular phone - so I also know there that my PowerHome webserver is 'on-line'.
Re WinIP - it certainly does the job - but what made me 'abandon' it in favour of the above solution was the different times it took for the host to come online after you clicked start in WinIP - could be anything from 10 seconds to 6-7 minutes.
Incidentally - check out a program called ConnectPal - it lets you autostart programs - I used it to autostart WinIP after PC bootup. Have a look at http://www.5star-shareware.com/Internet/Dial-Connect/connectpal.html
I hope this is of some use/interest (I'm not as technical as you guys!)
If you want any more details on the above - please just ask - I'll be happy to help if I can.
Ron
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: January 20 2003 at 09:55 | IP Logged
|
|
|
Tony,
I haven't had a chance to look at the WinIP program yet so do not know if it is capable of autostarting or not. From Ron's message, it would appear that it is not capable.
I've had very good luck with the Send Keys functions to control other applications. Sometimes it takes a little while to find just the right key combination to do what I want...a lot of {tab}, {downarrow}, and {rightarrow} when the application does not have a hot key . This is the way I have to setup my webcam, since the software does not store the tuner channel on my ATI card and always defaults to channel 2. Now in a cold startup situation...I never know which app is going to start first or how long it will take to be stable, so what I have done in PowerHome is have the STARTUP macro create a timed event for 1 minute in the future to launch a different macro which then goes through all the contortions of getting my webcam set to the proper channel.
Ron,
That is an interesting way to do your control...I had never dreamed that anyone would not run their automation PC continuously. Is their a particular reason why?
Just curious,
Dave.
|
Back to Top |
|
|
roncomer Newbie
Joined: January 02 2003 Location: United Kingdom
Online Status: Offline Posts: 12
|
Posted: January 20 2003 at 12:30 | IP Logged
|
|
|
Tony,
"Interesting" is one word for it I suppose!
I'll try to explain why I currently do things this way - bear in mind I am still a complete beginner with PowerHome - not a SuperUser like yourself :-)
It would not be possible or advisable for me to be connected via dial-up 24/7 (First, I am charged on a per minute basis for the dial-up connection, and there are > 10,000 minutes in a week! Second, even if cost were not an issue, my ISP would terminate connections over x hours long - to avoid people "misusing" dial-up access..........)
My problem then boils down to this - from a cold (PC) start, I know how to get PowerHome to connect to the internet and email me the current IP address. No problem. I can then connect over the internet to the web page. When done, I can then (using a macro) issue the end dialup command. The dial-up connection drops, but PowerHome is still running.
Now, in that situation, how do I remotely issue a command to PowerHome (say from my work internet connection) to get it to dial-up again? I don't see that I can, because the dialup connection has been dropped........Once I terminate the initial connection, that's it. PowerHome is still running, but I can't tell it remotely to dial my ISP again.
I could probably set a PowerHome timed event to dial up (my ISP) automatically every hour - but I don't want that. I want to decide at any time of my choosing to get PowerHome to redial my ISP - ie at 2:21pm from my desk at work, or 9:17am, or 3:56pm and so on - to repeatedly dial my ISP at times I choose during the day, the only way I can see is to cold start the PC each time (PowerHome then starts as described above, connecting to the ISP as part of the STARTUP macro)
So, what I want is the facility to issue remote "connect to ISP" commands to PowerHome at times of my choice - but without having a permanent dial-up connection.
OR.................while I have been writing this, I have just had a thought - I can dial my home phone, and issue (via the SC2800 mentioned in my last post) 'on' or 'off' commands to any X10 device using touch tones down the phone line.
Is it possible to get PowerHome to 'listen' for an 'on' or 'off' command to a specific Appliance Module and then (based on the command being 'heard') execute a macro?
ie "if ON command detected to Appliance Module A9, then execute macro ABC"?
Macro ABC would be the connect to ISP command..
This would solve my problem................but can it be done?
Thanks for any help
Ron
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: January 20 2003 at 13:42 | IP Logged
|
|
|
Ron,
It wasn't Tony, it was me asking.
Towards the end of your post is exactly what I was going to suggest. Basically rename your STARTUP macro to something else and call the new macro whenever you want to connect. Use the SC2800 to send an on or off command to an address different from the module controlling your PC (you wouldn't even have to have an actual device at that address). Then create a trigger on incoming X-10 for that new address. The action for that trigger would be to run the new dialup macro. This way, you could leave PowerHome running. If there was ever a condition or problem where PowerHome was "locked up", you could still use the SC2800 to power-off and back on the PowerHome PC. Then when you wanted to have PowerHome connect to the internet, dialup the SC2800 and send the on or off command to the bogus X-10 address. The PowerHome trigger will see the command and execute the dialup macro. You can then disconnect while you are online, or create another trigger to watch say the "Off" command for the previous bogus address and that action will call the disconnect macro.
If any of the above is not clear or you need help, just let me know.
Dave.
|
Back to Top |
|
|
roncomer Newbie
Joined: January 02 2003 Location: United Kingdom
Online Status: Offline Posts: 12
|
Posted: January 20 2003 at 18:03 | IP Logged
|
|
|
Dave,
I did what you described - it works!! Now I can leave my PC/PowerHome always on. Excellent!
I already have a macro created to drop the dialup - so I'll just call that from the web server page.
Once the web server is up and running, I can use my Psion 5mx (with the Opera web browser) to view the PowerHome web server page, and control my X10s. Handy if I'm not at my desk at work, or at a customer site.
Psion 5mx: http://www.series5mx.com/welcome.html
Opera: http://www.opera.com/
I can see me spending many hours playing with Macro and Trigger combinations - lots of possibilities!
Thanks for the advice
Ron
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 20 2003 at 19:45 | IP Logged
|
|
|
Dave,
My experience has been that, sometimes, sendkeys does not work correctly, and worse, can crash (or just hang) PH. I'll have to pay attention and relay anything repeatable that I can find.
The latest scenario I have is starting my web server that does not auto start. I fire off a sendkeys call five minutes after the system should have rebooted in the morning (good old Win98). It never starts the server, but, triggering that same macro later works.
As an aside, my "dynamic" IP has been the same for 52 hours now!
Tony
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 20 2003 at 20:12 | IP Logged
|
|
|
Whoops... WinIP can be auto-started!
Tony
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: January 21 2003 at 09:22 | IP Logged
|
|
|
Ron,
Glad I could help. Let me know of any other questions or problems.
Dave.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: January 21 2003 at 09:34 | IP Logged
|
|
|
Tony,
Glad that WinIP can be auto-started . That should solve a lot of problems.
Concerning send keys...Wow!! Please let me know if you can come up with anything repeatable. Im not certain why it would not work on startup, yet will work when you manually trigger the macro. One thing that I have found and can't explain why, is that I have better luck with the Send Keys and the Switch to App function if I do while PowerHome is the current application and full screen. This was true with my web cam software. I have PowerHome in the Start folder and set to launch minimized. In this situation, the Send Keys would work fine, but the switching to the Webcam32 software would not be reliable. So what I first had to do was switch to PowerHome, then switch to the WebCam32 program and its worked everytime since. I'll poke around and look at the Switch to App function and see if there is something that can be improved. Microsoft has tried to make it increasingly difficult to switch from one application to another programmatically and I might be able to make some improvement.
Dave.
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 21 2003 at 13:58 | IP Logged
|
|
|
Dave,
I'll try having PH active and maximized first.
Tony
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: January 28 2003 at 08:30 | IP Logged
|
|
|
Dave,
Here is a sendkeys macro that does not work as expected:
insert into macroheader values ('START SERVER','START SIMPLESERVER',1464,736,251,96,0,0,0,12632256,0,0,1,'MACROS'); insert into macrodetail values ('START SERVER',1,18,'',1,'" PowerHome"'); insert into macrodetail values ('START SERVER',2,7,'',NULL,'200'); insert into macrodetail values ('START SERVER',3,8,'',0,'"{alt} x"'); insert into macrodetail values ('START SERVER',4,18,'',1,'"AnalogX SimpleServer:WWW"'); insert into macrodetail values ('START SERVER',5,7,'',NULL,'450'); insert into macrodetail values ('START SERVER',6,8,'',0,'"{enter}"');
This should switch to PH and maximize it first, but, it does not! Any ideas?
Tony
|
Back to Top |
|
|
|
|