Open agtic opened 2 months ago
Hello @agtic please, check the change of 4d74820
You have two request now
curl -X POST -H "Content-Type: application/json" -d '{"tolerance":"5","setpoint_min":"86","setpoint_max":"130", "setpoint_offset_summer":"25","setpoint_offset_winter":"29", "mode_change_delta_temp":"2","mode_switch_lockout_time":"-1", "cascade_time":"11"}' http://localhost:5000/add_settings
&&&& filter by id in the table settings of chronos.db ` curl -X GET http://localhost:5000/settings/1
`
It's just a begin, but it is with python3.12.
If you think it's appropriate, you can start sending me domain functionalities, and I'll try to resolve them here so @fardin-developer can consume them from his frontend.
I'll try to do it faster from now on.
Thank you, guys.
No, I haven't completed all the functionalities of Chronos yet. I’ve just set up a backend project structure for Python 3.12 using more modern technologies. The two queries are related to the Settings in the frontend panel. I might be wrong, but I think it’s better to build the Chronos functionalities from scratch rather than updating the old backend. However, you have more experience, @fardin-developer , so maybe your approach is better. Don't worry about my time because this has allowed me to learn new technologies. I'll reach out to you in the next few days on WhatsApp. Cheers, mate.
Some additional things I needed to get it to run:
After that flask starts. But when I try to open it in my browser I get a 404