+ Reply to Thread
Results 1 to 12 of 12

Thread: AJAX Spinneret LED Demo and IP Camera

  1. #1

    Default AJAX Spinneret LED Demo and IP Camera

    This works in Firefox. IE does not like cross domain scripts. Not sure about other browsers. Anyway, here’s the page. http://www.agaverobotics.com/spinneret/controlpanel.htm

    You might need to install the camera software if prompted.

    If the LED radio buttons don’t work because you’re browser squawks, then open the URL below as well. Then you can hit the Spinneret directly and watch the video.

    http://spinneret.servebeer.com:5000/
    Last edited by Mike G; 01-08-2011 at 07:57 PM.

  2. #2

    Default Re: AJAX Spinneret LED Demo and IP Camera

    Mike,

    I can see the video loud and clear, and I click on the LED on/off but don't see anything happen.
    Beau Schwabe | Parallax Semiconductor
    IC Layout Engineer
    Parallax Inc. * 599 Menlo Drive * Rocklin California 95765
    www.parallaxsemiconductor.com



    Asked about the ramifications of his discoveries, Hertz replied, "Nothing, I guess." Hertz also stated, "I do not think that the wireless waves I have discovered will have any practical application."
    www.BScircuitdesigns.com: IC's * Inductive proximity sensors * Misc

  3. #3

    Default Re: AJAX Spinneret LED Demo and IP Camera

    I don't know if it that was you Beau but the LED flashed on and off a bunch of times in the last 5 minutes. What OS and Browser so I can look you up in the log.
    Last edited by Mike G; 01-08-2011 at 10:20 PM. Reason: spelling

  4. #4

    Default Re: AJAX Spinneret LED Demo and IP Camera

    Well, Opera does not work but Chrome and Firefox seems to be okay. Looks like I'll have to create a service to get the http request for IE and Opera. If you see "Not sure!" no matter what you select On/Off. then the browser does not like cross domain script calls.

  5. #5

    Default Re: AJAX Spinneret LED Demo and IP Camera

    Cool. Worked fine for me. Bohnam would be proud if you played some tracks.

  6. #6

    Default Re: AJAX Spinneret LED Demo and IP Camera

    Had my axe out the whole time. Hey Hey what can I say... lol

  7. #7

    Default Re: AJAX Spinneret LED Demo and IP Camera

    The LED that toggles is right next to other LEDs that are toggling too.. you have to look a little closer to see the one that you are controlling.

  8. #8

    Default Re: AJAX Spinneret LED Demo and IP Camera

    Well, I finally got off my butt wrote an Ajax handler for IE and the other browsers that complain about cross domain scripts. So... when you click the LED On/Off radio buttons the message that comes back is from the Spinneret.
    http://www.agaverobotics.com/spinneret/controlpanel.htm

  9. #9
    $WMc%'s Avatar
    Location
    South of haven central, Fl. USA
    Posts
    1,813

    Default Re: AJAX Spinneret LED Demo and IP Camera

    Quote Originally Posted by Mike G View Post
    Well, I finally got off my butt wrote an Ajax handler for IE and the other browsers that complain about cross domain scripts. So... when you click the LED On/Off radio buttons the message that comes back is from the Spinneret.
    http://www.agaverobotics.com/spinneret/controlpanel.htm
    '
    It works
    '
    Great work Mike G
    '
    Below is LED "on" and the next is LED "off"
    Attached Thumbnails Attached Thumbnails Click image for larger version

Name:	Mike G Spinnerte led on.jpg‎
Views:	113
Size:	75.3 KB
ID:	79243   Click image for larger version

Name:	Mike G Spinneret.jpg‎
Views:	87
Size:	73.9 KB
ID:	79244  
    __Walt McDonald__


    It's not rocket-surgery
    I see why we don't have any water,All of the pipes are full of wires!
    E=WMc2
    Now with WiFi
    Not in the Spin Bunch
    import RPi.GPIO as GPIO

    ABB M202 certified
    ABB M211 certified

  10. #10

    Default Re: AJAX Spinneret LED Demo and IP Camera

    Great ! works G5 powerpc mac and Safari 5.04

    Perhaps put some black in top of other leds, or take a closeup of the orage led ...

  11. #11

    Default Re: AJAX Spinneret LED Demo and IP Camera

    how would i go about having the spinneret toggle the led on once for say 3 seconds then shut off.im trying to interface my spinneret with my automatic gate via the maunal push button controlls. using the demo code that would light an led and a relay it toggles the open button on my gate fine but i have to click off on the web server so it doesnt think im at the gate holding the button down. i need to do this for an open gate button close gate button and a lock gate at current position button for my web server. I only just got my spinneret and dont know what im doing or how to code it to say when button is pressed do action and then stop

  12. #12

    Default Re: AJAX Spinneret LED Demo and IP Camera

    Welcome to the forum.

    Start by reading this
    http://spinneret.servebeer.com:5000/

    Quote Originally Posted by michaelmonso
    how would i go about having the spinneret toggle the led on once for say 3 seconds then shut off
    The waitcnt command stops COG execution for some duration.
    Code:
    Pause(3000)
    ...
    PRI Pause(Duration)  
      waitcnt(((clkfreq / 1_000 * Duration - 3932) #> 381) + cnt)
      return
    A detailed explanation of waitcnt can be found in the Propeller Manual on page 218. Open the Propeller Tool -> Click Help -> Select the Propeller Manual (pdf).

    Quote Originally Posted by michaelmonso
    I only just got my spinneret and dont know what im doing or how to code it to say when button is pressed do action and then stop
    See the PushbuttonLedTest.spin example in the Propeller Education Kit page 33. Open the Propeller Tool -> Click Help -> Select the Propeller Education Kit (pdf).

    If you are still having problems, please post your source code, schematic, and a detailed problem description in a new thread.
    Last edited by Mike G; 08-21-2011 at 10:43 PM.

+ Reply to Thread

Similar Threads

  1. PropTCP Beta - Now fully MIT Licensed (w/ AJAX Enabled HTTP Server Example!)
    By Harrison. in forum Propeller 1 Multicore Microcontroller
    Replies: 49
    Last Post: 11-21-2011, 01:34 PM
  2. Overlay Text on Pic/Camera? (DIY Radar+Camera)
    By GuoD in forum BASIC Stamp
    Replies: 5
    Last Post: 08-28-2011, 03:56 PM
  3. Composite graphics demo now works on the Spinneret
    By zoopydogsit in forum Spinneret Web Server
    Replies: 0
    Last Post: 12-22-2010, 01:01 AM
  4. Propeller Demo board's Demo program in eeprom
    By prof_braino in forum Propeller 1 Multicore Microcontroller
    Replies: 7
    Last Post: 04-24-2010, 03:06 AM
  5. [unsolved] ADC MCP3204 Demo Advanced Demo.bs2 and ADC MCP3204 Demo.bs2 Question
    By sam_sam_sam in forum General Discussion
    Replies: 4
    Last Post: 11-01-2009, 02:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts