[Tasker] Kiểm tra vị trí chính xác mà không cần GPS hay Wifi

Tạo 2 profile:
- Một Profile dùng để xác định vị trí và gán biến Home = 1
- Một profile kiểm tra biến Home = 1 thì thực hiện các task do ta chỉ định.

Profile: Home GSM
 State: Cell Near [ Cell Tower / Last Signal:
      GSM:1234.56789 / 0
      GSM:1234.57719 / 2
      Ignore Cells:* ]
Enter: Home On
 A1: Variable Set [ Name:%HOME To:1 Do Maths:Off Append:Off ]

Exit: Home Off
 A1: Variable Set [ Name:%HOME To:0 Do Maths:Off Append:Off ]


Profile: Check Home Priority: 5 CoolDown: 120 Event: Variable Set [ Variable:%HOME Value:1 ] Enter: Check Home A1: Wait [ MS:0 Seconds:0 Minutes:1 Hours:0 Days:0 ] A2: If [ %HOME ~ 1 ] A3: Variable Set [ Name:%OUTSIDE To:0 Do Maths:Off Append:Off ] A4: Notify Sound [ Title:Home sweet home! Text: Icon:ipack:iconedenthemeshd:twitter_8 Number:0 Sound File:/system/media/audio/notifications/S_Knock.ogg Priority:3 ] A5: Perform Task [ Name:WiFi On Stop:Off Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ] A6: Perform Task [ Name:LOG write Stop:Off Priority:5 Parameter 1 (%par1):Home Parameter 2 (%par2): Return Value Variable: ] A7: Mobile Data [ Set:Off ] A8: Ringer Volume [ Level:5 Display:Off Sound:Off ] A9: Variable Query [ Title:Start PC? Variable:%pcstart Input Type:Numeric / Integer Default:3665 Background Image:Pictures/Wallpaper/hi_tech_texture-wallpaper-1920x1200.jpg Layout:Question Yes No Timeout (Seconds):60 Show Over Keyguard:On ] If [ %WIFII ~R MyHomeWiFiSSID ] A10: If [ %pcstart ~ 3665 ] A11: WoL Wake On Lan Wan Settings[ Configuration:Home Package:com.benfinnigan.wol Name:WoL Wake On Lan Wan Settings] A12: End If A3: End If

Comments