EnglishFrenchSpanish

OnWorks favicon

uhome - Online in the Cloud

Run uhome in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command uhome that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


uhome - tests whether or not you're home, based on device presence

SYNOPSIS


uhome [-f|--file FILE] [-q|--quiet] [-t|--tries TRIES]

OPTIONS


-f, --file FILE filename containing list of IP addresses to test, one per line,
default is ~/.uhome/addresses

-q, --quiet Suppress all output

-t, --tries TRIES Number of times to ping each IP address, default is 3

DESCRIPTION


This utility will iterate over a list of IP addresses in FILE (default
~/.uhome/addresses), and ping(8) each one of them up to TRIES times. If any one of those
responds successfully, then you're deemed "home" and uhome exits successfully, with 0.
Otherwise, you must not be home, and uhome exits with 1.

EXAMPLES


Look up your phone's IP address, either on your router, or in your Phone -> Settings ->
About Phone -> Status -> IP Address.

Add one or more of these to ~/.uhome/addresses.

Run:

$ uhome

uhome → Yep!

$ uhome

uhome → Nope!

Couple this with some logic:

$ uhome && nest-home || nest-away

Put this in a cronjob:

*/5 * * * * uhome && nest-home || nest-away

Use uhome online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

Linux commands

  • 1
    a2j_control
    a2j_control
    a2j_control - utility to control
    a2jmidid daemon ...
    Run a2j_control
  • 2
    a2mp3
    a2mp3
    a2mp3 - program to optimize your music
    for your mp3 player ...
    Run a2mp3
  • 3
    create_common
    create_common
    ctn_manpage - Generic CTN manual page
    DESCRIPTION: This is a generic manual
    package for a CTN program. All CTN
    programs will give their brief usage
    synopsis wh...
    Run create_common
  • 4
    create_compressed_fs
    create_compressed_fs
    create_compressed_fs,
    extract_compressed_fs - convert and
    extract a filesystem to/from a cloop
    volume ...
    Run create_compressed_fs
  • 5
    gapi2-codegen
    gapi2-codegen
    undocumented - No manpage for this
    program. DESCRIPTION: This program does
    not have a manpage. Run this command
    with the help switch to see what it
    does. For f...
    Run gapi2-codegen
  • 6
    gapi2-fixup
    gapi2-fixup
    undocumented - No manpage for this
    program. DESCRIPTION: This program does
    not have a manpage. Run this command
    with the help switch to see what it
    does. For f...
    Run gapi2-fixup
  • More »

Ad