Skip to content

MilowB/Thermostat_server

Repository files navigation

What is it ?
------------

Who has never dreamed to manage himself his heating system ? Right, most of people...
This repository is the server side of a heating system management. It is composed by a RESTful API build with Flask. The API allows to get the current temperature, shutdown or launch the heating system and schedule hour by hour every day of the week the temperature of your home.

How to run ?
------------

python3 serveur.py

How to test ?
-------------

Test with Curl :
curl -i -H "Content-Type: application/json" -X PUT -d '{"temperature": 22.15}' http://localhost:5000/manage/currentTemperature/key

Is it working ?
---------------

Yes, you can download this repo and run the server on your machine.
Also, you should notice it is not the final version.




Copyright 2019 Mickael Bettinelli

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Server API to manage the heating system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages