Git Product home page Git Product logo

bl10server's Introduction

README

bl10server is a very application that makes it possible to lock/unlock and track shared-bicycles with a bl10 lock easily and reliably. This server can easily be integrated in your own solution, communicaton with this server is via gRPC.

How to install?

  1. Make sure that you have a system connected to the internet with a working golang compiler installed.
  2. clone this repo in "~/go/src"
  3. Run "go install"
  4. Go to "~/go/bin" and run ./bl10server
  5. The server is now running with a open socket on port 9020, and can be reached by the lock via :9020 or you can setup a domain that is referring to the ip.

How to configure?

  1. Make sure that your lock is fully charged.
  2. Send a STATUS# sms to the phones lock, if everythinkg works fine, you should get a reply after a few seconds.
  3. Setup the server with the following string: SERVER,0,,9020,0,#
  4. OK should be replied by the lock.
  5. Your lock will now be connected to the server.

How to use it?

  1. Make sure grpcurl is installed. https://github.com/fullstorydev/grpcurl
  2. Addapt grpcurl_example.sh to use the IMEI number of your lock.
  3. Run the grpcurl_example.sh script.
  4. Run receive_stream_example.sh in another screen to see what data the lock is sending to the server. When you close the lock for example an update will be send over the stream and after two minutes the coordinates of the lock will be send.

bl10server's People

Contributors

bartwr avatar sven4all 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.