8 Mar 2021, 15:27

@jb_sullivan Da fehlt noch eine Klammer:

                for(let time in watts) {
                    let pos1 = time.indexOf(':00:00');
                    let pos2 = time.indexOf(':30:00');
                    if((pos1 != -1) || (pos2 != -1)) {
                        let graphEntry ={};
                        graphEntry.t = Date.parse(time);
                        graphEntry.y = watts[time];
                        graphTimeData.push(graphEntry);
                    }  // -< die fehlt
            }