My chickens have the internet....

I have redone the Coop Server using MikeG's new code base.... it works great!
So far, no hangs!
Hit it to see: http://208.104.39.5:5000
Thanks!
Doc
So far, no hangs!
Hit it to see: http://208.104.39.5:5000
Thanks!
Doc
Comments
Edit: it works in IE but Firefox thinks it's plain text.
I plan to add some 'style' to it soon.
Whew! I was panicking!
DAT index byte "HTTP/1.1 200 OK", CR, LF, { } "Content-Type: text/html", CR, LF, CR, LF, { } "<HTML>", { } "<HEAD>", { } "<TITLE>Willoughby Farm</TITLE>", { } "</HEAD>", { } "<SCRIPT LANGUAGE='JavaScript'>",CR,{ } "Temp3 = 0",CR, { } "function Counter() {",CR, { } " Temp3 = Temp3 + 1;",CR, { } " document.frm1.seconds.value=Temp3;",CR,{ } " timerID = setTimeout('Counter()',1000);",CR,{ } " }",CR, { } "</SCRIPT>" , { } "<BODY Onload='Counter()'>",{ } "<FONT FACE=BOOKMAN OLD STYLE SIZE=8><BR>Doc's Flock<BR></FONT>", { } "<FONT FACE=BOOKMAN OLD STYLE SIZE=4><BR>",{ } "Coop Status Page ", { } "(...a work in progress!)<BR><BR></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=2><BR>Coop Time: " time1 byte " /" '<--- This is a place holder ; number is dynamically updated time2 byte " /20" '<--- This is a place holder ; number is dynamically updated time3 byte " " '<--- This is a place holder ; number is dynamically updated time4 byte " :" '<--- This is a place holder ; number is dynamically updated time5 byte " :" '<--- This is a place holder ; number is dynamically updated time6 byte " <BR>" '<--- This is a place holder ; number is dynamically updated byte "</FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=2><BR>Coop Temperature: " byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=2 COLOR=RED>" temp byte " °F "'<--- This is a place holder ; number is dynamically updated byte "</FONT></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=2><BR>Coop Humidity: " byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=2 COLOR=RED>" humi byte " % <BR>"'<--- This is a place holder ; number is dynamically updated byte "</FONT></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4><BR>Most Recent Light Level: " byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4 COLOR=RED>" num1 byte "0000 <BR>" '<--- This is a place holder ; number is dynamically updated byte "</FONT></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4><BR>Last Average Light Level: " byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4 COLOR=RED>" num2 byte "0000 <BR>" '<--- This is a place holder ; number is dynamically updated byte "</FONT></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4><BR>Current Door Position: " byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4 COLOR=RED>" str1 byte " <BR>" '<--- This is a place holder ; val is dynamically updated byte "</FONT></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4><BR>Current Switch Position: " byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4 COLOR=RED>" str2 byte " <BR><BR><BR>" '<--- This is a place holder ; val is dynamically updated byte "</FONT></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=2><BR>" byte "<FORM NAME='frm1'>" byte "Elapsed seconds since last page Refresh =" byte "<INPUT NAME='seconds' SIZE=4 VALUE=''>" byte "</FORM>" byte "</FONT>" htmlfin byte "</FONT>" byte "</BODY>" byte "</HTML>" byte 0
There was a zero terminator in the DAT, I took out. The index byte array was missing the HTTP header, I added it.
I really appreciate your help. My html skills are even more crude than my spin coding skills.
I've uploaded it now and all looks good.
Paul
Looking good, Paul!! Will we be ale to start counting them before they hatch soon?
DAT index byte "HTTP/1.1 200 OK", CR, LF, { } "Content-Type: text/html", CR, LF, CR, LF, { } "<HTML>", { } "<HEAD>", { } "<TITLE>Willoughby Farm</TITLE>", { } "</HEAD>", { } "<SCRIPT LANGUAGE='JavaScript'>",CR,{ } "Temp3 = 0",CR, { } "function Counter() {",CR, { } " Temp3 = Temp3 + 1;",CR, { } " document.frm1.seconds.value=Temp3;",CR,{ } " timerID = setTimeout('Counter()',1000);",CR,{ } " }",CR, { } "</SCRIPT>" , { } "<BODY Onload='Counter()'>",{ } "<FONT FACE=BOOKMAN OLD STYLE SIZE=8><BR>Doc's Flock<BR></FONT>", { } "<FONT FACE=BOOKMAN OLD STYLE SIZE=4><BR>",{ } "Coop Status Page ", { } "(...a work in progress!)<BR><BR></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=2><BR>Coop Time: " time1 byte " /" '<--- This is a place holder ; number is dynamically updated time2 byte " /20" '<--- This is a place holder ; number is dynamically updated time3 byte " " '<--- This is a place holder ; number is dynamically updated time4 byte " :" '<--- This is a place holder ; number is dynamically updated time5 byte " :" '<--- This is a place holder ; number is dynamically updated time6 byte " <BR>" '<--- This is a place holder ; number is dynamically updated byte "</FONT>" byte "<img src=http://forums.parallax.com/attachment.php?attachmentid=98964&d=1359518024/>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=2><BR>Coop Temperature: " byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=2 COLOR=RED>" temp byte " °F "'<--- This is a place holder ; number is dynamically updated byte "</FONT></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=2><BR>Coop Humidity: " byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=2 COLOR=RED>" humi byte " % <BR>"'<--- This is a place holder ; number is dynamically updated byte "</FONT></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4><BR>Most Recent Light Level: " byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4 COLOR=RED>" num1 byte "0000 <BR>" '<--- This is a place holder ; number is dynamically updated byte "</FONT></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4><BR>Last Average Light Level: " byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4 COLOR=RED>" num2 byte "0000 <BR>" '<--- This is a place holder ; number is dynamically updated byte "</FONT></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4><BR>Current Door Position: " byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4 COLOR=RED>" str1 byte " <BR>" '<--- This is a place holder ; val is dynamically updated byte "</FONT></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4><BR>Current Switch Position: " byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=4 COLOR=RED>" str2 byte " <BR><BR><BR>" '<--- This is a place holder ; val is dynamically updated byte "</FONT></FONT>" byte "<FONT FACE=BOOKMAN OLD STYLE SIZE=2><BR>" byte "<FORM NAME='frm1'>" byte "Elapsed seconds since last page Refresh =" byte "<INPUT NAME='seconds' SIZE=4 VALUE=''>" byte "</FORM>" byte "</FONT>" htmlfin byte "</FONT>" byte "</BODY>" byte "</HTML>" byte 0
-Phil
Thanks!!
Oh, that's a great image choice, btw!
If you've got surgery duty tomorrow, the chickens can wait! Get some sleep.
-Phil
And by exploit I mean eat to bits.
Yah, technofox doing a quick Parallax websearch for "supper tonight" or "free lunch"
and their you go.
Just sayin......
"I feel like chicken tonight...."
I truely do not understand what is going on with the Spinneret Web Server and what appears to be some
kind of Propeller applications.
Would anyone be willing to contribute info to the dumb guy that happened to get interested in something Way over his head?
I realize that the Chicken Coop thing has to do with tracking inputs and relaying information about the
chicken coop status over the internet.
It seems like Doggiedoc has accomplished a milestone in understanding the Spinnernet.
Is there a simple explination that someone with an 8th grade education could understand?
I'm not an 8th grade education person, but would appreciate any very super simple discussion of what is going on here.
It may just be that I need to understand steps 1 through 32 before I can understand what is going on with the Spinneret.
Thanks
I've used a lot of other people's code to get to this point. Very little of it is my own code.
If you are completely new to the propeller, then there are some great resource on this site to get you started... I'll list some shortly.
Doc
Is this better? http://208.104.39.5:5000/
Thanks for the frame grab!
Paul
-Phil
Port forwarding is what you need to do to have the camera be viewable. Your current port is 5000 so you could not use that for the camera. The default is normall 80. Some web cams allow you to change them but some are fixed. Let me know if you need help.
http://208.104.39.5:5000
Thanks!