Page 1 of 1

Pi Django GPIO

Posted: Mon Apr 04, 2016 10:09 pm
by hemanth22693
Hi,
I would like to know, how to get input from a push button connected to a raspberry pi and update the status of the button on the web page using django. I couldn't find any examples for Django. If there are any other frameworks with examples please let me know. I would like to learn!!!

Re: Pi Django GPIO

Posted: Wed Apr 06, 2016 8:21 pm
by johngrantuk
I used Django with the new Channels set-up as I detailed here: https://medium.com/@johngrant/raspberry ... .vooyyl50t. You could read the status of the button in the background worker and send an update on the channel when the button is pressed.