loading
2 Comments

Tell us about yourself!

Complete Your Profile
  • Simple and intuitive web interface for your Raspberry Pi

    This was fantastic!! I'm turning on a tea kettle remotely with this and it works like a charm. I am controlling two outlets with this so I edited the code down to two options, no need for loops in this case (but in the future....). My question is, and I think it was asked earlier: If you turn on the LED, then refresh the page, the page doesnt initially read the value of the Pin. I have two relays I am controlling, if I turn them on, they show on in the browser, then I refresh browser, they show off on the browser but are still on. They will turn off if I click the button, and then the cycle is properly rest and the buttons turn on and off.I am trying to write up a javascript read function that reads the status of the pins when the page loads...no luck in the last 15 minutes or so but u...see more »This was fantastic!! I'm turning on a tea kettle remotely with this and it works like a charm. I am controlling two outlets with this so I edited the code down to two options, no need for loops in this case (but in the future....). My question is, and I think it was asked earlier: If you turn on the LED, then refresh the page, the page doesnt initially read the value of the Pin. I have two relays I am controlling, if I turn them on, they show on in the browser, then I refresh browser, they show off on the browser but are still on. They will turn off if I click the button, and then the cycle is properly rest and the buttons turn on and off.I am trying to write up a javascript read function that reads the status of the pins when the page loads...no luck in the last 15 minutes or so but unless someone else figures it out, I will post when I'm done! This isnt a serious issue, just would be nice to have. great instructable!! oh... I did it!!

    quite a simple solution... :) I just told GPIO via php to set all status to zero as first line...this way, no way any outlet could be accidentally forgotten or left in an unknown but truly "On" state

    View Instructable »