GithubHelp home page GithubHelp logo

domru's Introduction


GitHub license GitHub actions status

ad/domru is inspired by alexmorbo/domru, web server what allows you to control your domofon.

๐Ÿš€ย  Installation and running

go get -u github.com/ad/domru
cp example.accounts.json accounts.json
domru -login=1234567890 -operator=2 -token=... -refresh=... -port=18000

๐Ÿš€ย  Or Docker

cp example.accounts.json accounts.json
docker build -t ad/domru:latest .

docker run --name domru --rm -p 8080:18000 -e DOMRU_PORT=18000 -v $(pwd)/accounts.json:/share/domofon/account.json ad/domru:latest
open http://localhost:8080/login

enter phone number in format 79xxxxxxxxx
choose your address
enter sms code, you will see received token and refresh token

restart docker container

docker run --name domru --rm -p 8080:18000 -e DOMRU_PORT=18000 -v $(pwd)/accounts.json:/share/domofon/account.json ad/domru:latest

now go to http://localhost:8080

๐Ÿš€ย  Or Docker Compose

docker-compose up

the following instructions are the same

And open in browser http://localhost:8080/snapshot

Docker image

You can find docker image in packages section of this github repository or pull it using docker pull ghcr.io/ad/domru:latest

Endpoints and methods

Endpoint Method Description
/ GET Main interface
/login GET/POST Auth interface
/login/address POST Get address by phone and index
/sms POST Request sms by code
/cameras GET Get list of camera
/door GET/POST Open door by placeID and accessControlID
/events GET Get list of events
/events/last GET Get last event
/finances GET Get finance info
/operators GET Get operators list
/places GET Get places list
/snapshot GET Get snapshot by placeID and accessControlID
/stream GET Get link to stream by cameraID

๐Ÿคย  Found a bug? Missing a specific feature?

Feel free to file a new issue with a respective title and description on the the ad/domru repository. If you already found a solution to your problem, we would love to review your pull request!

โœ…ย  Requirements

Requires a Go version higher or equal to 1.11.

๐Ÿ“˜ย  License

Released under the terms of the MIT License.

domru's People

Contributors

ad avatar moleus avatar dependabot[bot] avatar

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.