Skip to content

A blind controller using python to integrate with API and Hardware

License

Notifications You must be signed in to change notification settings

hackathongi/2018-blind-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Hackathon project to control the blinders of a House

Resource

IP: 192.168.4.13 PORT: 80

API

  • /pujar: Puja la persiana
  • /parar: Parar la persiana
  • /baixar: Baixar la persiana

Vars

  • state: defines de current state

    • stopped
    • opening
    • closing
  • percentage: an integer that describes the opening %

    • 0, 1, ..., 100
  • action: ask the controller to trigger an action

    • open
    • close
    • stop
  • mode: activates or not the automatic mode

    • automatic: blind behaviour is controlled by other sensors
    • manual: behaviour is controlled manually

Entity creation

MY_ENTITY="persiana" MY_TYPE="blind_controller"

curl $ORION_SERVER:$ORION_PORT/v2/entities
-X POST -s -S --header 'Content-Type: application/json' -d @- <<EOF { "id": "$MY_ENTITY", "type": "$MY_TYPE", "description": { "value": "Blind controller", "type": "String" }, "state": { "value": "stopped", "type": "String" }, "percentage": { "value": "100", "type": "String" }, "action": { "value": "action", "type": "String" }, "mode": { "value": "manual", "type": "String" } } EOF

About

A blind controller using python to integrate with API and Hardware

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages