CaffeineWiz Skill 

Summary
Provides the caffeine content of various drinks on request. Multiple drinks in a row are possible.
 
Description
The skill provides the functionality to inform the user of the caffeine content of the requested drink by collecting the required information from two data sources:
  1. http://caffeinewiz.com/ - the main source of information for the drink’s database
  2. https://www.caffeineinformer.com/the-caffeine-database - secondary source for any non-duplicate drinks
CaffeineWiz uses BeautifulSoup to pull the tables from the websites above, then strips the html tags, and later formats the results into the comprehensive list. That object is pickled for the future use.
The skill will check for updates periodically. You can modify that time period by changing TIME_TO_CHECK parameter on top of the file in the init.
 
How to Use
First, make your request:
Say “Hey Neon” if you are in the wake words mode. Make sure to follow the pattern of "how much caffeine is in" or "tell me caffeine content of" and add your desired drink name.
For example:
  • tell me caffeine content of pepsi
  • how much caffeine is in starbucks blonde
  • tell me caffeine content of rocket chocolate
Wait for Neon to reply with the information about your requested drink. The reply will come in the format of "The drink {{drink}} has {{caffeine_content}} milligrams of caffeine in {{drink_size}} ounces. Provided by CaffeineWiz."
If more than one drink is available, or more than one drink was a match, Neon will offer to read them all back to you by saying I have more drinks that match. Would you like to hear them? And, in addition to the phrase above, the original sentence will say The best match is
If you have wake words turned on, Neon will ask you to Say how about caffeine content of another drink or say goodbye.; if you are skipping wake words, Neon will end the conversation by saying Stay caffeinated!
 
Examples
 
Tell me caffeine content of *drink*? / how much caffeine is  in *drink*? 
     >> The drink {{drink}} has {{caffeine_content}} milligrams of caffeine in {{drink_size}} ounces. Provided by CaffeineWiz. Say how about caffeine content of another drink or say goodbye. 
Goodbye / that's all / we're done 
     >> Goodbye. Stay caffeinated!
 
- or -
 
How about caffeine content of *drink*? 
     >> The drink {{drink}} has {{caffeine_content}} milligrams of caffeine in {{drink_size}} ounces. Provided by CaffeineWiz. I have more drinks that match. Would you like to hear them? 
No. 
     >> Stay caffeinated!
 
Location
${skills}/CaffeineWiz.neon
 
Class Diagram
 
Troubleshooting
If you are having trouble finding requested drink, would like to add a new drink to the database, or got a "I am sorry, " + drink + " is not on my list. Let my creators know and they will teach me new information!" from Neon, please feel free to contact us
 
Contact Support
 
Credits
reginaneon neongeckocom

Subscribe

Thank you for your interest. We are delighted to help keep you up to date by letting you know about new developments in this field and our offerings.

Our Assurance
We appreciate your trust and are committed to your privacy. Neongecko uses the information you provide to contact you about our relevant content, products, and services. We will never sell your personal information.