Coder Social home page Coder Social logo

iamsolankiamit / balena-locating Goto Github PK

View Code? Open in Web Editor NEW

This project forked from phil-d-wilson/balena-locating

0.0 1.0 0.0 265 KB

Never lose something important to you again by using Bluetooth Low Energy (BLE) beacons and Raspberry Pi sensors to track your stuff.

HTML 34.91% C# 42.11% CSS 9.70% JavaScript 13.28%

balena-locating's Introduction

balenaLocating

Use Raspberry Pi's and Bluetooth beacons to ensure you never lose your important stuff again. It gives you a web dashboard, viewable from anywhere, that shows you where all your stuff is:

dashboard

If you want to read the detailed blogpost for this project, follow this link.

Contents

Introduction

This project turns devices into Bluetooth Low Energy (BLE) sensors. By naming those devices to the location you put them in (e.g. house, office, garage) any BLE beacons detected can be related to the location. So attach BLE beacon tags to your stuff, and use this project to locate it!

Hardware required

  • Raspberry Pi (3B+ or 4) or a balenaFin
  • A 4GB or greater micro SD Card (we always recommend 16Gb SanDisk Extreme Pro SD cards)
  • Power supply
  • Some BLE beacon tags or a smartphone app to make a virtual beacon for testing.

Software Required

  • Software to flash an SD card (we recommend balenaEtcher)
  • A free tier balenaCloud account to setup and manage your fleet of Raspberry Pi sensors
  • A free tier InfluxDB Cloud account

Setup the Application

You can deploy this project to a new balenaCloud application in one click using the button below:



Or, you can create an application in your balenaCloud dashboard and balena push this code to it the traditional way.

Configure

Now you need to update (or create if you used the balena push approach) the following environment variables:

  • INFLUX_BUCKET - this is a bucket created in InfluxDB cloud
  • INFLUX_HOST - this is the host URL from influxDB cloud,
  • INFLUX_KEY - this is a key you need to create in influxDB cloud.
  • INFLUX_ORG - this is the org ID from, yep you guessed it, influxDB cloud

You can also name your tags/beacons by setting some more environment variables in balenaCloud. Each one must start with the name ‘TAG_’ followed by the name of the thing: TAG_Wallet The value is the ID of the tag.

Setting an enviroment variable called DEBUG to true if you need more output from the services, mainly to find out why/if a tag is being found and ignored, or just not found at all.

The variable RSSI_THRESHOLD can be set to a number between -100 and 0. The default is -75. It’s the threshold for the strength of signal received from a tag, filtering out weak signals. What this allows you to do is trim each sensor, so that their coverage plots don’t overlap.

Lastly you can set SEP_PERIOD to the number of seconds between reporting each tag beacon.

Again, if none of this make sense - check out the blog post with the full tutorial

balena-locating's People

Contributors

phil-d-wilson avatar rahul-thakoor avatar

Watchers

 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.