Withings Modul

Moin,

habe gerade frisch das Update gemacht und dann auf UpdateData gedrückt =>

image

Gruß Heiko

Hallo
Das ist sehr ausergewoehnlich.
NaN heisst „Not a Number“ Irgendein Wert von Withings ist keine Zahl und auch kein String :unamused:
Hab mal etwas geaendert und im Debug von der Instanz sollte in so einem Fall ausgeben
was das verusacht hat .
SetValueToVariable[2841] | Variable ist NaN : 02.04.2022 06:13:07 : 43559-Diastolic- ???

Hi,

jetzt nach erneutem Update kommt:

image

Brauchste irgendwelche Infos?

Gruß Heiko

Hallo
Hilfe waere nett.
Kannst du dir mal das module.php ansehen bei Zeile 2855
Hatte davor folgendes eingefuegt

		if ( is_nan($value) == true)
			{

			$this->SendDebug(__FUNCTION__.'['.__LINE__.']',"Variable ist NaN : ".($Timestamp). " : ".$VariableID."-".$name."-".$value,0);
			return;
	
			}

War wohl nicht NaN.
Kannst du das mal ergaenzen auf Abfrage nach unendlich

		if ( is_infinite($value) == true)
			{

			$this->SendDebug(__FUNCTION__.'['.__LINE__.']',"Variable ist is_infinite : ".($Timestamp). " : ".$VariableID."-".$name."-".$value,0);
			return;
	
			}

		

Komisch, Zeile 2855 hat bei mir folgendes (2855 = SetValue):

            if ( $VariableID > 0 )
                {
                SetValue($VariableID,$value);
                }
            }

Aber ich bau mal was!

Hi,

im Debug kommt jetzt das:

05.04.2022, 13:42:11 | SetValueToVariable[2858] | Variable ist is_infinite : WITHINGS_M_BMI : 54634-BMI-INF

Hallo
Alles klar Danke !
Du hast eine Koerpergroesse von 0 cm. Da kommt dann bei der BMI-Berechnung unendlich raus.
Hab das schon geandert , dass BMI nicht berechnet wird bei Groesse 0.
Ist im naechsten Update drin.
Du muss im Konfigurationsmodul unter „Persoenliche Einstellungen“ eine Groesse eingeben
dann wird auch der BMI richtig berechnet.

Ah, Danke für den Hinweis!

Hatte natürlich gedacht - muss ja nix machen - hat sich ja nix geändert!

Danke Heiko

Hallo,

seit ein paar Tagen erhalte ich viele Fehler:

Warning: Invalid argument supplied for foreach() in C:\ProgramData\Symcon\modules\.store\1007.informations.withings\Symcon1007 Withings\module.php on line 3021
 in C:\ProgramData\Symcon\modules\.store\1007.informations.withings\Symcon1007 Withings\module.php on line 2528

Warning: Invalid argument supplied for foreach() in C:\ProgramData\Symcon\modules\.store\1007.informations.withings\Symcon1007 Withings\module.php on line 3021

Grüße
Proxima

Hallo
Sollte mit Update(jetzt) behoben sein.
War nur eine Warnung zur Ausgabe im Debug Fenster.
Im Moment alles eine Baustelle wegen neue Authorisierung und Auswertung.

Hallo
Bei der jetzt aktiven Schlafauswertung sind diverse neue Variablen
dazu gekommen.

Modul ist aber noch nicht aktualisiert oder?

Ralf

Hallo
Eigentlich schon ?!
Version 50007 vom 18.04.2022 wird nicht angeboten im
Betastore ?

Moin,
wenn ich doppelklick auf die Instanz mache steht oben 50005. Im modul control steht 50007. Ich habe auf Master und dann zurück auf Beta gestellt und im Dialog des Moduls bleibt 50005 stehen und bei Abruf der Daten sehe ich DAS:

