FinsDepot
Subject: Status Widget XML Integration to Website
Prev Next
You are not authorized to post a reply.

Page 1 of 212 > >>
AuthorMessages
Carlosreef User is Offline
Copepod
Copepod
Posts:21
Melrose Park, IL


06/29/2007 2:42 PM  
Hey

So I took the XML file and decided to integrate it to my website.

This is what I came up with:

http://www.carlosreef.com/TankStatus.php

Carlos
slallen User is Offline
ReefChat Staff
Moray
Moray

Posts:301
Flower Mound, TX


06/29/2007 2:50 PM  
I was just starting a thread so people could post how they were using it. Guess we will use this thread instead. So for those of you out there that are using the Status Widget XML out file, please post a link to your site and give a brief explanation how you are doing it. It might help inspire others.

Thanks!

real time stats
Click my stats for a graphed history.
Come Chat with Us!
Carlosreef User is Offline
Copepod
Copepod
Posts:21
Melrose Park, IL


07/10/2007 2:32 PM  
I updated the page with new little features. Check it out.

http://www.carlosreef.com/TankStatus.php

Carlos
slallen User is Offline
ReefChat Staff
Moray
Moray

Posts:301
Flower Mound, TX


07/10/2007 4:11 PM  
Pretty slick! I like what you have done. Especially glad that the XML out helped out. Thank you for suggesting it. Got any other idea?

real time stats
Click my stats for a graphed history.
Come Chat with Us!
Bergovoy User is Offline
Chromis
Chromis
Posts:54


07/10/2007 7:04 PM  

definatelly very cool.   Is there anyway I can get this to work with my situation, or am I still screwed.

BTW:  I spoke with verizon, actually it is earthlink, and they are contracted to verizon, and earthlink will not assist in any third party hardware issues  They ran diagnostics, and tell me everything is good to go, and that I dont or shouldnt have a problem.

I am not sure what I am going to do now, as I just bought a ip cam for my website and I was hoping to steal/ borrow the idea from here to animate the graphix with the aquacontroller stats like on carlos' page. 

I reallly want something like that,  And am bummed that it seems that I am not meant to have it.  First I found a programmer that flaked on me, now I got a different programmer, and he is plugging along, but if I cant get the aquacontroller to go online, it wont do half of what I want it to do, and what it should be albe to to do.

I just plain dont understand.  If someone would tell me, buy this, get that, do this,, I would do it.  But UGGGGGHHHHH

Bill


real time stats
slallen User is Offline
ReefChat Staff
Moray
Moray

Posts:301
Flower Mound, TX


07/11/2007 6:05 AM  
Bill I am sure you have already read through this, but try again step by step.

http://www.neptunesys.com/hardwareFAQ.htm#ETHERNET

