Web PHP Updates (Ajax, Dates, Variables)

Posted on
Tue Dec 20, 2005 2:27 pm
ajturner offline
Posts: 160
Joined: Jul 10, 2005
Location: Washington, DC

(No subject)

I will make up a new format and post it up for embedded devices. It wouldn't matter that your phone doesn't have java or javascript support - the interface "degrades" to standard HTML if necessary.

Andy

Control Indigo from anywhere in the world:
http://highearthorbit.com/software/indigowidget

Posted on
Wed Dec 21, 2005 1:33 am
Jean offline
Posts: 29
Joined: Feb 21, 2005

Display pb

Hi
Everything works fine except Last changed allways shows: 01/01/70 no matter what formatting I choose as described in read me file
When device status changes clicking on on or off it does turn on or off device but "last changed" never gets updated
Any ideas to make it work
Thanks for help
Jean

jean

Posted on
Wed Dec 21, 2005 1:17 pm
captcurrent offline
Posts: 440
Joined: Nov 28, 2005

Web Page

Can some one give me an idea how I would access this from a computer NOT on my intra-net?


thanks

Jason

Posted on
Wed Dec 21, 2005 1:35 pm
ajturner offline
Posts: 160
Joined: Jul 10, 2005
Location: Washington, DC

(No subject)

You have a couple of options, depending on your configuration.

I assume you have a router in your intranet that connects your home computers to your ISP (cable modem, dsl, T1)? You will want to go into the settings of your router, which you can usually do by using a web browser to go to 192.168.0.1 (if your network is 192.168.0.*, or the equivalent).

Once in your router, you will setup "Port Forwarding". Setup port 80 to point to the intranet IP address of your Mac.

You will then need the public IP of your house. The easy way to get this it to browse to http://whatismyip.com. You can then put this IP Address into any web-browser on the internet and it will go to your house, the router will then route the HTTP request (on port 80) to your mac, which will serve the webpage.

Alternatively (and this is what I do), get an account at dyndns.org. This allows you to have a fake hostname that will point to your dynamic IP address. Therefore, you can register for something like: captcurrent.home.org and that will route to your mac.

Let me know if you need any clarification on the issue.

Addendum: you can do the similar thing by port forwarding remote applescript (port 3031) to your mac in addition to the HTTP port 80. This would then let you use IndigoWidget over the internet - though it may be slow.

I've posted these instructions on the IndigoWeb homepage:
http://highearthorbit.com/software/indigoweb

Control Indigo from anywhere in the world:
http://highearthorbit.com/software/indigowidget

Posted on
Wed Dec 21, 2005 5:09 pm
captcurrent offline
Posts: 440
Joined: Nov 28, 2005

Thanks

Duuh... I have to admit that this forum is an education

I should have figured this out on my own.... but thanks... Like you I used and recommend Dyndns..

Thanks for your prompt response..


Jason

Posted on
Wed Dec 21, 2005 6:30 pm
martinc offline
Posts: 83
Joined: Oct 27, 2005

(No subject)

Hi Andy,

Thank you.

Let us know when you post the new version.

Take care
Martin.

Posted on
Wed Dec 21, 2005 7:09 pm
captcurrent offline
Posts: 440
Joined: Nov 28, 2005

incomplete web display

Andy

Couple of things One may be a lead to the other

on intra net /localhost/IndigoWeb/index.php doesn't resolve
/localhost/index.php

does

It show Classification headings (such as Device Action Groups Triggers)
but no details

BTW you have a killer web page

jason

Posted on
Thu Dec 22, 2005 2:46 am
Jean offline
Posts: 29
Joined: Feb 21, 2005

Date Last changed

Hi Andy
Everything is working fine thanks to your very clear instructions but I still can't get date "Last Changed" to show up properly
I shows 01/01/70 or Thursday, January 1 @ 12:59 AM depending on format choosen
Any ideas how to make it work ?
Thanks for help
Jean

jean

Posted on
Thu Dec 22, 2005 6:36 am
ajturner offline
Posts: 160
Joined: Jul 10, 2005
Location: Washington, DC

(No subject)

Hi Jean, sorry about not answering this question before.

I think I figured out the problem - it is due to internationalization. I am testing out a new solution that deals with non-English dates (shortcoming in PHP itself) and will post the new release when it is ready.

I am also planning on rolling in the following changes:
* Optional description of the device or action groups
* "Small Device" formatting options
* International dates and international characters


CaptCurrent - What folder do you have your IndigoWeb in? It should be located in
/Library/Webserver/Documents/IndigoWeb

although you can put it in subdirectories if you want. For example:
/Library/Webserver/Documents/intranet/IndigoWeb

Also, what version of Indigo are you running?

Control Indigo from anywhere in the world:
http://highearthorbit.com/software/indigowidget

Posted on
Thu Dec 22, 2005 6:43 am
captcurrent offline
Posts: 440
Joined: Nov 28, 2005

WEB PAGE APPEARANCE

Andy
I went pack through the installation, and all though not called for
in the installation directions, I created a IndigoWeb folder under the documents in the Library so the resolution issue was handled

Even with this I am still getting onlu headers, no device details on the web page, even though, if memory serves me, I had them in the internal web page before I loaded the updated code. Indigio is at the Beta 1.8
and I use Safari OS is tiger 10.4.3

thanks

jason

Posted on
Thu Dec 22, 2005 8:03 am
Jean offline
Posts: 29
Joined: Feb 21, 2005

Date Pb

Hi Andy
Thanks again for your answer and patience
I am waiting for new version which should be outstanding if I consider current version as being great !
Thanks for making this available to this community !
Jean

jean

Who is online

Users browsing this forum: No registered users and 33 guests