Skip to content

Data into Database #234

Answered by moses19850
moses19850 asked this question in Q&A
Dec 22, 2022 · 4 comments · 7 replies
Discussion options

You must be logged in to vote

Hi,
thanks for the support so far.
With your help I'm able to fetch the data I need and convert into a proper structure. I'm also able to connect to my mariadb on synology.

My issue now: For fetchting the data I needed a loop and now I have no idea how to upload data from a loop into the database.

Any advice is appreciated.

Thanks

Code for fetching the data:

//const trpInfo = await vehicle.tripInfo({year: new Date().getFullYear(), month: new Date().getMonth()+1, day: new Date().getDate()});
  const trpInfo = await vehicle.tripInfo({year: 2022, month: 12, day: 4});

  if (trpInfo != '') 
    {
  
  //Erstelle Datum
  const tripdaydateraw = trpInfo[0].dayRaw.slice(4,6) + '/' + trpInfo[0].da…

Replies: 4 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@moses19850
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@moses19850
Comment options

@chubby1968
Comment options

@moses19850
Comment options

@chubby1968
Comment options

@moses19850
Comment options

Answer selected by moses19850
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants