Web development for smart switches IoT [closed] - python

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have many jinvoo light switches in my house. I control them from the app in my cell or using alexa echo gen 3 and everything works perfect.
Now I am trying to create a local web page that allows me to know the status and to interact with the switches.
I have been looking an api and found nothing. I also thought about creating an Alexa skill to interact with my page or to use and arduino ESP8266.
Any suggestion will be appreciated.

If you know how to control them from a skill, you can create custom tasks for different operations within a skill, then trigger them using Quick Links for Alexa.
Custom tasks: https://developer.amazon.com/en-US/docs/alexa/custom-skills/implement-custom-tasks-in-your-skill.html
Link to custom tasks from a web page: https://developer.amazon.com/en-US/docs/alexa/custom-skills/create-a-quick-link-for-your-custom-task.html#

Related

How to move my Python application to the web? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
This month, I learnt Python. I compiled the code and am able to run it on my laptop. A simple code that asks the user yes/no responses to questions that helps them traverse through a flowchart and end up with a final choice/result.
How do I turn this into a Python Web Application that can be accessed by others over a URL and not be dependent on my laptop to run it?
You need to separate the parts of your app that have its logic from the ones which react to and update window content.
Then you need to rewrite the window management part for the web. From the scratch. Also other parts if they rely on things that are not available in a browser (usually local filesystem access).
It is doable, but not that trivial as web apps have different architecture from desktop apps, there are issues with concurrency, preserving app state, and browser limitations, to name few.
Anything more detailed requires you to describe what it is that your app does and how.

How to build a simple mobile app based on a simple python program? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I recently participated in the company's internal Hackathon, using Python and Azure's image processing API to make a simple program to scan products. The basic idea is to place a specific product in front of the camera and the program will redirect to the product page with more details.
Our product manager is quite interested in this project, asking if I can make a mobile app. I am a data engineer and has almost zero experience on the mobile side. Just wondering if there is an easy way to migrate / re-do the project I just described and make it preferably an app compatible with both Android and IOS. What tech stack do I need to learn to achieve this? Thanks in advance!
you can try it with https://kivy.org/#home - this should work with python.
If you do not want to stick to python, there are lots of frameworks, that might fit your needs:
Flutter https://flutter.dev/
Kotlin https://kotlin.org/
Xamarin https://dotnet.microsoft.com/apps/xamarin
React Native https://www.reactnative.com/
this list is growing fast...

chat web app that allows sending messages [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am learning Flask and I want to practice by making simple web app.
I want to make a chat web app that allows sending messages between two or more web browsers in Flask but I am not sure where to start or go about building this application. This question is pretty broad but what I want to know is how to structure this application. What are the pieces I need to build this application.
very broad question, but I'd recommend starting here with web sockets http://blog.miguelgrinberg.com/post/easy-websockets-with-flask-and-gevent . Then you can have two member subscribe to a channel and make messages to each other.

Converting a python script to a web application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I have a python script written up and the output of this script is a list . Right now I need to get it online and make it accesible to others. I looked at Django , but then I realised that it may be kind of hard to create the UI. Is there any simple way to create a UI in Django and map it to an existing python script. Right now I am not using sql and things like that. Or is there a simpler way by which I can proceed?
I'd go with Flask or web.py.
Django pays off if you develop a large app; yours is not.
Probably all you need is two pages: one with an input form, and another with results. As long as your input is text, you should have little trouble taking input from a POST handler and passing it as is to your script.
Both microframeworks have tutorials: here's web.py's, and Flask's is right on the home page. Should get you started very quickly.

programmatically update facebook status [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Is there a Python program where you can post a status update without going to the website itself?
Where or how do i get started?
You would wanna get started here, https://github.com/facebook/python-sdk
unless there's a library I don't know about.
You can checkout my fork of the python sdk. It's customized to work better with django.
You can check here on how to use it to authenticate a user.
After that you can use the python sdk to post a news entry.
fb.put_wall_post("hello")
Or do it yourself, it's only a matter of doing a POST request to http://graph.facebook.com/FBID/feed where FBID is the ID of the page or profile you want to publish to, more info in the facebook doc.

Categories

Resources