Light me up! - Netduino Plus 2 (and Netduino Plus 1) - Netduino Forums
   
Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Light me up!


  • Please log in to reply
18 replies to this topic

#1 Dan T

Dan T

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationBoston (Greater)

Posted 29 July 2011 - 04:50 AM

This is exciting. You may have to give it a minute for the excitement to sink in... but it will.

Click the following link while my NetduinoPlus is still powered up...

try.yaler.net/gsiot-WX9E-WA8Z/led/target.html

... and my little NetduinoPlus will serve up a web page complete with JavaScript in it that will paint buttons on the page. If you click the button that says, "Switch LED ON", the button talks back to my NetduinoPlus and... here's the exciting part... TURNS ON THE LED!

You won't be able to see the LED go on... since you'd have to be here, or I'd have to have a webcam setup or something. It's simpler if you just trust that it's on. If the web page comes up with the Java Script buttons, then that's proof enough that my little Netduino Web Server is still alive and well - so you can be VERY confident that the LED is lighting up. Very confident indeed.

BTW, I'll be going to bed now, it's late for me, so *I* won't see the LED go on either. Don't let that bother you. It WILL BE ON. And then OFF. And then ON. Very exciting.

I'm working through Chapter 12 of "Getting Started with the Internet of Things" by Cuno Pfister - a great book all about using the NetduinoPlus to connect in various ways to the www.

#2 Dan T

Dan T

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationBoston (Greater)

Posted 29 July 2011 - 05:08 AM

Click the following link while my NetduinoPlus is still powered up...

try.yaler.net/gsiot-WX9E-WA8Z/led/target.html

... TURNS ON THE LED!

OH! OH! I see the light! It's ON! Then off. Then ON AGAIN!
Hurray! Thanks to whomever! (I was waiting...)

#3 Omar (OZ)

Omar (OZ)

    Advanced Member

  • Members
  • PipPipPip
  • 564 posts

Posted 29 July 2011 - 05:11 AM

OH! OH! I see the light! It's ON! Then off. Then ON AGAIN!
Hurray! Thanks to whomever! (I was waiting...)


^_^ might be me, i went crazy with it

#4 Dan T

Dan T

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationBoston (Greater)

Posted 29 July 2011 - 05:15 AM

Again and again! Love it. I know this makes me look somewhat childish... but I don't care. This is fun. Your pattern of lights, whoever you are, looks like a struggled version of SOS in Morse code. Like you're trying to communicate, but are very badly hurt. Is that right? Regardless. This was very exciting for me, at least. I am going to bed and dreaming about being an Internet of Things warrior! Feel free to blink away while I'm gone. :)

#5 Dan T

Dan T

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationBoston (Greater)

Posted 29 July 2011 - 05:19 AM

^_^ might be me, i went crazy with it


Oh. I was so excited I didn't see your reply Omar.

Thanks! I can power on to the final chapters in this book now that I'm content with Chapter 12. :)

Thanks again.

Good night,

#6 ColinR

ColinR

    Advanced Member

  • Members
  • PipPipPip
  • 142 posts
  • LocationCape Town, South Africa

Posted 29 July 2011 - 06:29 AM

What does Bah do, self destruct? :P

#7 Cuno

Cuno

    Advanced Member

  • Members
  • PipPipPip
  • 144 posts
  • LocationZürich / Switzerland

Posted 29 July 2011 - 08:38 AM

Click the following link while my NetduinoPlus is still powered up...

try.yaler.net/gsiot-WX9E-WA8Z/led/target.html

Note that if you click on this link while Dan's Netduino Plus is not powered up, the Yaler service will return HTTP status code 504 (gateway timeout). This means that no device is currently registered with Yaler for Dan's domain gsiot-WX9E-WA8Z.

Depending on the Web browser that you use, the status code 504 will be displayed in this case (e.g., in Chrome), or simply a blank page (Internet Explorer and Firefox).

Best regards

Cuno

#8 Cuno

Cuno

    Advanced Member

  • Members
  • PipPipPip
  • 144 posts
  • LocationZürich / Switzerland

Posted 29 July 2011 - 09:28 AM

Another tip, courtesy of my colleague Marc Frei:

Type in the URI (e.g., try.yaler.net/gsiot-WX9E-WA8Z/led/target.html) in the text field of the Web page http://hurl.it/ and then click on the Send button. You will then see the HTTP response.

#9 Dan T

Dan T

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationBoston (Greater)

Posted 29 July 2011 - 11:10 AM

Another tip, courtesy of my colleague Marc Frei:

Type in the URI (e.g., try.yaler.net/gsiot-WX9E-WA8Z/led/target.html) in the text field of the Web page http://hurl.it/ and then click on the Send button. You will then see the HTTP response.

Thanks, Cuno. Very cool. That should go in the next version of your book. :)

#10 Dan T

Dan T

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationBoston (Greater)

Posted 29 July 2011 - 11:14 AM