The first thing is can you get to your controller on your internal network. (http://AC ip address). If you can get that far the rest should be router settings, port forwarding etc...

real time stats
Click my stats for a graphed history.
Come Chat with Us!
Carlosreef User is Offline
Copepod
Copepod
Posts:21
Melrose Park, IL


07/19/2007 2:41 PM  
Here is another use for the XML file.

I changed my homepage to reflect the current status of my tank plus a running total of the amount of electricity used.

I take the XML file and automatically ftp upload it to my server (using command prompt and windows scheduler). I then created a script that parses the xml file from my server and saves the data to a mysql database (done every five minutes via cron job). The front page of my site then queries the database to get the length of time the items have been on. Then takes that and multiplies it by the electric charge (kwH).

I also query the database for highs and lows for temp, pH and ORP.

Carlosreef.com

Carlos
p.s. The running total for this month is off as the database only goes back a week ago. But you get the idea...
admin User is Offline
Site Administrator
Tang
Tang

Posts:255


07/19/2007 4:43 PM  
Dang Carlos! That is nice. Got those creative juices flowing.

ReefChat Staff
Ashlar User is Offline
ReefChat Staff
Goby
Goby
Posts:144


07/19/2007 4:49 PM  
Carlos, I may have something you can use.. it's a max / min / time for ph, orp, and temp for today (today being since midnight.) Right now it's just spitting out text, but I could easily make it xml.

Bergovoy User is Offline
Chromis
Chromis
Posts:54


07/19/2007 5:54 PM  

Carlos, 

Is there anyway I can pay you to build me a website similar to yours, (sufficiently different to not infringe upon your originality)??? 

I would like most of what you got especially the ACIII stuff you have going on. 

But on another page, I would like a picture page, but with comments from visiotrs to suggest or help ID some of the critters that will get posted on that page. 

Other then that, just the normal, links, and DIY page maybe 

I really want something almost exactly like your page, but would not know where to begin, and honestly, have tried with others, that just dont come through in the end. 

So, if there is anyway you can help me out, get me up and running, andhopefully make it so I can update it myself, i.e. put up or take down new pictures, and or other minor stuff that I can hopefully figure out... 

Thanks
Bill

edited by Admin: Removed the extra carraige returns 


real time stats
admin User is Offline
Site Administrator
Tang
Tang

Posts:255


07/19/2007 5:56 PM  

There have been a few questions asked about how to use the XML file from the widget or signature genarator. I will try to explain in a basic format how it can be used. Keep in mind that there are many different ways to do this and the method described below is just two of them. This is the way that I am familiar with.

Once you have the XML file loaded to your server you can create a page that will read in the data and format it in HTML. Since I have already covered the XML output in another thread I will assume you are familiar with it and wont cover that file here (View the Widget XML file).

I created an example page, with no formatting, to show you one way of doing this. (See example 1). In this example the html page simply takes the data and applies it to a table. To see how it is done, view the source.  No coding involved here.

<html><head><title>AquaStatus</title></head><body><xml src="aquastatus.xml" id="xmldso" async="false"></xml><table datasrc="#xmldso" border="1"><thead><th>Control</th><th>Description</th></thead><tr align="left"><td><div datafld="title"></div></td><td><div datafld="description"></div></td></tr></table></body></html>

I will try and post a Javascript example in the next day or so.


ReefChat Staff
Carlosreef User is Offline
Copepod
Copepod
Posts:21
Melrose Park, IL


07/19/2007 6:15 PM  
Bill,

Thank you for the compliments.  I really appreciate.

I really wish I could help you but at this time, I am in no position to take any extra work.  I am in the process of installing my new 180 gall on tank (in-wall) with it's own tank room which I am building in my basement.  I also have the everyday dealings of my regular job which leaves me with very little time to do my website.  By the time I am done with those three things AND taking care of the demands of owning a house and having a girlfriend, I have little to no time left for just me. 

I really hope you can find someone that has the time to create a website for you.  It would be much easier if you already had a website and you were looking for just the integration.  I think there are a few people out there that would be able to help you do that.

I am really sorry I cannot help you but I hope you understand.

Regards,

Carlos
Carlosreef User is Offline
Copepod
Copepod
Posts:21
Melrose Park, IL


07/19/2007 6:21 PM  
Posted By Ashlar on 07/19/2007 4:49 PM
Carlos, I may have something you can use.. it's a max / min / time for ph, orp, and temp for today (today being since midnight.) Right now it's just spitting out text, but I could easily make it xml.



That would be kewl, especially for someone that does not have the knowledge or resources to create/edit/query a database for such info.

Very kewl.

Carlos
Bergovoy User is Offline
Chromis
Chromis
Posts:54


07/19/2007 6:29 PM  
Hey Carlos, I understand completely. I have most of all that, (less the girl friend or sig other), but definately understand.

I dont know what all is involved in putting together a site, no less one like yours, but i am positive it aint quick. From the amount of money a couple have already charged me, I would guess it to be 10-20 hours, (or so), but that is just a wild ass guess, it could be sig less or more, and they are just hungry...

But I do knnow, that your site, and the features uyou have implimented with teh help of the Allen bros, is exactly what I want I my website, (whenever I get one).

Good luck on your tank build, (I have a 180 and it too needs some final touches, but it has been about 8 months since I started). Are you going to post any pics or tank build logs anywhere on some forum somewhere? I would love to check it out.

Bill


real time stats
admin User is Offline
Site Administrator
Tang
Tang

Posts:255


07/20/2007 5:14 AM  

To see a JavaScript version in operation you can check out example2. This eample may only work in IE. There is some adjustments that can be made to the call for the XMLDom to make it work in FireFox.

It is only the function that is called. Place it in the head tags of your html page. Then call loadXML() fom the body of your document. Thjis eaxmple code builds a table like above.

<html><head><script language="JavaScript">function loadXML() {
// get XML objectvar xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async="false";
xmlDoc.load("aquastatus.xml");// get the XML root itemvar root = xmlDoc.getElementsByTagName('AquaStatus')Ύ]var items = root.getElementsByTagName("item");for (var i = 0 ; i < items.length ; i++) {
// get one item after anothervar item = items[i]// now we have the item object, time to get the contents// get the name of the itemvar title = item.getElementsByTagName("title")Ύ].firstChild.nodeValue;// get the quantityvar description = item.getElementsByTagName("description")Ύ].firstChild.nodeValue;
document.write("<table>");
document.write("<tr>");
document.write("<td>item #" + i + ": name=" + title + " value=" + description + "</td>");
document.write("</tr>");
}
document.write("</table>");
}
</script></head><body onload="loadXML()"></body></html>

Hope that helps everyone have a little understanding on how they can use the XML output from the Widget and Signature Generator.


ReefChat Staff
LVReefer User is Offline
Copepod
Copepod

Posts:19


07/24/2007 9:37 AM  
Posted By Bergovoy on 07/10/2007 7:04 PM

definatelly very cool.   Is there anyway I can get this to work with my situation, or am I still screwed.

BTW:  I spoke with verizon, actually it is earthlink, and they are contracted to verizon, and earthlink will not assist in any third party hardware issues  They ran diagnostics, and tell me everything is good to go, and that I dont or shouldnt have a problem.

