Author |
|
nick7920 Senior Member
Joined: March 04 2008 Location: United States
Online Status: Offline Posts: 193
|
Posted: July 12 2016 at 18:43 | IP Logged
|
|
|
I wanted to activate my window 10 on spare drive and
check the stuff.
PH 2.15c
I upgraded from window 7 to window 10
every thing seems to work but the web server -
I have tried reinstalling PH but still same - cant
access web from web-control or 127.0.0.1 .
web setting is on port 80
NO firewall or virus protection running right now.
also I was getting log file error on ph_buckupdb so I
found the file in system32 and I changed the
permission and that problem was solved.
I just want to see it works for web server before I
put my win 7 drive back.
Nick
|
Back to Top |
|
|
nick7920 Senior Member
Joined: March 04 2008 Location: United States
Online Status: Offline Posts: 193
|
Posted: July 12 2016 at 20:12 | IP Logged
|
|
|
some progress
went into windows feature turn on/off
quickest way is from run you can type appwiz.cpl then
windows features turn on/off -
some of the feature of internet information services
were ON (don't know why) - so turn every thing off and
rebooted. Now I can access web control
ph_getitcurl still not working so need to look into
Microsoft ITC (Internet Transfer Control)
Edited by nick7920 - July 12 2016 at 20:13
|
Back to Top |
|
|
nick7920 Senior Member
Joined: March 04 2008 Location: United States
Online Status: Offline Posts: 193
|
Posted: July 12 2016 at 22:45 | IP Logged
|
|
|
PH is 2.1.5d
register again msinet.ocx but still getting error on
ph_getitcurl
Line: 1
Text: Error accessing external object property
accesstype at line 1 in constructor event of object
uo_itc.
|
Back to Top |
|
|
nick7920 Senior Member
Joined: March 04 2008 Location: United States
Online Status: Offline Posts: 193
|
Posted: July 12 2016 at 23:42 | IP Logged
|
|
|
ph_getitcurl is working again.
msinet.ocx - was from year 2000 which was working fine
in win 7 anyway I found another version from one of my
other computer which has date of 2004.
so unregister the old one renamed it and copy new file
and registered again. reboot and command is working
again.
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: July 25 2016 at 15:16 | IP Logged
|
|
|
Thanks for posting this.
I have seen intermittent issues with the ph_getitcurl command (when I try to fetch information from my Wi-Fi thermostats).
I will try the msinet.ocx updated file (original version from Win 7 is: 6.00.8862, new version found on the web is: 6.01.9782).
Hope it makes my ph_getitcurl call more reliable...
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
nick7920 Senior Member
Joined: March 04 2008 Location: United States
Online Status: Offline Posts: 193
|
Posted: July 25 2016 at 16:01 | IP Logged
|
|
|
mine working version is in fact 6.01.9782 which you
have found. I think mine came from with old visual
studio installation.
I am not sure if you have win-10 64bit if so
you will need to copy to c:\windows\syswow64 and
register.
Dave can you please check your install package for
newer version to be included.
Thanks
Nick
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: July 26 2016 at 07:46 | IP Logged
|
|
|
Update - using Win 7, 32...working in the windows/system32 directory....
I unregistered the original msinet.ocx file, renamed it for possible future use, copied in the newer version. Rebooted, registered the newer version, rebooted.
So far, I have found that my Tstat error counts (the number of times that a ph_getitcurl call fails) is 1 error out of 325 calls for one of my Tstats, and 20 out of 325 for my other Tstat.
So far, I would say this seems slightly better than with the original msinet.ocx
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
nick7920 Senior Member
Joined: March 04 2008 Location: United States
Online Status: Offline Posts: 193
|
Posted: July 26 2016 at 11:42 | IP Logged
|
|
|
I just checked my logs and I don't have any error or
failed request but again I am only using may be 30-40
times a day.
ph_getitcurl ( s, n ) some are external url and some
local. but both with value of n=20 for timeout.
I am also using win 10 - 32 bit.
Nick
Edited by nick7920 - July 26 2016 at 11:43
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: July 26 2016 at 14:51 | IP Logged
|
|
|
My timeout is only 3 seconds (internal network calls shouldn't take much longer???)....I will extend and see if that helps.
Edited by smarty - July 26 2016 at 14:52
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
nick7920 Senior Member
Joined: March 04 2008 Location: United States
Online Status: Offline Posts: 193
|
Posted: July 26 2016 at 18:19 | IP Logged
|
|
|
you are right that is too long of a timeout but it was
working so I did not changed , I just changed to 6 sec
and will see if it fails. but 3 sec is your default
browser timeout for firefox.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: July 26 2016 at 21:40 | IP Logged
|
|
|
Nick and Steve,
You'll have to refresh my memory why you're using
ph_getitcurl vs the ph_geturl1 function. It's just
that I hate for you guys having to be dependent upon a
Microsoft activex control that could suddenly become
unsupported by them.
I'll look around though and see if I can get the
latest one and include it as part of the installation
and if nothing else just include it in the PH
directory (so you don't have to hunt for it on the
web) rather than overwriting what may already exist on
your PC.
Dave.
|
Back to Top |
|
|
nick7920 Senior Member
Joined: March 04 2008 Location: United States
Online Status: Offline Posts: 193
|
Posted: July 27 2016 at 00:58 | IP Logged
|
|
|
Dave , command use to work prior to 2.1.5
it was suppose to be in your to do list.
http://www.power-home.com/forum/forum_posts.asp?
TID=4507&KW=ph_geturl
example this one does not work
ph_geturl1("http://w1.weather.gov/xml/current_obs/KORD
.xml",3,20)
Thanks
Nick
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: July 27 2016 at 22:43 | IP Logged
|
|
|
Nick,
Checked my notes and the code and I see it now. Thank
you for reminding me. The fix has already been coded,
just need to get a version out that includes it.
However, for the URL in your last post, I cant get the
ph_geturl1 function (the corrected version) to return
useful data. I keep getting a 403 denied error from
the site. The socket control and everything is
working...no error or timeout but not the data you
expect. I tested with ph_getitcurl and ph_getwburl and
I got valid data from both of those functions. There
must be some interaction and possibly cookies involved
with this site that the higher level controls are
negotiating.
Im going to do some more investigation and see what I
can find out.
Dave.
|
Back to Top |
|
|
nick7920 Senior Member
Joined: March 04 2008 Location: United States
Online Status: Offline Posts: 193
|
Posted: July 28 2016 at 11:52 | IP Logged
|
|
|
Dave ,
Does ph_getitcurl and ph_getwburl both uses Microsoft
ITC ?
Thanks
Nick
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: July 28 2016 at 17:51 | IP Logged
|
|
|
Nick,
No. ph_getitcurl using the Microsoft Internet Transfer
Control which is msinet.ocx. ph_getwburl uses the
Microsoft Web Browser control which is tightly
integrated with Internet Explorer (I believe it's
automatically upgraded anytime IE is upgraded). This
control is contained within shdocvw.dll.
Both controls (and functions) are higher level HTTP
controls and will make use of cookies, etc.
Dave.
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: July 28 2016 at 20:25 | IP Logged
|
|
|
When I attempt to use ph_getwburl() function, I get a tstat[1].json file returned instead of the contents of that file.
When I open the .json file I see:
{"temp":77.50,"tmode":3,"fmode":0,"override":0,"hold":0,"tst ate":0,"fstate":0,"time":{"day":3,"hour":20,"minute":19},"t_ type_post":0}
When I use ph_getitcurl(), I get the same contents, NOT the file with the contents.
Edited by smarty - July 28 2016 at 20:26
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|