Note that if you click on this link while Dan's Netduino Plus is not powered up, the Yaler service will return HTTP status code 504 (gateway timeout). This means that no device is currently registered with Yaler for Dan's domain gsiot-WX9E-WA8Z.

Depending on the Web browser that you use, the status code 504 will be displayed in this case (e.g., in Chrome), or simply a blank page (Internet Explorer and Firefox).

I just rebooted my little NetduinoPlus server, 'cause the LED was still on but the page returned 504. Somehow we got "disconnected". :blink:

It's working again now. I'll try to leave it up for the work-day.

Happy Friday! B)

#11 Dan T

Dan T

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationBoston (Greater)

Posted 29 July 2011 - 11:19 AM

What does Bah do, self destruct? :P

"Don't press the "Bah" button!" :unsure:

It intentionally causes an error on the server and returns 504. Which I see on my end if the debugger is attached, and you can see on your end with more advanced tools than a simple browser window. See Cuno's comment about the Hurl site, above.

#12 Mario Vernari

Mario Vernari

    Advanced Member

  • Members
  • PipPipPip
  • 1768 posts
  • LocationVenezia, Italia

Posted 29 July 2011 - 11:37 AM

I must admit: Dan T should be honored as the "power seller" of this year! He's proposed us a simple page with three buttons. Every one of us clicked at least once on the ON/OFF, but without any feedback. Maybe someone pressed on "Bah" as well. Dan T should be a "power seller", because behind those buttons should have been some Javascript stealing all our sensitive data, and on the "Bah" a script to format our hard-disk! ColinR had the best intuition on what's inside this mysterious button! Dan, please forgive my humour! I'm just kidding! Keep this comment as a heartly compliment for your work. I'd join to the other guys to help you in any way to improve any idea inside your brain. Congrats again! Cheers
Biggest fault of Netduino? It runs by electricity.

#13 Dan T

Dan T

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationBoston (Greater)

Posted 29 July 2011 - 01:03 PM

...behind those buttons should have been some Javascript stealing all our sensitive data, and on the "Bah" a script to format our hard-disk!

Cuno is the mastermind. I'm just his unwitting pawn.

Sua citta e bellisima! (I just visited for the first time.)

#14 Dan T

Dan T

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationBoston (Greater)

Posted 25 September 2011 - 05:03 PM

Hi, Crystal, Welcome to the forum!

Try it again - it might work now. :rolleyes:

Click the following link while my NetduinoPlus is still powered up...

try.yaler.net/gsiot-WX9E-WA8Z/led/target.html

The reason it didn't work before is that the expected page requires that my NetduinoPlus is :
  • powered-up
  • running the correct app, "LedControllerHtml"
  • properly connected to the internet
  • properly synced up with the yaler relay service
All of that is true at this very moment. (See date and time of my post.)

Hey! I know you! You're THE Crystal - Secret Labs Math Geek. Very cool! Geeks of any kind are welcome here. I do speak some math - so if you need me to translate anything here, just ask. The enthusiams I show in this thread for your product is real, BTW. I think the Netduino is part of trend that is as unstoppable as the internet itself. I think you're working for a great company, at a great time. Hopefully the math will work out. :)

#15 erich

erich

    Member

  • Members
  • PipPip
  • 21 posts
  • LocationFrance

Posted 27 September 2011 - 11:51 AM

Is it off-line again or just over subscribed?

#16 Dan T

Dan T

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationBoston (Greater)

Posted 28 September 2011 - 02:08 AM

It is online again now. I've plugged it in via my iPod USB charger, so I don't have to dedicate a whole PC to produce the power. :). I need to find DC adapter.

#17 mike88

mike88

    New Member

  • Members
  • Pip
  • 2 posts

Posted 18 October 2011 - 02:08 PM

Hi everyone First of all I like this post. This is something new that i've never seen before. Second, i hope if you dont mind to give some advices to create a project like in this post, becuase this is the same project that my profressor asked me to do and im new about netduino stuff :S Thanks in advance.

#18 Dan T

Dan T

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationBoston (Greater)

Posted 19 October 2011 - 02:08 AM

I hope if you dont mind to give some advices to create a project like in this post...
Thanks in advance.


The advice is easy. This example is right out of the book, "Getting Started with the Internet of Things". Check Netduino's download page, the book is shown there with some sample chapters. To go with the book, you'll need a NetduinoPlus, a wired internet connection, and a Cat 5 cable.

Good luck. And welcome to the forum.

#19 mike88

mike88

    New Member

  • Members
  • Pip
  • 2 posts

Posted 19 October 2011 - 02:13 PM

The advice is easy. This example is right out of the book, "Getting Started with the Internet of Things". Check Netduino's download page, the book is shown there with some sample chapters. To go with the book, you'll need a NetduinoPlus, a wired internet connection, and a Cat 5 cable.

Good luck. And welcome to the forum.



Thanks alot for your advice and time.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.