mykle1 / MMM-ATM

Another Trivia Module? Really?
MIT License
7 stars 1 forks source link

How to #2

Open Plainbroke opened 2 years ago

Plainbroke commented 2 years ago

@mykle1, Is there a way to use just a few categories? There are a few that my wife and I do not even understand and of course they are the ones to pop up the most often.

nemmy187 commented 2 years ago

Hi there,

I haven't implemented this myself yet, but I believe can definitely customize the trivia somewhat. https://opentdb.com/api_config.php will allow you to select category, difficulty, and question type. From there, just change line 33 of the MMM-ATM.js file to the updated URL. Unfortunately, it won't let you pick multiple categories in a single query. If you want to get fancy, you could write some JavaScript to pick a different category from a list every time the API call is made.

Plainbroke commented 2 years ago

Thank you so much my wife and I really enjoy this module and it is always a hit at Thanksgiving and Christmas.

Jeff Burdick

From: nemmy187 Sent: Tuesday, August 23, 2022 1:29 PM To: mykle1/MMM-ATM Cc: Jeff; Author Subject: Re: [mykle1/MMM-ATM] How to (Issue #2)

Hi there, I haven't implemented this myself yet, but I believe can definitely customize the trivia somewhat. https://opentdb.com/api_config.php will allow you to select category, difficulty, and question type. From there, just change line 33 of the MMM-ATM.js file to the updated URL. Unfortunately, it won't let you pick multiple categories in a single query. If you want to get fancy, you could write some JavaScript to pick a different category from a list every time the API call is made. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>