Modul 98_NSPC - Nintendo Switch Parental Control - alpha Version

Begonnen von KernSani, 04 Januar 2020, 01:46:10

Vorheriges Thema - Nächstes Thema

HeikoE

Hallo KernSani,
ich habe heute Deim Modul gefunden und wollte es direkt mal probieren.
Ich bekomme ein Session Token und es wird zumindest teilweise akzeptiert. Das Reading "account_nick" zeigt zum Beispiel den korrekten Namen.
Ansonsten gibt es aber folgende Meldung:

error  not_found
error_description  HTTP 404 Not Found

Im Log (verbose = 5) findet sich:

2021.09.05 21:19:40 4: [NintendoSwitch] Processing Queue: NSPC_getDevices
2021.09.05 21:19:40 5: [NintendoSwitch] GetDevice - Starting Blocking Call
2021.09.05 21:19:41 5: [NintendoSwitch] GetDevice - received {"type":"https://moon.nintendo.com/errors/v1/400/update_required","status":400,"errorCode":"update_required","title":"UpdateRequiredException","detail":"","instance":"https://api-lp1.pctl.srv.nintendo.net/moon/v1/users/xxxxxxxxxxxxxxxxx/devices"}
2021.09.05 21:19:41 5: [NintendoSwitch] GetDevice - JSON is: $VAR1 = {
          'detail' => '',
          'errorCode' => 'update_required',
          'instance' => 'https://api-lp1.pctl.srv.nintendo.net/moon/v1/users/xxxxxxxxxxxxxxxxx/devices',
          'status' => 400,
          'title' => 'UpdateRequiredException',
          'type' => 'https://moon.nintendo.com/errors/v1/400/update_required'
        };

2021.09.05 21:19:41 4: [NintendoSwitch] Processing Queue: NSPC_getDailySummary
2021.09.05 21:19:41 5: [NintendoSwitch] Get DailySummary - received {"type":"https://moon.nintendo.com/errors/v1/404/not_found","status":404,"errorCode":"not_found","title":"NotFoundException","detail":"HTTP 404 Not Found","instance":"https://api-lp1.pctl.srv.nintendo.net/moon/v1/devices//daily_summaries"}
2021.09.05 21:19:41 5: [NintendoSwitch] Get DailySummary - JSON is: $VAR1 = {
          'detail' => 'HTTP 404 Not Found',
          'errorCode' => 'not_found',
          'instance' => 'https://api-lp1.pctl.srv.nintendo.net/moon/v1/devices//daily_summaries',
          'status' => 404,
          'title' => 'NotFoundException',
          'type' => 'https://moon.nintendo.com/errors/v1/404/not_found'
        };

2021.09.05 21:19:41 4: [NintendoSwitch] Processing Queue: NSPC_getPCSettings
2021.09.05 21:19:41 5: [NintendoSwitch] Get PCSettings - received {"type":"https://moon.nintendo.com/errors/v1/404/not_found","status":404,"errorCode":"not_found","title":"NotFoundException","detail":"HTTP 404 Not Found","instance":"https://api-lp1.pctl.srv.nintendo.net/moon/v1/devices//parental_control_setting"}
2021.09.05 21:19:41 5: [NintendoSwitch] Get PCSettings - JSON is: $VAR1 = {
          'detail' => 'HTTP 404 Not Found',
          'errorCode' => 'not_found',
          'instance' => 'https://api-lp1.pctl.srv.nintendo.net/moon/v1/devices//parental_control_setting',
          'status' => 404,
          'title' => 'NotFoundException',
          'type' => 'https://moon.nintendo.com/errors/v1/404/not_found'
        };

Ein unterschied zu Deiner Erklärung fällt mir auf: Du schreibst
Zitat
mit der rechten Maustaste auf "Diesen Account verwenden" klicken und die Link Adresse kopieren.
Bei mir steht da "Diese Person auswählen". Auf dem Handy wird mit diesem Link die Nintendo App geöffnet.
Gibts noch irgendwas zu wissen?
Viele Grüße,
Heiko

wolfram

Hallo HeikoE,

ich habe genau das gleiche Problem wie Du. Ich bekomme auch ein "Update required".
Hast Du schon eine Lösung dafür gefunden?

Viele Grüße
wolf

masterpete23


KernSani

#18
Hi zusammen,
sorry... bin zur Zeit nicht so aktiv bei FHEM (eigentlich schon, aber mir fehlt die Zeit, hier im Forum zu surfen ;-)). Das "Update required" Problem hatte ich auch, habe ich aber gelöst. Ich nutze die Feiertage mal, die aktualisierte Version hochzuladen.
Grüße,
Oli

Edit: Aktualisierte - bei mir funktionierende Version - hängt am ersten Post
RasPi: RFXTRX, HM, zigbee2mqtt, mySensors, JeeLink, miLight, squeezbox, Alexa, Siri, ...

masterpete23

Danke. In welcher Form muss ich meinen Sessioncode eingeben?
Die URL ist ja ziemlich lang

