Comments (8)
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.
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.
from openeew-sensor.
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.
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.
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.
from openeew-sensor.
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)
- add certificates for secure TLS/SSL connection with MQTT broker HOT 1
- Add usb-C power and programming funcionallity
- Create final Kicad schematic for V1 HOT 1
- Create Kicad layout V1 design based on schematic HOT 1
- Create BOM V1 based on Kicad schematic
- Add 'esp-touch' wifi provisioning HOT 3
- Select 31.25hz as default sample rate for accelerometer HOT 3
- Add OTA feature to the firmware HOT 4
- Create getting started booklet
- Program RGB Leds for debugging HOT 3
- resync time on long running sensors HOT 2
- Listen on a MQTT topic ForceFirmwareCheck HOT 2
- Heartbeat MQTT message HOT 3
- Document the requirements to view/work on the schematic and layout (Kicad version and respective libs) HOT 4
- Create firmware variant for standard MQTT broker HOT 2
- Accelerometer data to Cloud - Continuous Send vs STA/LTA HOT 13
- Stops running after reprogramming HOT 5
- Doesn't work with all ethernet routers HOT 7
- Create simple board on JLCPCB/PCBWay with ESP32+ADXL345+Neopixel
- broken URL in readme HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openeew-sensor.