Giter VIP home page Giter VIP logo

sonoff-diy's Introduction

sonoff-diy

GitHub release (latest SemVer) GitHub All Releases GitHub go.mod Go version GitHub top language GitHub code size in bytes

Sonoff-diy is a command-line tool for controlling Sonoff devices in DIY mode. It allows you to discover devices, print device information, switch device state, set power on state, set sleep timer, print WiFi signal strength, set WiFi SSID and password, unlock OTA flashing, and flash firmware over the air.

The tool is easy to use and can be used from the command line. To get started, simply install the tool and then run the discover command to discover all of your Sonoff devices. Once you have discovered your devices, you can use the other commands to control them.

For example, to switch the state of a device, you would use the switch command. To print the device information, you would use the device-info command. And to set the WiFi SSID and password, you would use the wifi-config command.

The tool is also very flexible and allows you to customize the behavior of each command. For example, you can set the device IP address, port, and device ID. You can also enable debug mode to get more information about the tool's operation.

Overall, sonoff-diy is a powerful and versatile tool for controlling Sonoff devices in DIY mode. It is easy to use and can be customized to meet your specific needs.

Here are some additional benefits of using sonoff-diy:

  • It is free and open source.
  • It is cross-platform and can be used on Windows, macOS, and Linux.
  • It is constantly being updated with new features and bug fixes.

If you are looking for a powerful and versatile tool for controlling Sonoff devices in DIY mode, then sonoff-diy is the perfect choice for you.

$ sonoff-diy --help

NAME:
   sonoff-diy - The tool for work with Sonoff devices (Basic R3/RFR3/Mini) in the DIY MODE

USAGE:
   sonoff-diy [global options] command [command options] [arguments...]

VERSION:
   v1.2.2

COMMANDS:
   discover, d          Discover devices
   device-info, di      Print specified device info
   switch, sw           Switch device state
   power-on-state, pos  Sets power on device state
   sleep-timer, st      Sets sleep timer
   wifi-signal, wfs     Print the WiFi signal strength of the specified device
   wifi-config, wfc     Sets the WiFi SSID and password for specified device
   unlock-ota, uo       Unlocks ability for flash firmware over the air for the specified device
   flash-firmware, ff   Flashing the firmware over the air to the specified device
   help, h              Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --ip value         sets the device ip address (default: "127.0.0.1")
   --port value       sets the device port (default: 8081)
   --device-id value  sets the device id (optional)
   --debug            sets the debug mode on (default: false)
   --help, -h         show help
   --version, -v      print the version

sonoff-diy's People

Contributors

dependabot[bot] avatar fossabot avatar sam-kamerer avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

fossabot

sonoff-diy's Issues

Installation issue

Hello and thank you for the tool. However, for some reason I can't install it.
running command:
go install github.com/sam-kamerer/sonoff-diy@master

leads to this error:
go: github.com/sam-kamerer/sonoff-diy@master: module github.com/sam-kamerer/sonoff-diy@master found (v1.2.3-0.20240103231505-358953555caa), but does not contain package github.com/sam-kamerer/sonoff-diy

[Security] Workflow release.yml is using vulnerable action actions/checkout

The workflow release.yml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.