You can add presence indication to your website, i.e. it tells people whether your phone is on or not. This works for any phone that can check mail on a automatically.
Procedure:
- Set up a mail server (
apt-get install solid-pop3d
) - Create a user on the system and set up your phone to access that mailbox
- Have your website poll a file that the mail server will touch (/var/lib/solid-pop3d/bulletins/)
Example:
https://phor.net/personal
Notes:
-
Make sure your filesystem supports atime for /var
-
update-rc.d solid-pop3d defaults
-
Sample code:
$stat = stat('/var/lib/solid-pop3d/bulletins/'); if (time() - $stat[8] > 20*60) echo 'My iPhone is off (it was last on '.reltime($stat[8]).')'; else echo 'My iPhone is currently on';
▧
Comments
There are no comments yet.
Please discuss this topic anywhere and let me know any great comments or media coverage I should link here.