TXT: 19.04.2022, 15:46:21 |          Update[467] | Update Data Get SleepSummary
HEX: 19.04.2022, 15:46:21 |          Update[467] | 55 70 64 61 74 65 20 44 61 74 61 20 47 65 74 20 53 6C 65 65 70 53 75 6D 6D 61 72 79 
TXT: 19.04.2022, 15:46:21 | GetSleepSummary[903] | Access Token : f5b7c3cb195692a7e032697b93ac10aa20286f87
HEX: 19.04.2022, 15:46:21 | GetSleepSummary[903] | 41 63 63 65 73 73 20 54 6F 6B 65 6E 20 3A 20 66 35 62 37 63 33 63 62 31 39 35 36 39 32 61 37 65 30 33 32 36 39 37 62 39 33 61 63 31 30 61 61 32 30 32 38 36 66 38 37 
TXT: 19.04.2022, 15:46:21 | GetSleepSummary[922] | Startdate : 2022-04-14 Enddate : 2022-04-19
HEX: 19.04.2022, 15:46:21 | GetSleepSummary[922] | 53 74 61 72 74 64 61 74 65 20 3A 20 32 30 32 32 2D 30 34 2D 31 34 20 45 6E 64 64 61 74 65 20 3A 20 32 30 32 32 2D 30 34 2D 31 39 
TXT: 19.04.2022, 15:46:21 | GetSleepSummary[942] | False
HEX: 19.04.2022, 15:46:21 | GetSleepSummary[942] | 46 61 6C 73 65 
TXT: 19.04.2022, 15:46:21 |    CheckStatus[1985] | Data nicht vorhanden 
HEX: 19.04.2022, 15:46:21 |    CheckStatus[1985] | 44 61 74 61 20 6E 69 63 68 74 20 76 6F 72 68 61 6E 64 65 6E 20 
TXT: 19.04.2022, 15:46:21 |  GetNotifyList[3119] | Access Token : f5b7c3cb195692a7e032697b93ac10aa20286f87
HEX: 19.04.2022, 15:46:21 |  GetNotifyList[3119] | 41 63 63 65 73 73 20 54 6F 6B 65 6E 20 3A 20 66 35 62 37 63 33 63 62 31 39 35 36 39 32 61 37 65 30 33 32 36 39 37 62 39 33 61 63 31 30 61 61 32 30 32 38 36 66 38 37 
TXT: 19.04.2022, 15:46:21 |  GetNotifyList[3138] | False
HEX: 19.04.2022, 15:46:21 |  GetNotifyList[3138] | 46 61 6C 73 65 
TXT: 19.04.2022, 15:46:21 |    CheckStatus[1985] | Data nicht vorhanden 
HEX: 19.04.2022, 15:46:21 |    CheckStatus[1985] | 44 61 74 61 20 6E 69 63 68 74 20 76 6F 72 68 61 6E 64 65 6E 20 
TXT: 19.04.2022, 15:46:21 |  CleanDatabase[3719] | Start :48799
HEX: 19.04.2022, 15:46:21 |  CleanDatabase[3719] | 53 74 61 72 74 20 3A 34 38 37 39 39 
TXT: 19.04.2022, 15:46:21 |          Update[479] | Update Data Laufzeit 0 Sekunden
HEX: 19.04.2022, 15:46:21 |          Update[479] | 55 70 64 61 74 65 20 44 61 74 61 20 4C 61 75 66 7A 65 69 74 20 30 20 53 65 6B 75 6E 64 65 6E 

Daten sind aber vorhanden.

Ralf

Hallo
Im Dialog ist es nur ein Text im Dialog. Muss ich mal anpassen.
Kann es sein , dass du Schlafdaten im Formular nicht angewaehlt hast?

Hi,
in der Datenauswahl sind sie aktiviert.

Ralf

