
Y©Y¨  ã               @   s–   d  d l  m Z m Z e e ƒ Z d g d a e j d ƒ d d „  ƒ Z e j d d d	 g ƒd
 d „  ƒ Z e j d d d g ƒd d „  ƒ Z	 d S)é    )ÚFlaskÚrequestÚOFFé   ú/c               C   s   d S)NzHello, World!© r   r   r   ú2/home/matheus/Documents/Embedded/Scratch/server.pyÚhello_world   s    r	   z/ledÚmethodsÚPOSTc              C   s…   t  t j j d ƒ ƒ }  t  t j j d ƒ ƒ } |  d k rM d t | d <n+ |  d k rj d t | d <n d t | d <d j |  ƒ S)	NÚstÚlné   ZONr   r   ÚNonezLED is now:{0})Úintr   ÚargsÚgetÚglobal_statusÚformat)ÚstatusZ
led_numberr   r   r   Úled_status_change
   s    r   z/btn_status/<int:btn>ÚGETc             C   s   t  |  d S)Nr   )r   )Zbtnr   r   r   Úget_btn_status   s    r   N)
Zflaskr   r   Ú__name__Úappr   Úrouter	   r   r   r   r   r   r   Ú<module>   s
   $