Skip to content

VityaSchel/samsung-pinger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Samsung Pinger

Samsung Pinger is a MacOS widget that lets you quickly ring your Samsung device.

Widget Gallery Screenshot

Simply open notification center, click on the widget and your Samsung phone will ring even if it's in silent mode for one minute!

Download

🇷🇺 Fully localized both in Russian and English languages.

Table of contents:

Setup

you absolutely can do this! I believe in you! it takes less than a minute :)

Screnshot

  1. Download latest release from downloads page and install it
  2. You must obtain 2 tokens from cookies and a persistant "device id" that does not change. Open https://smartthingsfind.samsung.com/
  3. Login into your account if needed. Make sure you're at https://smartthingsfind.samsung.com/. Open devtools it with ⌘+⌥+I
  4. Go to "Application" tab Screenshot
  5. Find "Cookies" -> "https://smartthingsfind.samsung.com" at sidebar Screenshot
  6. In long list find these two cookies: "JSESSIONID", "WMONID". Copy their values to corresponding fields in App's settings Screenshot Screenshot
  7. Reload the page WITHOUT closing devtools
  8. Go to "Network" tab in devtools, type "getDeviceList" in Filter field, click on the last (and usually the only) item in list
  9. Go to "Response" tab in the opened submenu Screenshot
  10. Here is a list of all your devices in JSON format. Find the right one (that you want to ping) in this list. Near it's name you will find (modelName) — this is called a "property" in JSON format. Locate nearest dvceID property in this brackets as shown on screenshot and fill it in the corresponding field. Screenshot

Automatically obtain WMONID and JSESSIONID

Do you know JavaScript? Use my node.js script to obtain WMONID and JSESSIONID automatically

import chrome from 'chrome-cookies-secure'

chrome.getCookies('https://smartthingsfind.samsung.com/', function(err, cookies) {
  console.log('WMONID=', cookies['WMONID'])
  console.log('JSESSIONID=', cookies['JSESSIONID'])
})

Simply install chrome-cookies-secure, paste the script above into index.js file, run it with node index.js and allow it to use macOS Keychain

Under the hood

Read my notes on reverse-engineering smartthingsfind website.

Hire me!

I'm available for hire if you can provide me with a work visa in Canada. Check out my resume: cv.hloth.dev.