get Switch sessionCode npf54789453454535838://auth#session_state=8312bdd6534543534574c40c6b60720ea4c624a2b&session_token_code=eyJhbGciOiJIUzI1NiJ9.eyJ534534Tk0a3pDWXNwcEJJbGNJNjFlbjJTckJEck4wZ3BpY0EiLCJleHAiOjE2NDI1ODIzNjIsImlzcyI6Imh0dHBzOi8vYWNjb353543zMjAsMzIxLDMyMiwzMjMsMzI0LDMyNSwzMjYsMzI3LDMyOCwzMjldfQ.Aa4AbpePpPq_bg0VPLj9Kn_oWlGZtlzKl0H2_CXzq_U&state=VVZYaUhBMEx4cmpDOXZaR3pv5345453uWmhN

Henson05

Hallo zusammen,

bei mir erscheint ebenfalls noch der Fehler "not_found" bzw. "HTTP 404 Not Found" wie bereits von anderen beschrieben. Wurde eine neue aktualisierte Version hochgeladen? Ich seehe als FVERSION folgende: 98_NSPC.pm:v0.0.4-s000002/2020-01-04 TESTING

Grüße,

Tom
Hue Bridge / CUL / ZWave / Alexa / Dimplex Wärmepumpe - Modbus TCP / LaCrosse / Sonoff S20 / Sonoff 4CH / HM-SEC-SC-2 / Synology / INSTAR / Shelly PLUG S / Shelly 2.5

caldir65

Moin,

wird an diesem Modul noch gearbeitet? Bei mir funktioniert es jedenfalls nach einer crashbedingten Reinstallation nicht mehr - ich kann mir zwar über "getURL" noch einen Access-Token holen, jedoch kommt nach Einkopieren desselben und einem "Query" danach nur noch ein "HTTP 404 Not Found"

Im Log bekomme ich2022.09.21 17:43:52.070 4: [switch] Processing Queue: NSPC_getBearerToken
2022.09.21 17:43:52.070 5: [switch] GetBearer - Session Token is <token>
2022.09.21 17:43:52.620 4: [switch] Processing Queue: NSPC_getDevices
2022.09.21 17:43:52.621 5: [switch] GetDevice - Starting Blocking Call
2022.09.21 17:43:54.431 5: [switch] GetDevice - received {"type":"https://moon.nintendo.com/errors/v1/400/update_required","status":400,"errorCode":"update_required","title":"UpdateRequiredException","detail":"","instance":"https://api-lp1.pctl.srv.nintendo.net/moon/v1/users/a1c195e685647f3f/devices/"}
2022.09.21 17:43:54.432 5: [switch] GetDevice - JSON is: {
  'title' => 'UpdateRequiredException',
  'detail' => '',
  'status' => 400,
  'errorCode' => 'update_required',
  'instance' => 'https://api-lp1.pctl.srv.nintendo.net/moon/v1/users/a1c195e685647f3f/devices/',
  'type' => 'https://moon.nintendo.com/errors/v1/400/update_required'
}

2022.09.21 17:43:54.442 4: [switch] Processing Queue: NSPC_getDailySummary
2022.09.21 17:43:54.724 5: [switch] Get DailySummary - received {"type":"https://moon.nintendo.com/errors/v1/404/not_found","status":404,"errorCode":"not_found","title":"NotFoundException","detail":"HTTP 404 Not Found","instance":"https://api-lp1.pctl.srv.nintendo.net/moon/v1/devices//daily_summaries"}
2022.09.21 17:43:54.725 5: [switch] Get DailySummary - JSON is: {
  'type' => 'https://moon.nintendo.com/errors/v1/404/not_found',
  'instance' => 'https://api-lp1.pctl.srv.nintendo.net/moon/v1/devices//daily_summaries',
  'title' => 'NotFoundException',
  'detail' => 'HTTP 404 Not Found',
  'errorCode' => 'not_found',
  'status' => 404
}

2022.09.21 17:43:54.734 4: [switch] Processing Queue: NSPC_getPCSettings
2022.09.21 17:43:55.018 5: [switch] Get PCSettings - received {"type":"https://moon.nintendo.com/errors/v1/404/not_found","status":404,"errorCode":"not_found","title":"NotFoundException","detail":"HTTP 404 Not Found","instance":"https://api-lp1.pctl.srv.nintendo.net/moon/v1/devices//parental_control_setting"}
2022.09.21 17:43:55.019 5: [switch] Get PCSettings - JSON is: {
  'status' => 404,
  'errorCode' => 'not_found',
  'title' => 'NotFoundException',
  'detail' => 'HTTP 404 Not Found',
  'type' => 'https://moon.nintendo.com/errors/v1/404/not_found',
  'instance' => 'https://api-lp1.pctl.srv.nintendo.net/moon/v1/devices//parental_control_setting'
}


Gruß, Christoph
Alte Techniker-Regel: "kaum macht man es richtig, funktioniert es auch"
------
Dell Wyse5070 ThinClient 16GBRam, 64GB SSD, Lubuntu 22.04LTS, fhem (aktuell), debmatic, Homematic-Devs, ConBee II und deConz, viele Shellys, Rademacher, NextCloud-Anbindung, FullyKioskBrowser+FUIP uvm.

masterpete23