Line 1: |
Line 1: |
− | <pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;">The Wifi/cell tower signal strength (written as [wifi_strength] and [cell_signal_strength]) can be used for example to determine the distance between you and the tower/router (this can vary depending on the thickness of walls and other various factors). | + | <pre style="background-color: #EEEEEE; color: Black; border-radius: 10px; padding: 10px;">The Wifi/Cell tower signal strength (written as [wifi_strength] and [cell_signal_strength]) can be used for example to determine the strength of the signal between your device and the router/tower (this can vary depending on the thickness of walls, the distance to the router/tower and several other various factors). |
| The scale of these values can be confusing : they range from -127 to 0 which might not be obvious on how to use. | | The scale of these values can be confusing : they range from -127 to 0 which might not be obvious on how to use. |
| The better the strength, the | | The better the strength, the |
Line 12: |
Line 12: |
| | | |
| </pre><br> | | </pre><br> |
− | <p style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px; font-family: 'Courier New', monospace;"> | + | <p style="background-color: #1665B0; color: white; border-radius: 10px; padding: 10px; font-family: 'Courier New', monospace; white-space: pre-wrap;">Actions |
− | Actions<br> | + | IF (compare values([wifi_strength] < -80)) |
− | IF (compare values([wifi_strength] < -80))<br> | + | Connect to network (wifi1) |
− | Connect to network (wifi1)<br>
| + | <span style="background-color: green;">Wifi connected (wifi2)</span> |
− | <span style="background-color: green;">Constraint---> Wifi connected (wifi 2)</span><br>
| + | Connect to network (wifi2) |
− | Connect to network (wifi2)<br>
| + | <span style="background-color: green;">Wifi connected (wifi1)</span> |
− | <span style="background-color: green;">Constraint---> Wifi connected (wifi 1)</span><br>
| + | End if |
− | End if<br> | |
| </p><br> | | </p><br> |
| <pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;"> | | <pre style="background-color: green; color: white; border-radius: 10px; padding: 10px;"> |