I have an raspberry pi 2 board with camera, my django server and my mobile app. I want to start the raspberry camera and do live streaming on my mobile app through the django server. Is there any possible way to do this.
Thanks
I think yes with UV4L and WebRTC. Just take the HTML5 page from the UV4L Streaming Server and put it in your Web Page/App.
Related
I am working on a project to serve a django website from a raspberry pi thatis set up as an access point in a standalone network(not connected to the internet) just a minimum pi setup,am able to set it up as a wifi access point, but the challenge now is deploying the django website and serving it over the wifi access point to any connected device. am hoping somone could guid me through this orpoint me to any link with a guide to solve this
Generally, deploying in raspberry should be same, look here about deploying django. The main difference from the VPS your need to spend little time with your network. Googling about deploying django on raspberry gives a lot of results, here
I use Django Channels for WebSocket, but I can't find a way to deploy it on Windows. I can't change my platform so switching to Linux is not an option.
Could you please suggest a way to deploy Django Channels on Linux?
Or Do you know what is the Django Channels alternative for Windows?
Django channels also implement with redis server. redis server available on window.
use Django Channel Layer with redis server.
channel layer use web-socket between Django application and socket layer.
please follow this link Channel-Layers
I am creating an IoT project with a simple switch on and off event that is sent by the user to Django serve. And my device also connected to the Internet.
Here I want to get data to the device when the user does any action for the device using the Django Rest framework.
Getting data real-time using Django rest framework.
Here the device is raspberry PI.
Is this possible? If yes Please give me any reference.
You can host websockets by yourself with django-channels,or you can use third-party message middleware like pubnub which has python sdk for raspberry PI and java/objects-c sdk for your android/iOS devices.
By the way,i think django and drf is too large for raspberry PI.If your goal is simply to turn light on and off,pubnub is your best choice.
I have done similar project like you,I choose pubnub as message channel.Use android device send command within pubnub to raspberry PI,and raspberry PI control it's GPIO to turn on or off relay.Hope this will help you.
You can use django-websocket-redis package for this purpose
you can directly push messages to UI using this package
Please have a look at this Package
I can't find any example on how to do this.
Thanks,
Guillaume
This one is for ionic, its broadcasting what the user sees on his device youtube app to a desktop browser
I am looking for a chat solution that I can integrate into my mobile app. So far, I have been looking into python solutions and have come across the "chat demo in tornado" library. Are there any more advanced solutions that I can look into ?
CHat demo link : https://github.com/facebook/tornado/tree/master/demos/chat
There is this play2 (java) app that has been developed as an example by Heroku that makes use of Redis and WebSockets: https://github.com/heroku-examples/play-websockets-chat-sample
It could be helpful.
There are lots.
Some django based are:
Using the excelent pusher.com service: https://github.com/andres-torres-marroquin/django-pusher-chat
https://github.com/qubird/django-chatrooms
uing comet: https://bitbucket.org/nicoechaniz/django-live/src
with tornado and websockets: https://github.com/aruseni/chat
https://github.com/sveetch/djangotribune
http://code.google.com/p/django-chat/
http://code.google.com/p/django-jqchat/
Some Flask based:
using gevent and websockets: https://github.com/kcarnold/flask-gevent-socketio-chat
using gevent and websockets running on heroku: http://callmephilip.github.io/chatzilla/
using websockets on heroku: https://github.com/heroku-examples/python-websockets-chat
I'm pretty sure that there are chat apps for most of the python web frameworks we know. I've listed only those for django and flask because they are my favourite web frameworks.
I know a chat software named 123 Flash Chat. I guess it will totally satisfied with your request. They provide mobile chat app integration for ios and andriod. You can have a try, hope it will help you. :)
http://www.123flashchat.com/mobile-chat-promo.html
http://www.123flashchat.com/build-mobile-chat-app
If you are looking for an android (JAVA) chat library I recommend MQTT chat. It is more than a library, a complete messenger with extremely fast messages dending using the MQTT protocol and also it provides audio and video calls with webrtc. integration is also very easy. Even a beginner in Android can integrate it