Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: win 10 and web server problem Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
nick7920
Senior Member
Senior Member


Joined: March 04 2008
Location: United States
Online Status: Offline
Posts: 193
Posted: July 12 2016 at 18:43 | IP Logged Quote nick7920

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 View nick7920's Profile Search for other posts by nick7920
 
nick7920
Senior Member
Senior Member


Joined: March 04 2008
Location: United States
Online Status: Offline
Posts: 193
Posted: July 12 2016 at 20:12 | IP Logged Quote nick7920

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 View nick7920's Profile Search for other posts by nick7920
 
nick7920
Senior Member
Senior Member


Joined: March 04 2008
Location: United States
Online Status: Offline
Posts: 193
Posted: July 12 2016 at 22:45 | IP Logged Quote nick7920

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 View nick7920's Profile Search for other posts by nick7920
 
nick7920
Senior Member
Senior Member


Joined: March 04 2008
Location: United States
Online Status: Offline
Posts: 193
Posted: July 12 2016 at 23:42 | IP Logged Quote nick7920

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 View nick7920's Profile Search for other posts by nick7920
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: July 25 2016 at 15:16 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 
nick7920
Senior Member
Senior Member


Joined: March 04 2008
Location: United States
Online Status: Offline
Posts: 193
Posted: July 25 2016 at 16:01 | IP Logged Quote nick7920

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 View nick7920's Profile Search for other posts by nick7920
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: July 26 2016 at 07:46 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 
nick7920
Senior Member
Senior Member


Joined: March 04 2008
Location: United States
Online Status: Offline
Posts: 193
Posted: July 26 2016 at 11:42 | IP Logged Quote nick7920

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 View nick7920's Profile Search for other posts by nick7920
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: July 26 2016 at 14:51 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 
nick7920
Senior Member
Senior Member


Joined: March 04 2008
Location: United States
Online Status: Offline
Posts: 193
Posted: July 26 2016 at 18:19 | IP Logged Quote nick7920

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 View nick7920's Profile Search for other posts by nick7920
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: July 26 2016 at 21:40 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
nick7920
Senior Member
Senior Member


Joined: March 04 2008
Location: United States
Online Status: Offline
Posts: 193
Posted: July 27 2016 at 00:58 | IP Logged Quote nick7920

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 View nick7920's Profile Search for other posts by nick7920
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: July 27 2016 at 22:43 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
nick7920
Senior Member
Senior Member


Joined: March 04 2008
Location: United States
Online Status: Offline
Posts: 193
Posted: July 28 2016 at 11:52 | IP Logged Quote nick7920

Dave ,

Does ph_getitcurl and ph_getwburl both uses Microsoft
ITC ?

Thanks

Nick
Back to Top View nick7920's Profile Search for other posts by nick7920
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: July 28 2016 at 17:51 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: July 28 2016 at 20:25 | IP Logged Quote smarty

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 View smarty's Profile Search for other posts by smarty
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum