Network Location (Sean Williams)

Warning: Use of your own location Profiles (which may include similar contexts) will confuse or cause undesirable problems. Please backup disable/delete any similar contextual Profiles/Projects of your own during use… including previous versions of this project.

I have received many requests via email from people using the Network Location project. For anyone new here that does not visit the Tasker support forum… we are currently at Network Location version 6. This can be found on the thread by IconBoy titled "Best way to detect you are home…?" I will do my best to refresh this page with the most up to date version but my time is limited. Anyone wishing to get started should visit the support thread and read through.

Network Location v6 beta 4

After updating to v6b4 delete the 'NetworkLocation/nl.cfg' file and reboot your device.

NEW: Scheduling of network scans (experimental).

  • Added: Additional network checks during WiFi scan.
  • Added: Secondary scan scheduled on arrival of a known network.
  • Added: Configuration setting "Wake on scan=true/false" wake the display while evaluating networks.
  • Added: Configuration setting "Network scan (sec)=600" a value of 180 - 1800 seconds.
  • Added: Various extra log entries.
  • Added: Cell IDs hold time-stamp.
  • Added: Type 'nl:config', returns current config settings.
  • Added: Type 'nl:backup' or 'nl:restore', backup or restore project data at 'NetworkLocation/database/.backup'.
  • Added: Configuration setting 'Network hopping=true/false' (see notes) (credit Richard).
  • Added: Configuration setting 'Auto WiFi connect=true/false' (see notes).

Changes:
  • Removed 'WiFi near' context.
  • Minimum recommend API 18+ (Android 4.3+).
  • Renamed some configuration settings to be more descriptive see 'nl.cfg' for details.
  • Increased the amount of data held by the Network Location log 'nllog.txt'.
  • Depreciated configuration setting "Cells per network=xx"
  • Depreciated configuration setting "Auto WiFi enable=true/false"
  • Depreciated configuration setting "Network monitor=true/false"

BugFix:
  • Fixed: Scheduling became inactive after addition of a new Cell ID while non-connectable Network detected.
  • Fixed: An overlapping nearby known connectable network could take priority over the connected known network (credit Afrosheen).
  • Fixed: Some error notifications could be ignored and not displayed.
  • Fixed: Scheduling could become inactive when adding a new non connectable network.
  • Fixed: Single configured network could cause detection failure.
  • Fixed: Cell State could cause scheduling to fail (credit Ash).
  • Fixed: Connectable network failure could cause scheduling to fail (credit Ash).

Notes:

Scheduling is intended to emulate Taskers own WI-FI near context with the addition of dynamically adjusting scan timing. This gives us the ability to improve overall accuracy for both connectable and non-connectable network detection. Schedules can be manipulated by using the configuration setting "Network scan (sec)=600". To minimise power usage - scheduling is active only when required and not for example while connected to a known network or where ineligible Cell IDs are detected.

Network Hopping - the Network Location project can now detect when a stronger nearby connectable network becomes available. The nearby connectable network must hold a signal of at least 10% greater than the currently connected network. When detected Network Location will attempt to automatically connect you to the stronger network. This is useful for users with multiple networks at the same location the project will seamlessly manage these networks ensuring you are always connected to the stronger access point. This service requires an active monitor which can be manipulated by using the configuration setting "Network scan (sec)=600".

Automatically connect to an available WiFi access point. When Enabled Auto WiFi Connect will monitor your nearby networks for your previously known connections. When a suitable network is found Network Location will attempt to automatically make a connection to this network. This is useful for users who prefer to disable their device WiFi when not in use but still want their device to automatically connect when nearby a previously known and trusted WiFi network.

Network Location v4 release

What it does:

Network Location will automatically track WiFi and mobile cell interactions throughout your day collecting and indexing all of the important data required to locate different WiFi networks enabling you to quickly and easily automate your devices while connected to or within range of different WiFi network locations. The project does this all without any user interaction. Core features include gathering WiFi network and cell data while maintaining a current and updated database of these networks and their mobile cell interactions. You can also track nearby networks that you would never connect to. The project automates the process of knowing your devices location allowing you the user to concentrate on the actions to be taken while arriving or departing these networks.

Usage examples:

  • Automatically forward a message home when near a non connectable WiFi access point at the train station.
  • At the Cinema, Toggle silent mode after entering the range of a non connectable network.
  • Set your device to aeroplane mode after connecting to the office WiFi.
  • Track your shift patterns or work hours, whether or not you can connect to the work WiFi.

