Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import from previous export #7

Open
errtro opened this issue Jul 19, 2017 · 11 comments
Open

import from previous export #7

errtro opened this issue Jul 19, 2017 · 11 comments

Comments

@errtro
Copy link

errtro commented Jul 19, 2017

Hallo,

wenn ich per Import eine zuvor per Export erzeugte Datei laden will, dann bekomme ich ein "Segmentation fault". Verwendete Version QtDMM 0.9.8 unter gentoo linux.

@tuxmaster
Copy link
Owner

Kannst du die Datei mal bitte anhängen?

@errtro
Copy link
Author

errtro commented Jul 19, 2017

Natürlich...

zero_current_draw.txt

@errtro
Copy link
Author

errtro commented Jul 20, 2017

Hinweis:
Wenn man sich die Datei ansieht, erkennt man, dass die Zeit nicht fortgeführt wird. QtDMM kann aber so konfiguriert werden, dass die Abtastrate 1/10 Sekunde ist. Daher müssten nach meiner Meinung die Zeilen in der Datei so aussehen:
18.07.2017 16:44:33.0 00.176 A
18.07.2017 16:44:33.1 00.176 A
18.07.2017 16:44:33.2 00.545 A
18.07.2017 16:44:33.3 00.545 A
18.07.2017 16:44:33.4 00.545 A
18.07.2017 16:44:33.5 00.545 A
18.07.2017 16:44:33.6 00.545 A
18.07.2017 16:44:33.7 00.544 A

@errtro
Copy link
Author

errtro commented Jul 20, 2017

Problem gelöst in QtDMM-0.9.8
dmmgraph.patch.txt

@tuxmaster
Copy link
Owner

Beide Dateien lassen sich leider nicht öffnen.
Es kommt nur der Fehler:

SignatureDoesNotMatchThe request signature we calculated does not match the signature you provided. Check your key and signing method.AKIAIWNJYAX4CSVEH53AAWS4-HMAC-SHA256
20170720T152722Z
20170720/us-east-1/s3/aws4_request
6f31ecd41d09d61682592506333cc801e2219fd600355a890065d32522255926d46ef67be1f7c87495ce1e063823ee020b774db03053fbee257a05498dbfcaed41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 0a 32 30 31 37 30 37 32 30 54 31 35 32 37 32 32 5a 0a 32 30 31 37 30 37 32 30 2f 75 73 2d 65 61 73 74 2d 31 2f 73 33 2f 61 77 73 34 5f 72 65 71 75 65 73 74 0a 36 66 33 31 65 63 64 34 31 64 30 39 64 36 31 36 38 32 35 39 32 35 30 36 33 33 33 63 63 38 30 31 65 32 32 31 39 66 64 36 30 30 33 35 35 61 38 39 30 30 36 35 64 33 32 35 32 32 32 35 35 39 32 36GET
/32583898/1162338
X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170720%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170720T152722Z&X-Amz-Expires=300&X-Amz-SignedHeaders=host&actor_id=6240474&response-content-disposition=attachment%3Bfilename%20dmmgraph.patch.txt&response-content-type=text%2Fplain
host:github-production-repository-file-5c1aeb.s3.amazonaws.com

host
UNSIGNED-PAYLOAD47 45 54 0a 2f 33 32 35 38 33 38 39 38 2f 31 31 36 32 33 33 38 0a 58 2d 41 6d 7a 2d 41 6c 67 6f 72 69 74 68 6d 3d 41 57 53 34 2d 48 4d 41 43 2d 53 48 41 32 35 36 26 58 2d 41 6d 7a 2d 43 72 65 64 65 6e 74 69 61 6c 3d 41 4b 49 41 49 57 4e 4a 59 41 58 34 43 53 56 45 48 35 33 41 25 32 46 32 30 31 37 30 37 32 30 25 32 46 75 73 2d 65 61 73 74 2d 31 25 32 46 73 33 25 32 46 61 77 73 34 5f 72 65 71 75 65 73 74 26 58 2d 41 6d 7a 2d 44 61 74 65 3d 32 30 31 37 30 37 32 30 54 31 35 32 37 32 32 5a 26 58 2d 41 6d 7a 2d 45 78 70 69 72 65 73 3d 33 30 30 26 58 2d 41 6d 7a 2d 53 69 67 6e 65 64 48 65 61 64 65 72 73 3d 68 6f 73 74 26 61 63 74 6f 72 5f 69 64 3d 36 32 34 30 34 37 34 26 72 65 73 70 6f 6e 73 65 2d 63 6f 6e 74 65 6e 74 2d 64 69 73 70 6f 73 69 74 69 6f 6e 3d 61 74 74 61 63 68 6d 65 6e 74 25 33 42 66 69 6c 65 6e 61 6d 65 25 32 30 64 6d 6d 67 72 61 70 68 2e 70 61 74 63 68 2e 74 78 74 26 72 65 73 70 6f 6e 73 65 2d 63 6f 6e 74 65 6e 74 2d 74 79 70 65 3d 74 65 78 74 25 32 46 70 6c 61 69 6e 0a 68 6f 73 74 3a 67 69 74 68 75 62 2d 70 72 6f 64 75 63 74 69 6f 6e 2d 72 65 70 6f 73 69 74 6f 72 79 2d 66 69 6c 65 2d 35 63 31 61 65 62 2e 73 33 2e 61 6d 61 7a 6f 6e 61 77 73 2e 63 6f 6d 0a 0a 68 6f 73 74 0a 55 4e 53 49 47 4e 45 44 2d 50 41 59 4c 4f 41 44ACFAADEC23013049DIt5Ia0iwTiI07rQRWHAc8FcZLVZOeyEqZSiKEaDesNI5BBYKwEWJvC0Ep0BIZVtdpXN9MOxBNc=

