Python for development

while writing code for light monitoring for plants, why can’t we use python for development, it was told that we can also python???!!!

its very convenient to use java script for this project as you just have to write one line of code . you can also use python but using js reduces code redundancy.

but for someone who knows only python?

use micropython to write codes in python language for the bolt wifi module.

but there is option for only either html or js

You cannot write python code in bolt cloud platform, I’d like to know what operating system you use to code in python? It would make me help you in better way

Hi @ashu.vampire13,

The code which you enter in the product code, is the code which runs on your browser when you call the device view.

Running python codes through the browser is not possible and as such, you are required to either code in javascript or HTML at this stage.

To run python codes you need to have a machine or a system which can run python codes. You can use digitalOceans droplests for such work.

@sampatkumar.mca17 i use windows

@ashu.vampire13 use this link to know how to install library in python and install boltiot library in python

1 Like

can’t we use djano/flask?

@ashu.vampire13: The Bolt Cloud website is being hosted by BoltIoT webservers.

I am not so certain about django, but for flask, you would have to run your flask app on your own server.
With the product code setup that goes with the Bolt Cloud, your code is hosted by the BoltIoT web server.

If you are talking about code that can be combined into the script tag inside an HTML code, you can still do that. But the code in the product configuration is not a serverside code, it is the frontend code.

1 Like

Python system can be utilized for nearly anything, from web applications to information investigation. It is generally utilized for creating GUI based work area applications, games, logical and computational applications, business and venture applications, and web applications.The language executed in programs, for example, Chrome, Firefox and Internet Explorer is JavaScript. Activities, for example, pyjs can gather from Python to JavaScript. Be that as it may, most Python designers compose their web applications utilizing a mix of Python and JavaScript.Python is better in the drawn out undertakings. PHP has a low expectation to absorb information, and it is direct to begin with. Python utilizes space implementations that are very severe. This makes it more intelligible than PHP.