hemanth22693
Posts: 2
Joined: Mon Apr 04, 2016 9:16 pm

Pi Django GPIO

Mon Apr 04, 2016 10:09 pm

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!!!

johngrantuk
Posts: 4
Joined: Wed Mar 30, 2016 7:20 am

Re: Pi Django GPIO

Wed Apr 06, 2016 8:21 pm

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.

Return to “General discussion”