Projet de remplacement du "RPiPasserelle" d'Otec.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

heatpump.py 475B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python3
  2. from modbus.client.serial import rtu
  3. from starlette.routing import Router
  4. from starlette.responses import JSONResponse
  5. from conf import config
  6. from db.db import sql
  7. def get_variables(request):
  8. pass
  9. def get_variables_by_type(request):
  10. pass
  11. def get_var_type_addresses(request):
  12. request.path_params['type']
  13. heatpump = [
  14. Route('/', get_variables, methods=['GET']),
  15. Route('/{type:str}', get_variables_by_type, methods=['GET'])
  16. ]