
    Mg1
                        S r SSKJrJrJrJrJrJrJr  SSK	J	r	J
r
  \
" SS9\	" S5      S 5       5       r\
" SS9\	" S5      S	 5       5       r\
" SS9\	" S
5      S 5       5       r\
" SS9\	" S5      S 5       5       r\
" SS9\	" S5      S 5       5       r\
" SS9\	" S5      S 5       5       r\
" SS9\	" S5      S 5       5       r\	" S5      S 5       r\
" SS9\	" S5      S 5       5       rg)z>
Plugins not fully converted but simply "wrapped" as plugins.
    )directions_toforecastmappsnear_metimeInweather_pinpoint	weatherIn)pluginrequireT)networkz
check timec                 F    [         R                  " U R                  U5        g)zb
checks the current time in any part of the globe.
-- Examples:
    check time in Manchester (UK)
N)r   main_jarvisselfss     ?/Users/admin/workspace/ai/Jarvis/jarviscli/plugins/converted.py
check_timer   
   s     KKa     zcheck forecastc                 0    [         R                  " X5        g)zo
checks the weather forecast for the next 7 days.
-- Examples:
    check forecast
    check forecast in Madrid
N)r   r   r   s     r   check_forecastr      s     MM$r   zcheck weatherc                 F    [         R                  " U R                  U5        g)zm
weather in *: checks the current weather in any part of the globe.
-- Examples:
    check weather in Canada
N)r	   r   r   r   s     r   check_weatherr   !   s     NN4<<#r   
directionsc                     U R                   n  [        R                  " U5        g! [         a    [	        S5         gf = f)z
Get directions about a destination you are interested to.
-- Examples:
    directions to the Eiffel Tower
    directions from the Arc de Triomphe to the Eiffel Tower
zPlease enter destinationN)r   r   r   
ValueErrorprintr   datas     r   r   r   ,   s8     <<D*4  *()*s   % ==nearc                 0    [         R                  " U5        g)z^
finds places near you
-- Examples:
    restaurants near me
    museums near the eiffel tower
N)r   r   r   s     r   do_nearr"   =   s     LLr   pinpointc                 .    [         R                  " 5         g)z#Jarvis will pinpoint your location.N)r   	locate_mer   s     r   do_pinpointr&   I   s     
OOr   umbrellac                 b    U R                   n Sn[        R                  " U R                  X5        g)z5will inform you if you might need an umbrella or not.r'   N)r   r   r   memoryr   s     r   do_umbrellar*   P   s&     <<DA$++t/r   zupdate locationc                     U R                  S5      n[        U5      nU R                  SU-   5        U R                  S5        U R                  5       nU R	                  SU5        g)z5
location: Updates location.
system: Updates system.
cityz Your current location is set to zWhat is your new location?N)get_datastrsayinputupdate_data)jarvisr   locationloc_stris        r   	do_updater6   Z   sU     v&H(mG
JJ1G;<
JJ+,A
vq!r   weatherc                     U R                   n UR                  5       n[        U5      S:  a  [        R                  " X5        g[
        R                  " U R                  X5        g)z?Get information about today's weather in your current location.   N)r   striplenr	   r   r   r)   )r   r   words      r   
do_weatherr=   h   sC     <<D779DD	Atdkk43r   N)__doc__packagesr   r   r   r   r   r   r	   r
   r   r   r   r   r   r"   r&   r*   r6   r=    r   r   <module>rA      sh  ; ; ; # 	!  ! 	   	$  $ 	*  * 	   	
  
 	
0  0 
" 
" 		4  4r   