I am not sure what I am going to do now, as I just bought a ip cam for my website and I was hoping to steal/ borrow the idea from here to animate the graphix with the aquacontroller stats like on carlos' page. 

I reallly want something like that,  And am bummed that it seems that I am not meant to have it.  First I found a programmer that flaked on me, now I got a different programmer, and he is plugging along, but if I cant get the aquacontroller to go online, it wont do half of what I want it to do, and what it should be albe to to do.

I just plain dont understand.  If someone would tell me, buy this, get that, do this,, I would do it.  But UGGGGGHHHHH

Bill


Sorry for the hijack, but Bergovoy what exactly do you need help with, I'm a network guy maybe I can help.

Bergovoy User is Offline
Chromis
Chromis
Posts:54


07/24/2007 11:06 AM  
Posted By LVReefer on 07/24/2007 9:37 AM
Sorry for the hijack, but Bergovoy what exactly do you need help with, I'm a network guy maybe I can help.

Contact me at bill@thelittleocean.com  or call me at 626-358-4840

The situation is that I can not get either the Aqua controller III or the IP webcam to be accesses from the internet.  I have tried port forwarding but it does not seem to be working.  Most everyone I spoke with that offered to try to help tell me they think it has something to do with Verizon and their hardware and or configuration of the DSL modem…

I tried many many things.  I have port forwarded the router, I have port forwarded the modem, I have configured and reconfigured and changed and called and spoke with tech supports from Neptune Sys, (The aqua controller), the camera, (SMC), the router (Belkin), and Earthlink).

Everyone except EarthLink says it is an ISP problem, Earthlink says it is a router problem.

I don’t know who to believe.

Basically, I give up as I have wasted a bunch of peoples time, and they were great, but if I cant get EarthLink to offer to try different settings and or configurations for their hardware, then I am stuck

Anyways, just in case you think you can come up with something for me to try, please let me know.

Bill

edited by Admin: Something in the email quote/reply was messing with the fonts and such on the rest of the thread.

real time stats
LVReefer User is Offline
Copepod
Copepod

Posts:19


07/24/2007 2:31 PM  
Here are a couple of things to try; but first we need to prep your location for testing.
  1. Turn off all IP devices except the AC, DSL Modem, router, and a workstation.
    1. If you have a hub instead of the router, better yet (testing only).
    2. If a router is being used, turn off firewall and NAT if enabled.
    3. I am assuming that no other security is enabled (MAC or port filtering)
  2. Once you can reach the internet go to http://probe.hackerwatch.org/probe/probe.asp to see what ports your ISP is allowing to your IP address. Port 80 & 25 are most likely blocked.
  3. Next double check your IP address using http://ip-lookup.net/ . This should be the IP address you are entering into IE to get to your AC.
  4. This will tell us our IP address and port that we will connect on.
    1. example  http://65.115.236.10:8080 /cgi-bin/status.cgi will render the home page of the AC unit.
REMEMBER to turn your NAT and SPI/Firewall back on along with any filters you might have had setup.
Give me some feed back and we can go from here.

Bergovoy User is Offline
Chromis
Chromis
Posts:54


07/24/2007 3:08 PM  

can you call me?  I have questions.

626-358-4840

thanks

I think I have all the ip items off except the onces listed.

What is the difference betwen a router and a hub?  I have the Belkin Router, it has 4 ports and wireless, it is the FD7230-4, (I think) I have been asking about NAT.  I think I recall seeing it onthe DSL modem, and I think that If I turn it off, I lose internet connection.

I am p[retty sure all the firewall stuff is turned off.  I will double check.  I will goto the hackerwatch site, but I have used th shiledsup from the site GRC.com and got results that all the ports were closed except for port 80,21, and 23.  Not sure if closed means blocked or what, but seems funny that you suggest port 80 should be blocked but that site showed it open...

I will check out thehackerwatch site shortly after I check all the other things first

Thanks

Bill 


real time stats
Bergovoy User is Offline
Chromis
Chromis
Posts:54


07/24/2007 4:55 PM  

Hello,  I ahve now switched to Time warner service.  Cable modem.

 

I did all you suggested, prior to the switch and I got everythign back the same as before, no open ports.

I tried to turn off the NATand lost internet connection.

I tried to run the hackerwatch utility and came back wth all ports stealth or closed.

I tried running the hackerwatch on the new cable internet and port 80 seems open and ready to recieve incoming requests. 
Not sure what that means, as you suggested it would be closed...

 

It is the only one that is open.

 

I will try to turn NAT off now that I have cable modem and see what happens.

 

Bill

 

 


real time stats
You are not authorized to post a reply.
Page 1 of 212 > >>

Forums > ReefChat Extras > Status Widget > Status Widget XML Integration to Website



ActiveForums 3.7
Home|Forums|Links|LFS Map|Photo Galleries|Video Gallery|Sponsors
Copyright 2006 by ReefChat.org - A reef keeping communityTerms Of UsePrivacy Statement