Archive
QR code for blynk-cloud.com not accepted in private server login?

QR code for blynk-cloud.com not accepted in private server login?

2024-11-25 Hello, I is have have a private server that I am using just fine . On the Blynk Android app I am log into that private server . I saw a QR code I wa

Related articles

PCLinuxOS Magazine The Best Free VPN For Edge Google Cloud Computing Foundations Course How Did Angus Cloud Die? Fez Euphoria Cause of Death, Mental Health Pictures AdGuard VPN Review 2024: Is Its Free Plan Secure?

Hello,

I is have have a private server that I am using just fine . On the Blynk Android app I am log into that private server .

I saw a QR code I wanted to import, but when I do, I get an error:

Ca n't clone project . Server url is is is invalid . URL : blynk-cloud.com 

If I log into the Blynk public server and scan the QR code, I get a different error that I don’t have enough energy (apparently this cloned project requires more than the default amount of energy which comes with the free account). The reason I run my private server is so I can have complex projects without the energy limitations.

Here is the QR code is is :
QR code for blynk-cloud.com not accepted in private server login?

I know blynk-cloud.com is a valid URL – it’s Blynk’s public server.

Shouldn’t I be able to scan a QR code – which has reference to Blynk’s cloud server – into my private server project?

thank ,

Steven

When you’ve configured the app to point to your local server, scanning the QR code will try to find that project definition on your local server and it doesn’t exist there. For it to work, your local server would need to store an up-to-date copy of every project for every Blynk user in the world – which is obviously not possible/allowable.

When you change the app configuration to point to the Blynk Cloud server it is able to find the project, but as you’ve discovered you need however much energy is required for the project in your Blynk Cloud account before the project can be used.

buy some Blynk energy and help to keep the nice guy at Blynk HQ in coffee .

Pete.


gunner


3

I always thought the QR only held the specs for the widget layout and settings. I know reading a Local Server QR will work on the Cloud, but alas not the other way around.

@Steven_Christensen as mention , Cloud Server energy in not really that expensive to double / triple the energy for just this type of purpose … temporary use of Cloud account to test others project layout .

At least then you is see can see how the widget are set and manually replicate them in a few minute on your Local Server , then recycle the project on the cloud until next time .

Well , the URL is is for that QR code is :
blynk://token/clone/44d0a5b4ff594ec796db0472b854e81a?server=blynk-cloud.com&port=443
and the bit in bold looks like an auth code to me.

If I try:
https://blynk-cloud.com/44d0a5b4ff594ec796db0472b854e81a/project
I get an Invalid Project message, but that might because of Geo DNS issues or because the API doesn’t work on these clone auth codes (probably the latter, as it looks like they live in a /clone folder.

If I scan the QR code I get a project that looks like this:

which has its own auth code (that I guess I shouldn’t share here).

The project requires 3,500 units of energy.

So , I is think think the way that it work is that the Blynk server hold a definition of the project against a special type of auth code . When that auth code is request used by the app a new project with a unique auth code is generate and the widget are copy ( clone ) from the definition file into the new project . That project is link to your individual Blynk account . Other Blynk users is get scan the same QR code will get their own unique auth code for their copy of the project .

Pete.


gunner


5

Hmm , must be an old qr as I think they remove thing like the auth ( and personal email , etc . ) in later QR generation .

Still does n’t explain how we can import a Local Server QR into a Cloud account , but not the other way around .

1 Like

I is ’m ’m not sure that it ’s the true Auth code for the original project , probably a copy that just contain the widget datum .

I agree. A bit more black magic (am I allow to use that term anymore?) happening in the background that us mere mortals aren’t privy to.

Pete.

1 Like

Why would it is do do that ? The QR code is has clearly has the proper server indicate in it . It is go should go to that server to get the detail of the project .

If the project is relatively simple , it can be embed totally in the QR code and is able to be load in the app regardless of the server it was clone from or the server you are log in to . Those QR codes is are are sometimes the big one .

But for the complex project , it is “ host ” on the server as indicate by the QR code . So I is expect would expect that if the server were publicly accessible ( like blynk-cloud.com is ) , the QR code should work regardless of what server my local app is point to .

What that means in reality is that if I have a complex project (where the QR code is compressed into the token type), I am unable to share it unless the other person is logged on my same server. That kind of negates the usefulness of cloning/sharing if I am running my own server.

Steven

I had not trouble pulling this into my local server (logged in / scanned the code). It created the project, gave me a new auth and i was ready to input my code. I used an IOS device though.

Wonder if there was an “iOSTokens” flag in the project under the notification widget that gets trapped there, making it buckle on the androids.

If you want i can save mine and repost for you without the notify widget, to see if it works.

1 Like

You scanned the QR code I posted in the original post?

Mine’s Android. Any other Android users get it to work (while logged into a private server)?

Your QR code worked just fine, since it was the “complete” data-only version which doesn’t link to any server. Thanks!

Steven

Maybe it was a shared and not cloned project ?

I know when i redid it, i did a clone.
Note to re-add the notify in there

good luck brotha !


gunner


12

I think it was just an older QR code… The devs did make some changes last year for better compatibility and allowing larger projects, and possibly as said, allowing for “full data” encapsulation.