GithubHelp home page GithubHelp logo

Comments (8)

johnwalicki avatar johnwalicki commented on September 26, 2024

I found a simple API that will give you Lat,Lng
https://ipstack.com/documentation
I signed up for a free apikey that allows for 10K msgs / month
The API was simple to call and it returns a json object that includes Lat,Lng
http://api.ipstack.com/check?access_key=

from openeew-sensor.

johnwalicki avatar johnwalicki commented on September 26, 2024

I envision, at every device powerup, it calls this location API and figures out where it is.
Sends a "Device Activated" message to some restful "Onboarding" interface in the Cloud.
The message includes WiFi, Ethernet mac addresses and Lat,Lng
The response from our centralized "Onboarding" API would include the MQTT host it should connect to.
"Oh, your device is in [Nepal,New Zealand,Mexico,Carribean,etc] return a Watson IoT Platform MQTT instance close to me"

from openeew-sensor.

andygrillo avatar andygrillo commented on September 26, 2024

from openeew-sensor.

johnwalicki avatar johnwalicki commented on September 26, 2024

Agree that it might not be 100% accurate but it gets really close. In my case, it put the map pin directly in front of my house.

from openeew-sensor.

johnwalicki avatar johnwalicki commented on September 26, 2024

A mobile application might need to assist in more accurate geolocation. In the OpenEEW #apps slack channel, we've been discussing using Flutter / SmartConfig / Device registration panels that can send email and location to the cloud so that we can link the device WiFi mac address to an owner / place.

from openeew-sensor.

johnwalicki avatar johnwalicki commented on September 26, 2024

The mobile OpenEEW Provisioning app sends the smartphone GPS coords as part of the user details registration.
This information is stored in the Cloudant DB.
See https://github.com/openeew/openeew-provisioner/blob/main/PROVISIONING.md

The possible risk is that devices get activated somewhere NOT where they will be positioned.
@andygrillo is that sufficient?

from openeew-sensor.

andygrillo avatar andygrillo commented on September 26, 2024

from openeew-sensor.

johnwalicki avatar johnwalicki commented on September 26, 2024

Thinking through the wifi set-up, the device might be activated, using the Mobile app, on one network, that location would be written to Cloudant db. Then, when the device moves, the new wifi network said/password will likely be different. The mobile app would be used, call SmartConfig and also adjust/overwrite the device location in the Cloudant db.

Closing issue

from openeew-sensor.

Related Issues (20)

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.