npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-samsung-airconditioner

v1.4.5

Published

node.js plugin for the Samsung smart samsung-airconditioners

Downloads

39

Readme

#Homebridge-samsung-airconditioner

Samsung Airconditioenr plugin for [Homebridge]

This allows you to control your Samsung Airconditioner with HomeKit and Siri.

THIS SCRIPT FOR NOW WORKS ONLY WITH THE AC WITH THE PORT NUMBER 8888 AND NOT WITH THE PORT 2878

##Installation

Install homebridge using: npm install -g homebridge

Install this plugin using: sudo npm install -g homebridge-samsung-airconditioner

To obtain a token (if the clima is ON, turn OFF it) run in a shell window the file Server8889.py: python Server8889.py

3.1 Open another shell window, copy and past the command: curl -k -H "Content-Type: application/json" -H "DeviceToken: xxxxxxxxxxx" --cert /usr/local/lib/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem --insecure -X POST https://192.168.1.152:8888/devicetoken/request

3.2 In this string change 192.168.1.152 with the ip of your Airconditioner

3.3 Send the command

3.4 Turn On your AC

3.5 In the window where are running the file Server8889.py should be appare the TOKEN, copy and past it in your config.json

Remember to install "Samsung root certificate" in the System

4.1 if you are on the mac double click on the certain

4.2 if you are in Raspberry to add the root certificate this:

sudo mkdir /usr/share/ca-certificates/local

sudo cp /usr/lib/node_modules/homebridge-samsung-airconditioner/ac14k_m.pem /usr/share/ca-certificates/local/

sudo update-ca-certificates (If you are in a new system the cartificate is not valid, because the new system acpet only SHA256 certificate, and the ack_14m.pem is a SHA1 certificate, so, if do you want use this plugin, tell to your PC to use Tls version 1.0 or minor)

Update your configuration file. See config.json.

5.1 Change the ip with the ip of your AC

5.2 Change the token with the token obtain in step 3

5.3 if necessary change the patchCert

5.4 If you obtain an error with this string "Power function failed /bin/sh: jq: not found" install jq with the command brew install jq

If you obtain an Nan error/undefined error see if your AC is connected to the wifi or if there are a problem with certificate.