Skip to content

machinefi/metapebble-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 

Repository files navigation

Meta Pebble-Testing

Network: IoTeX Mainnet

1. Download/Install

2. Create Pebble

  • If you initialize the APP for the first time, Meta Pebble will automatically create a new IMEI and SN for you.
  • The IMEI and SN is tied to the mobile, never changed after created.

3. Connect Wallet

  • Click 'Register Device' to connect to your wallet (if you use Android for testing and cannot jump to ioPay, you need to go to the settings center to cancel the original 'default' wallet), currently we support ioPay and MetaMask..


4. Active Device

  • Click the 'Register', and pebble will jump to your wallet to execute the relevant contract.

  • After completing the register action, the pebble app will query the status of device, which may be slow.

5. Upload Location Data to Server

  • Allow Meta Pebble to use your location data
  • Turn on the button in the home screen, the GPS data will be uploaded to the server repeatedly


6. Check GPS

How Developers Query MetaPebble Service?

1. Permission Settings (WIP)

  • Developers will register with MetaPebble service and get an app token.
  • Every query needs an app token to identify the app.
  • An app can only query data under users' permission.
  • User will give permission on a permission setting website on MetaPebble.

2. Create App

  1. Go to https://oauth.metapebble.app/
  2. Create app via input name and logo url
  3. Get the app secret image

3. Query data via app secret

  1. Go to https://graphiql-online.com and using graphql api endpoint(https://dev.metapebble.app/v1/graphql)
  2. Use the app secret to query data (authorization: Bearer ‘secret’) image

Example query

query {
  oauth_device(limit: 20, order_by:{created_at: desc}){
    id
    owner
    deviceRecord(limit: 20, order_by:{created_at: desc}){
      latitude
      longitude
    }
  }
}

How to check your devices location on the map?

1.Connect wallet which register a metapebble here: https://example.metapebble.app/
image

2.Click Authorize, select Metapebble as provider.
image image

3.Check the uploaded data from the authorized app or your wallet on the map.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •