Yes, from API League. The dashboard shows requests from today for 5 different endpoints. Is the test supposed to work just like the Test for non-API categories?
Yes, the test response should show the response, so one can check api, filters, etc....
Can you turn on DEBUG or TRACE for 30 mins in the app and check the hubitat log for errors when you test?
App Version 0.1.1 now available in HPM
Replaced the old idioms data file which was missing attributes with over 1,300 high quality idioms with attributes:
1 . Phrase,
2. Definition
3. Example
The idioms response category does not require an Api Key.
Sorry, I haven't had a chance to test this. Not forgotten.
Hi @KurtSanders. First thanks for this great app. It's been alot of fun. I'm having a problem with some of the devices created. The error occurs when I press the Refresh button. No new item is retrieved.
The interesting thing is that these do return a value when tested in the app and is then visible in the device but the same error appears in the logs.
Thank you.
Fun-Cat-Facts
Fun-Dad-Jokes
Fun-Useless-Facts
Fun-Zen-Facts
@bbholthome Thank you for finding this error. I will investigate and correct, and let you know when a fix in HPM is available.
Version 2.4.2 Now Available in HPM
Release Notes:
- Bug Fix for Driver Refresh Error
- Updates to Fun API Responses App and Device Driver
@bbholthome, you can run 'Update' in HPM to obtain the updated release. Please let me know if this corrects the error that you reported.
That has fixed all the errors. Thanks.
Hi @KurtSanders,
I got a very long joke last night which overran my hub variable.
Is it possible to skip responses over 1024 characters.
Wow, didn't think about that condition. Are you using the global variable to interface with a TTS speaker rather than sending it to the TTS speaker directly?
I need to think about the best way to avoid this condition.
- Automatically request another joke response when the current joke response exceeds the global variable maximum of 1024. This option could result in a long timing loop if the additional joke responses exceed 1024.
- Have the user create two global variables to split joke responses into a primary and overflow global variable when the response exceeds 1024. The user would need to concatenate these global variables should the overflow have a value.
- Catch and create an error data field in the device that would indicate that the response encountered an error. The user would need to request another response in their rule/webcore piston.
Thoughts/Suggestions?
I'm using Rule Machine to grab the response into a global variable. I don't think this is an error on part of your app. I have 2 suggestions, 1-Allow more than 1 TTS device to be selected in your app. 2-Report the length of the "response" in the current states.
Then it is up to the user to decide what to do.
I can modify to add more than 1 TTS device, but the TTS responses will be sent serially to each TTS speaker, which means that the selected speakers will not output the response synchronous throughout your house.
I am away from my house right now, but I think I have an app TTS preference option for Alexa speakers to send the TTS output to All Alexa devices would allow them to TTS synchronously.
I will look at adding the multiple TTS speakers and adding the Length of the TTS response string in the device attributes in the next release, which could be either today or tomorrow.
Thanks, using multiple TTS devices from your app is not a priority for me I can always use rule machine. It was just a thought. If no one else is interested them maybe self that one.
Thanks, using multiple TTS devices from your app is not a priority for me I can always use rule machine. It was just a thought. If no one else is interested them maybe self that one.
Here is the TTS Option when an Echo Speaks (Alexa) TTS device is Toggled On will send the TTS output to all HE connected Alexa speakers. I use this TTS switch and just Toggle the device switch ‘On’ from a Rule and the device will do the rest to output the response and turn off the device’s switch automatically for the next use.
I added a new 'responseSize' data attribute to the device driver. This field will contain the response size as a numeric value.
Note: WebCode and Rule users can check this size field for compatibility with known size limitations in TTS devices, as well as the HE global variable, which has a current size limit of 1024.
The new Fun API Response App (0.1.3) & Driver (0.1.3) can be updated using HPM.
I added a new 'responseSize' data attribute
All looks good. I have lots of logging and will watch over time.
@bbholthome There seems to be a 1024 limit on many string objects in HE, so monitoring the new responseSize field from your rule/WebCore piston will let you refresh the 'Fun API' device.
HPM Update: Affirmations
This app has been updated to return a random affirmation to boost your confidence and motivation. Affirmations are positive statements that can help you overcome negative thoughts and improve your mindset and well-being.
Example:
- "My job brings me joy and happiness."
HPM Update: Life-Hack
This app has been updated to return a random life hack to make your life easier. Life hacks are simple, clever tips or tricks that help you save time, money, or effort in your daily life.
Example Random Response:
- Theft Prevention, 90% of people are right-handed, so you are less likely to get something stolen from your right pocket, as this would usually require the thief to be left-handed.





