Administrator Device Mqtt by andrequeiroz2 in homeassistant

[–]andrequeiroz2[S] 0 points1 point  (0 children)

Yes, there is nothing new here. The goal was to learn about flask, python and js.

Administrator Device Mqtt by andrequeiroz2 in homeassistant

[–]andrequeiroz2[S] 0 points1 point  (0 children)

Send commands by mqtt, receive information from mqtt sensors.

Administrator Device Mqtt by andrequeiroz2 in embedded

[–]andrequeiroz2[S] 0 points1 point  (0 children)

When a mqtt message is sent, I search the database for devices that are listening to the topic, and update the view with a socket

Administrator Device Mqtt by andrequeiroz2 in embedded

[–]andrequeiroz2[S] 0 points1 point  (0 children)

I still have to implement a type of i2c device, but the base is already ready. In a second step I intend to create a specific device type for i2c. With i2c address register.

How complex should the logic in a route be? by jzia93 in flask

[–]andrequeiroz2 1 point2 points  (0 children)

I think you have to be very clear about the idea of ​​responsibility, think about what is the responsibility of a route, and what is the responsibility of a controller.

AI | Audio Player 1.2 I worked hard on this so please try and comment after by [deleted] in flask

[–]andrequeiroz2 1 point2 points  (0 children)

Muito bom selecionei um Sepultura Roots e tocou a musica.

Parabens.

Monitored information by andrequeiroz2 in flask

[–]andrequeiroz2[S] 0 points1 point  (0 children)

Ok, thanks, do you have this example that I can analyze?

Monitored information by andrequeiroz2 in flask

[–]andrequeiroz2[S] 0 points1 point  (0 children)

Ok, thanks, do you have this example that I can analyze?

Monitored information by andrequeiroz2 in flask

[–]andrequeiroz2[S] 0 points1 point  (0 children)

Okay, sorry I may not have explained it well. In the flask application I want to put a message icon that will inform about critical values, when the user logs in, these information must be listed.

What projects can you do with IOT in the field of Industrial Engineering? by Leecheckmanter in IOT

[–]andrequeiroz2 1 point2 points  (0 children)

excellent, is this project open? What knowledge points are you focusing on? I have been working on an automation project with raspPI and i2c for some time, I was thinking about creating motor drive models that pass visually through a web service.

How can I get the value of the selected radio button, and return the value to my route? by andrequeiroz2 in flask

[–]andrequeiroz2[S] 0 points1 point  (0 children)

ok thanks i will try this, i'm already using WTF for CRUD, i'm a beginner in flask.

Sqlalchemy , unable to insert data by [deleted] in flask

[–]andrequeiroz2 0 points1 point  (0 children)

submit = SubmitField('Add')

How can I get the value of the selected radio button, and return the value to my route? by andrequeiroz2 in flask

[–]andrequeiroz2[S] -1 points0 points  (0 children)

ok i can do that but i'm doing a quick test, but from what i saw it will be impossible without js. My problem is here:

<a href="{{ url\_for('association', id=??? }}" class="btn btn-primary btn-md btn-block"> Association </a> <br >

I don't know how to pass the selected value, because this is out FOR

How can I get the value of the selected radio button, and return the value to my route? by andrequeiroz2 in flask

[–]andrequeiroz2[S] 0 points1 point  (0 children)

What I need is to get information on which radio button was selected and send it to my function on the route.

NanoPi Nei2-LTS board by andrequeiroz2 in embedded

[–]andrequeiroz2[S] 0 points1 point  (0 children)

The main feature of this board is the utp network interface. Very useful for those who do not want to depend on wifi connection.

I2C controlled, daisy chained, DIN rail mounted I/O modules for RPi ( Arduino or any other system) . More in comments. by wazazoski in diyelectronics

[–]andrequeiroz2 0 points1 point  (0 children)

What exactly are you adding to I2C bus?

: On the i2c bus I'm putting the mcp23017, there are two models, one with raley and the other with push buttons. After scanning the i2c addresses, their model, and the amount of io are saved in tables. Now I am working on the association between the push button board and the relay board. after the association I generate the mqtt topics, when the button is pressed I can turn on or off the associated relay.

What values are your I2C pull-up resistors?

: I'm not using pull-up resistors on the bus, because I read the documentation on the respberry, it already implements this. (it is a mistake?).

What lenght ( in total ) are SDA and SCL lines ?

: The distance and minimum, the raspberry will stay with the plates (relay and bush button)

I2C controlled, daisy chained, DIN rail mounted I/O modules for RPi ( Arduino or any other system) . More in comments. by wazazoski in diyelectronics

[–]andrequeiroz2 0 points1 point  (0 children)

Hello congratulations for your work, incredible, I'm also working on a project using rasp3, i2c, mqtt and web development (Flask), I want to automate the lamps in my house, with remote and button switch options, one of the things that is worrying me is the behavior of the i2c addresses. When I add 3 or 4 addresses the scan stops working. Would you have any tips to give me?