@errtro
Copy link
Author

errtro commented Jul 24, 2017

Auszug aus der exportierten Datei
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.533 A
18.07.2017 16:44:33 00.534 A

beim exportieren wird die Zeit nicht fortgeschrieben

@errtro
Copy link
Author

errtro commented Jul 24, 2017

partch:
717d716
<
1158,1159c1157,1158
< QDateTime dt = m_graphStartDateTime.addSecs( i*(int)qRound(m_sampleTime/10.) );
< QString line=QString("%1\t%2\t%3\n").arg(dt.toString("dd.MM.yyyy\tHH:mm:ss")).arg((*m_array)[i],0,'f').arg(m_unit);

QDateTime dt = m_graphStartDateTime.addMSecs( i*(float)qRound(m_sampleTime/10.) );
QString line=QString("%1\t%2\t%3\n").arg(dt.toString("dd.MM.yyyy\thh:mm:ss.zzz")).arg((*m_array)[i],0,'f').arg(m_unit);

1224c1223
< QRegExp re( "[0-9]+\.[0-9]+\.[0-9]+\t[0-9]+:[0-9]+:[0-9]+\t[-]?[0-9]\.[0-9]+\t.");

  QRegExp rx( "[0-9]+\\.[0-9]+\\.[0-9]+\t+[0-9]+:[0-9]+:[0-9]+\\.[0-9]+\t+[-]?[0-9]*\\.[0-9]+\t+.*");

1226c1225
< if (!re.exactMatch(line))

  if (!rx.exactMatch(line))

1233c1232
< token =line.split("\t");

  token = line.split("\t");

1237,1239c1236
< QTime startTime = QTime( timeToken[0].toInt(),
< timeToken[1].toInt(),
< timeToken[2].toInt() );

    QTime startTime = QTime::fromString(token[1], "hh:mm:ss.zzz");

1247c1244
< setUnit( line.mid( 27, 3 ) );

  setUnit( token[3] );

1261,1263c1258
< QTime nowTime = QTime( timeToken[0].toInt(),
< timeToken[1].toInt(),
< timeToken[2].toInt() );

        QTime nowTime = QTime::fromString(token[1], "hh:mm:ss.zzz");

1268,1270c1263,1264
< sample += QDateTime( startDate, startTime ).secsTo(QDateTime( nowDate, nowTime ) );
<
< startTime = nowTime;

  	sample += QDateTime( startDate, startTime ).msecsTo(QDateTime( nowDate, nowTime ) );
        startTime = nowTime;

@tuxmaster
Copy link
Owner

Könntest du bitte das Ganze als "Pull request" einreichen, da sich das so nicht einpflegen lässt.

@errtro
Copy link
Author

errtro commented Jul 31, 2017

Sorry, das da oben sieht etwas katastrophisch aus.
Weitere Tests haben ergeben, dass der Patch doch nicht richtig funktioniert.

Das Problem, dass die Zeit beim Export nicht fortgeschrieben wird, besteht weiterhin.

@errtro
Copy link
Author

errtro commented Aug 1, 2017

export und import funktionieren jetzt:
Die patches stehen auf
https://gist.github.com/errtro/7ed93b88a99de999a14de49632477ff4

Was noch nicht funktioniert ist die Skalierung der Zeitachse im Graph (bei der Aufnahme und beim Import) .

@tuxmaster
Copy link
Owner

Ich sehe hier leider immer noch kein pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants