Jump to content

oauth2 token for PG3 version


Bumbershoot

Recommended Posts

Posted

Hi @Jimbo.  Upon installing and starting the PG3 version of this nodeserver, there was nothing to prompt me to get an authorization token as there was in the PG2 version.  Unfortunately, the token I got for the PG2 version doesn't appear to be valid for the PG3 version.  Maybe I'm missing something, but it's not entirely apparent what that would be.

Thanks!

Posted
1 hour ago, Jimbo said:

That's strange, it worked for me and I tested that part a lot.  Can you PM me the log file?

You are living on the edge moving to PG3 before the NS release announcement :)

 

 

PM sent.  I wanna support the developers, and I don't mind a few cuts and bruises.

Posted

Thanks, as long as that's understood :) 

Thanks for the log, there is a bug due to a feature added that was not yet supported on PG, and now that it is I see it wasn't implemented correctly.  Please delete the NS and I'll try to get a fix out today.

 

  • Like 1
Posted (edited)
15 minutes ago, Jimbo said:

Actually I was mistaken.  Looks like your PG3 version is 3.0.31 please delete the NS and upgrade PG3 to to 3.0.36 and try again.

 

Hmmm....  Already on 3.0.36.


[admin@polisy ~]$ sudo pkg info pg3
pg3-3.0.36
Name           : pg3
Version        : 3.0.36
Installed on   : Fri Dec 31 18:26:57 2021 PST
Origin         : misc/pg3
Architecture   : FreeBSD:13:*
Prefix         : /usr/local
Categories     : misc
Licenses       : MIT
Maintainer     : andrey@xkinghome.net
WWW            : https://github.com/UniversalDevicesInc/polyglot-v2
Comment        : Polyglot v3 for UDI Polisy
Annotations    :
	repo_type      : binary
	repository     : udi
Flat size      : 59.6MiB
Description    :
Polyglot v2 server for Universal Devices ISY994 version 5.x.x

WWW: https://github.com/UniversalDevicesInc/polyglot-v2

 

Edited by Bumbershoot
Posted

Okay, I restarted PG3 and reinstalled the nodeserver, but something's goofy here.  The log says it's 3.0.31

2022-01-10 14:20:09,409 MainThread udi_interface      INFO     __init__:<module>: UDI Python Interface for Polyglot version 3 3.0.31 Starting...

and the UI says it 3.0.36.

I'm going to reboot my Polisy.

Screen Shot 2022-01-10 at 2.22.28 PM.png

Posted
Hi @Jimbo, I'm seeing an issue with temperature with tag type 13.  Reporting actual Celsius when it should be in Fahrenheit.  See screenshots...
 
1109043864_ScreenShot2022-01-10at3_22_07PM.png.81981d7d2c1b7cdd32a31689706e03a5.png
1533350487_ScreenShot2022-01-10at3_21_49PM.thumb.png.933a954d1ff8eb1f05ef1f3c1c730ccb.png
Are you on ISY994 or ISY on Polisy? I'll look at mine when I get home tonight, I'm still on ISY994

Sent from my Pixel 6 Pro using Tapatalk

Posted
5 minutes ago, Jimbo said:

Are you on ISY994 or ISY on Polisy? I'll look at mine when I get home tonight, I'm still on ISY994

Sent from my Pixel 6 Pro using Tapatalk
 

This is PG3 with ISY on the Polisy, v 5.30.  On polyglot v2 on the ISY994 the value is correct.

  • Like 1
Posted
49 minutes ago, Jimbo said:

Are you on ISY994 or ISY on Polisy? I'll look at mine when I get home tonight, I'm still on ISY994

Hi @Jimbo, you can disregard the temperature issue.  It has corrected itself!

Posted

@JimboHi I tried adding wireless tags to pg3 but I can't get past the error. 

ERROR: Unable to authorize, no client id returned in Node Server Data. Check Log for ERROR

I finally did the reboot as suggested above but still can't get past the error and no nodes get loaded. I reused the code from the PG2 install. 

 

Thanks Gary

 

Posted
@JimboHi I tried adding wireless tags to pg3 but I can't get past the error. 
ERROR: Unable to authorize, no client id returned in Node Server Data. Check Log for ERROR
I finally did the reboot as suggested above but still can't get past the error and no nodes get loaded. I reused the code from the PG2 install. 
 
Thanks Gary
 
I don't think you can reuse the code. Delete it and restart and reauthorize.

Sent from my Pixel 6 Pro using Tapatalk

Posted

I can't get back on PG2 either. Saw this error on their website. Maybe something wrong on their end. 

Got code 4c55714a-6e06-408f-af11-14b6b1b5d86f, asking for access token
ERROR: Unable to get access token from code, see log

I'll give it try tomorrow and send the logs if it still doesn't work. Nothing pressing.

Thanks Gary

Posted

Comparing logs from PG2 and PG3 is looks like maybe PG3 doesn't have a gateway address for the wireless tag NS. Can't bring up polisy settings in PG3 to check.

Posted
2 hours ago, garybixler said:

Comparing logs from PG2 and PG3 is looks like maybe PG3 doesn't have a gateway address for the wireless tag NS. Can't bring up polisy settings in PG3 to check.

From the log you sent, the issue is caused by a bug in the NS related to updates to latest PG3 which I thought was working in the NS but I'll have to take a look later.
 

2022-01-11 06:51:44,388 Thread-3   udi_interface      ERROR    udi_interface:write: handler_nsdata() missing 1 required positional argument: 'data'

 

  • Thanks 1
Guest
This topic is now closed to further replies.

×
×
  • Create New...