reini1305 / qrgenerator

Repository for the Pebble smartwach app "QR Generator"
23 stars 11 forks source link

QR code not showing up on pebble time steel with Gadgetbridge. #3

Closed john453 closed 8 years ago

john453 commented 8 years ago

Hi there,

I am curious as to how this app works.

The problem i am having is that once i configure the QR details needed, it does not show the actual QR on the pebble but shows a black white screens instead, although it scrolls part of the details i had entered in configuration screen below the 'QR Generator' name and icon on the pebble menu where all the installed app on the pebble are.

Thanks :smile:

reini1305 commented 8 years ago

Hi! QR Generator does not need internet connection, however, the code is created by JS on the phone. I have never used GadgetBridge so I can't answer your question. Can you attach a picture of the "black and white screens" of the watch?

john453 commented 8 years ago

screen-1

screen-1 is how it shows up in the pebble installed app menu

john453 commented 8 years ago

screen-2

screen-2 is how it shows up in when i click on the app ie QR Generator

note that screen-2 is how it shows up but without the pebble black boarders.

reini1305 commented 8 years ago

It seems like the watch is only receiving the description, but not the QR code itself. Does GadgetBridge allow to capture some logs? My javascript code outputs a few debug messages that can be intercepted using the original Pebble app.

john453 commented 8 years ago

i believe you can capture logs so will try and post that.

However, just for comparison - the QR from this app shows up on my pebble - https://apps.getpebble.com/en_US/application/5455a2d633c8649b4000002b

john453 commented 8 years ago

heres a pic from the same pebble with the Dunkin Gift Card Keeper QR code showing up okay. dunkin gift card keeper

reini1305 commented 8 years ago

This app might be calculating the QR code directly on the watch. Can't say without access to the source code.

john453 commented 8 years ago

yes i believe that app is indeed calculating the QR code on the pebble as you can change the 4x4 16 digit code and this changes the QR code on the fly.

reini1305 commented 8 years ago

I'm not planning on changing the working principle QR Generator anytime soon (however I would approach it differently when I would start now). Let's see what your logs can tell us about this issue.

john453 commented 8 years ago

That ok then, as if the Dunkin Gift Card Keeper app calculates the QR Code on the pebble, that means your app uses the default pebble app to do the same, so if it's not working for me ie someone who doesnt use the default pebble app, then the problem is with how Gadgetbridge handles the same.

Thanks for comments & help though :smile:

john453 commented 8 years ago

gadgetbridge.log.txt

Attached is the log file you requested.

I believe that the problem might be on this line in the log:-

18:28:51.110 [JavaBridge] WARN n.f.g.u.GB - Discarded key qrcode, not found in the local configuration and is not an integer key.

reini1305 commented 8 years ago

Strange one. I checked, and there is nothing special with the key qrcode. I guess it won't work with GadgetBridge then. But thanks for checking and being so cooperative!

john453 commented 8 years ago

thanks too, maybe the Gadgetbridge guys can figure it out :+1:

john453 commented 8 years ago

just to let you know, it was a bug within Gadgetbridge (brought to the fore by QR Generator) and it has now been fixed, so this issue can be closed.

Thanks for your assists :smile:

reini1305 commented 8 years ago

Nice!