Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
find-apple-device
Advanced tools
Readme
Apple provides some really excellent find my phone functions using it's iCloud website. I wanted to use this programmibly so I could track my phone without consuming a lot of additional battery life.
I also wanted a way to send very urgent alerts, for example "Oh no, the house is burning down!" so it will sound an alert even if my phone is on silent.
Before playing with this module, I highly recommend that you activate 2-factor authentication incase you accidentally share your credentials with the world. It won't stop somebody from locking your phone, but it will stop them from doing other nasty stuff or stealing your photos.
There is already another find-my-iphone node module available, but I felt it was a little bit rough for my needs, so I decided to code up this one.
npm install --save find-apple-device
You can create the instance using the following
var ICloud = require('../index');
var email = "you@example.com";
var password = "PASSWORD_GOES_HERE!";
var iCloud = new ICloud(email, password);
iCloud.getDevices(function(err, devices) {
if (err) return console.error('Error',err);
if (devices.length === 0) return console.log("No devices found!");
console.log(devices);
});
All methods return JSON, please see the examples linked above for more info on how to call each method.
iCloud.getDevices(function(err, devices) {
if (err) return console.error('Error',err);
if (devices.length === 0) return console.log("No devices found!");
console.log(devices[0]);
});
Gives this json object (some data has been faked for privacy)
{
"id": "0c0fc335a3b69c8fd42fdb3a3+6ee64f9da0c0fc335+a3b69c8fd42fdb3a36ea61475e64f9da",
"name": "My iPhone",
"deviceModel": "iphone6splus-abcde-efghi",
"modelDisplayName": "iPhone",
"deviceDisplayName": "iPhone 6s Plus",
"batteryLevel": "0.67",
"isLocating": true,
"lostModeCapable": true,
"location":
{
"timeStamp": 1465896490086,
"isOld": false,
"isInaccurate": false,
"locationFinished": false,
"positionType": "Cell",
"latitude": "12.123456938235353",
"horizontalAccuracy": 1414,
"locationType": null,
"longitude": "22.125933956343"
}
}
Feel free to submit any pull requests or add functionality, I'm usually pretty responsive.
If you like the module, please consider donating some bitcoin or litecoin.
Bitcoin
LiteCoin
FAQs
Unofficial API to use 'Find my Phone' functionality within Node.js. Supports alerts, device & location info, locking phone and remote erase.
The npm package find-apple-device receives a total of 2 weekly downloads. As such, find-apple-device popularity was classified as not popular.
We found that find-apple-device demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.