Hallo
Bist du sicher , das es Daten auf dem Withings-Server gibt ueber die letzten 4 Tage gibt ?
Anfrage der letzten 4 Tage ergibt ueber das Modul , keine Daten.
( ```
Data nicht vorhanden

Moin 1007,
Daten sind bei Withingas alle vorhanden. Ich habe jetzt mal den Updatezeitraum vom 19.4-20.4 eingestellt und es kommt:

TXT: 20.04.2022, 08:29:34 |          Update[467] | Update Data Get SleepSummary
HEX: 20.04.2022, 08:29:34 |          Update[467] | 55 70 64 61 74 65 20 44 61 74 61 20 47 65 74 20 53 6C 65 65 70 53 75 6D 6D 61 72 79 
TXT: 20.04.2022, 08:29:34 | GetSleepSummary[903] | Access Token : 58cb4180e01a7f3ff3ccf7127ce9573c645d3563
HEX: 20.04.2022, 08:29:34 | GetSleepSummary[903] | 41 63 63 65 73 73 20 54 6F 6B 65 6E 20 3A 20 35 38 63 62 34 31 38 30 65 30 31 61 37 66 33 66 66 33 63 63 66 37 31 32 37 63 65 39 35 37 33 63 36 34 35 64 33 35 36 33 
TXT: 20.04.2022, 08:29:34 | GetSleepSummary[922] | Startdate : 2022-04-15 Enddate : 2022-04-20
HEX: 20.04.2022, 08:29:34 | GetSleepSummary[922] | 53 74 61 72 74 64 61 74 65 20 3A 20 32 30 32 32 2D 30 34 2D 31 35 20 45 6E 64 64 61 74 65 20 3A 20 32 30 32 32 2D 30 34 2D 32 30 
TXT: 20.04.2022, 08:29:34 | GetSleepSummary[942] | False
HEX: 20.04.2022, 08:29:34 | GetSleepSummary[942] | 46 61 6C 73 65 
TXT: 20.04.2022, 08:29:34 |    CheckStatus[1985] | Data nicht vorhanden 
HEX: 20.04.2022, 08:29:34 |    CheckStatus[1985] | 44 61 74 61 20 6E 69 63 68 74 20 76 6F 72 68 61 6E 64 65 6E 20 
TXT: 20.04.2022, 08:29:34 |  GetNotifyList[3119] | Access Token : 58cb4180e01a7f3ff3ccf7127ce9573c645d3563
HEX: 20.04.2022, 08:29:34 |  GetNotifyList[3119] | 41 63 63 65 73 73 20 54 6F 6B 65 6E 20 3A 20 35 38 63 62 34 31 38 30 65 30 31 61 37 66 33 66 66 33 63 63 66 37 31 32 37 63 65 39 35 37 33 63 36 34 35 64 33 35 36 33 
TXT: 20.04.2022, 08:29:34 |  GetNotifyList[3138] | False
HEX: 20.04.2022, 08:29:34 |  GetNotifyList[3138] | 46 61 6C 73 65 
TXT: 20.04.2022, 08:29:34 |    CheckStatus[1985] | Data nicht vorhanden 

Ralf

Hallo
Das sieht so aus , dass der CURL Aufruf nicht funktioniert.
Hab mal eine neue Version hochgeladen. So das wir sicher auf dem selben Stand sind.
Im Debug Fenster sollte es so aussehen:

Hi,
leider sieht es bei mir anders aus. Waage und Blutdruck funktionieren bei mir und sogar auch die ScanWatch an sich. Nur Activities, IntradayActivies und eben Sleep gehen nicht. Debug sieht bei mir so aus:

TXT: 20.04.2022, 10:03:17 |          Update[467] | Update Data Get SleepSummary
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[903] | Access Token : 36a27570c8def3e10c7ba11b6da2709f40c9e31a
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[924] | Startdate : 2022-04-15 Enddate : 2022-04-20
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[925] | Datafields : nb_rem_episodes,sleep_efficiency,sleep_latency,total_sleep_time,total_timeinbed,wakeup_latency,waso,apnea_hypopnea_index,breathing_disturbances_intensity,asleepduration,deepsleepduration,durationtosleep,durationtowakeup,lightsleepduration,night_events,out_of_bed_count,remsleepduration,sleep_score,snoring,snoringepisodecount,wakeupcount,wakeupduration,hr_average,hr_min,hr_max,rr_average,rr_min,rr_max
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[926] | Header : Authorization: Bearer 36a27570c8def3e10c7ba11b6da2709f40c9e31a
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[927] | Action : getsummary
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : url - https://wbsapi.withings.net/v2/sleep 
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : content_type - 
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : http_code - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : header_size - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : request_size - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : filetime - -1
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : ssl_verify_result - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : redirect_count - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : total_time - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : namelookup_time - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : connect_time - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : pretransfer_time - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : size_upload - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : size_download - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : speed_download - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : speed_upload - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : download_content_length - -1
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : upload_content_length - -1
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : starttransfer_time - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : redirect_time - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : redirect_url - 
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : primary_ip - 
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : primary_port - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : local_ip - 
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : local_port - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : http_version - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : protocol - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : ssl_verifyresult - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : scheme - 
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : appconnect_time_us - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : connect_time_us - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : namelookup_time_us - 0
TXT: 20.04.2022, 10:03:17 | GetSleepSummary[962] | Info : pretransfer_time_us - 0

Ralf