Key Features:

  • Create your own actions, set variables, define locations, toggle settings etc. for each of your known networks that you connect to or are near.
  • Configures network states during Aeroplane mode.
  • Collects and manages Cell tower IDs removing duplicates and old redundant entries.
  • Supports an unlimited number of WiFi networks.
  • Provides a simple UI for users to add or remove known networks.
  • Ability to assign non connectable WiFi networks and preform actions when in range.
  • Notifications of new CELL ID & WiFi network data (optional).
  • Notifications when entering or exiting a known network (optional).
  • User adjustable network buffering for when leaving a known network.
  • Enter or exit state triggers at known networks performing your associated 'mywifi' network Task(s).
  • Scans and remembers your (connected to) WiFi networks.
  • Automatically collects and maintains a valid cell tower list providing accurate low power usage of location tracking.
  • Creates a time-stamped user log of your network interactions.
  • Several user configurable options such as debug logging and custom notification settings.
  • Project is Kid App ready, include your network tasks and export as a standalone network automation app.
  • Supports non cellular devices such as tablets.

How to use:

Its very simple - Once the Project is imported you will need to create a single Task ('or/group/task') for each WiFi network that you wish to automate. This Task will host your enter and exit actions for your known WiFi network.

  1. To do this simply clone the provided 'Template' Task and name it, 'mywifi' (where mywifi is your networks ssid).
  2. Next open this Task and insert your desired enter and exit actions in the appropriate spaces. Use the back key when exiting Tasker to save your new configuration.
  3. You can also group several known WiFi networks into one single Task. To do this name your task 'mywifi/myotherwifi/anotherwifi'.

Note, each time you wish to add automation to another known WiFi network simply repeat the above process.

To detect non connectable near networks create a shortcut on your launchers home screen linked to the Task named 'Network - Add SSID'. You can then add networks you wish to detect. Note, you must be near the non connectable network you wish to add.

No other interaction is required. Your cloned 'mywifi' task(s) will be preformed when entering or exiting their respective network.

General Guidance:

WiFi,
For users who turn their WiFi off. Users with devices running versions of Android below 4.3 should enable 'WiFi toggle' in the cell near context of this project. Users with devices running 4.3 or above should enable 'Scanning always available' in Androids WiFi settings, under 'Advanced'. You can improve detection of known but non connectable networks by spending more time within their vicinity. Over time more relevant cells are retained while lesser seen obsolete cells become redundant. Network priorities, known connected networks are given priority over known but non connectable networks. Non connectable networks will be activated on a first seen basis usually by strongest signal.

Receiving updates,
You can move and store your cloned Template Tasks 'mywifi' into another project tab of your choosing e.g TAB: 'My Networks'. This will make receiving updates to the project easier as you can simply delete the last project version and then import the next. However when exporting the project as an app you will need to first ensure your 'mywifi' Tasks are back inside the project tab but only if you wish them to be included within the exported app.

Detecting non connectable networks,
Detection of a known but non connectable networks will not be as instant or as accurate as a known but connectable network. Near network scanning and detection relies on Taskers 'All Checks', this can mean enter/exit triggering on an non connectable network could be slow or even in some cases missed if only within range for a brief period of time. Detection using a known but non connectable network is limited to one per network scan. More than one non connectable networks that appear within the same scan cannot both be acted upon. You should take care not to overlap non connectable networks.

App Creation:

Network Location v4+ now supports App Factory. You can now create an app from this project to install and use across all of your devices. This is useful for people with various devices who wish to automate them all in the same way but do not wish to configure Tasker on each device. To export as an app you will need App Factory installed (please refer to Taskers user guide for more information). You can export the project as an app without the need to add any additional content, however to automate your network locations you must include your own 'mywifi' Tasks within the project while exporting as an app. The project will function as it does within Tasker. To add additional automation at a new network location you must recreate the app with the new 'newmywifi' Task(s) included.

Non Cellular Devices:

Compatibility with non cellular devices, those that do not use a sim card/mobile operator. To support these devices you will need to alter some profile contexts as below.

  • Remove the 'Cell Near' context from the 'Network - Near' Profile.

Note, use of this project on non cellular devices is largely untested.

Download & Support:

SUPPORT
DOWNLOAD

Net_Loc_256x256.png

Known Issues:

'%WiFiLOG' is reset when device is rebooted (Tasker null value issue).

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License