Jump to content

wrj0

Members
  • Posts

    381
  • Joined

  • Last visited

Everything posted by wrj0

  1. Similar situation here; periodically getting the Blink notice about the verification code. Putting the code into the plugin as AUTH_KEY doesn't seem to help. Blink plugin Debug log shows: 2024-04-24 10:08:04,546 Thread-7 blinkpy.auth ERROR auth:query: Unable to access https://rest-u017.immedia-semi.com/api/v3/accounts/34xxxx/homescreen after token refresh. 2024-04-24 10:08:04,546 Thread-7 udi_interface INFO BlinkSystem:auth: Auth key required Not sure how to proceed to provide the required Auth key.
  2. With excellent support from ttsMP3.com, some additional information on this issue has provided a simple to implement solution to the Bluetooth audio cutoff problem. MP3 files from freetts.com played fine over Bluetooth, while the files generated by ttsMP3.com were cut short before playing to completion. (As an example, entering "This is a test" would output "This is a" via Bluetooth audio) Support from ttsMP3.com determined that that freetts.com uses a sample rate of 16k, resulting in a lower quality output, than ttsMP3.com that provides 24k sample rate with crisper output sound. Additionally, freetts.com automatically adds a forced pause of 1 second at the end of the file. So, using ttsMP3.com, and adding the tag <break time="1s"/> at the end of your text input to ttsMP3.com to generate an MP3 file, that allows Bluetooth to play the custom MP3 file without cutting off the end.
  3. Michel provided me with a solution to being able to play custom Text-to-Speech MP3 files via Bluetooth. Apparently, the TTS site I had been using (ttsmp3.com) does not provide the MP3 files with the proper frame rate. Per the ticket opened on this issue: I regenerated the desired MP3 files using this site: https://freetts.com/ So far, the custom MP3 files generated by that site are playing fine over both the Speaker and Bluetooth outputs.
  4. Update to both Bluetooth and MediaPlayer were performed, as noted in the first post in this thread.
  5. @Techman As noted in my previous post that was closed, my custom files DO have the "_t" at the end of file name, and play fine via the Speaker Output; just Bluetooth cuts them off before playing to the end.
  6. Thanks @garybixler, Hopefully, this won't be a stubborn bug to squash.
  7. My previous thread was marked as solved with an update to the Audio Player. However, after updating both AudioPlayer and Bluetooth plugins, I still have my custom MP3 files cut short when playing via Bluetooth. Same custom MP3 files play fine via the Speaker output. eisy was power cycled after the updates, and both plugins restarted. Currently running: udx-3.5.6_2 isy-5.8.0_1 pg3x-3.2.21 AudioPlayer 1.3.3 Bluetooth 1.0.4
  8. Thanks. I hadn’t seen other comments on this being an issue.
  9. I have connected two different Bluetooth devices to the Bluetooth plugin, and have a problem playing custom MP3 files. The AudioPlayer plugin plays the UD-provided built-in MP3 files fine via BT, but all of my custom MP3 files are cut short, much like before we needed to add _t at the end of the file name per this release notice. The same custom MP3 files play fine over the Speaker Jack Output. Do I need to postpend something other than "_t" to the custom MP3 files that I would like to play via Bluetooth? Currently running: udx-3.5.6 isy-5.8.0_1 pg3x-3.2.20 AudioPlayer 1.3.1 Bluetooth 1.0.3
  10. wrj0

    Eisy Audio Player

    @Techman There was a thread about adding custom MP3 files to the eisy a few weeks ago. Please see this link.
  11. wrj0

    Solar Noon

    @dakall Here's one possible solution. Create Integer variables: $iSunrise, $iSunset, $iSolarNoon, $iSolarNoon.Hr, and $iSolarNoon.min (for last one, set precision to 2) Solar Noon Calc - [ID 00AB][Parent 0039][Not Enabled] If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then $iSunset = [Sunset Today (seconds)] $iSunrise = [Sunrise Today (seconds)] $iSolarNoon = $iSunset $iSolarNoon -= $iSunrise $iSolarNoon /= 2 $iSolarNoon += [Sunrise Today (seconds)] $iSolarNoon.Hr = $iSolarNoon $iSolarNoon.Hr /= 3600 $iSolarNoon.Min = $iSolarNoon.Hr $iSolarNoon.Min *= 3600 $iSolarNoon.Min -= $iSolarNoon $iSolarNoon.Min *= -1 $iSolarNoon.Min /= 60 Else - No Actions - (To add one, press 'Action') #Disabled Run manually Since SolarNoon.Hr is an integer, the line $iSolarNoon.hr /= 3600 returns the integer Hour portion of the SolarNoon time. Then that time is multiplied by 3600 to get that value in seconds that is subtracted from $iSolarNoon (in seconds), and then negated to provide a positive number. Finally, divide that value by 60 to get the SolarNoon.Min value (here a 2 decimal number). To use the values to actually do anything, likely State variables for current Hour and Minute would need to be created and updated programmatically, and those State variables tested against the $iSolarNoon.Hr and $iSolarNoon.Min values.
  12. Same here. My custom MP3 files that are in /storage/sounds are cut short. One created from a text to MP3 program is 6kb in size, outputting "This is a test." Used to play fine before upgrading to the Pro plugin. Now just makes a fast burp. The files play fine in Windows Media Player.
  13. Same here. Time, Sunrise and Sunset are correct today on both Polisy and eisy (2 different locations) running isy-5.8.0_1. Didn't check yesterday on the day DST changed.
  14. @Michel Kohanim I did indeed do a reboot after the last update, and just did another Upgrade Packages and Reboot from the AC. All is well; /storage/sounds is in tact and your AudioPlayer is playing fine. Thanks.
  15. @Michel Kohanim Previous errors from "sudo zpool export storage" and "sudo nvmecontrol devlist" occurred after doing an IoX Upgrade and Reboot. Today, I did an eisy power cycle, and now have no error from "sudo zpool export storage" and [admin@eisy ~]$ sudo zpool list NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT storage 928G 7.65M 928G - - 0% 0% 1.00x ONLINE - zudi 50.5G 2.88G 47.6G - - 14% 5% 1.00x ONLINE - After another reboot, all seems fine now. /storage/sounds is intact, and MP3 files play fine. Perhaps a power cycle after the initial Upgrade, Reboot would have put everything back in order.
  16. @Michael What's up doc? [admin@eisy /storage]$ sudo zpool export storage cannot open 'storage': no such pool Also, sudo nvmecontrol devlist Returns nothing now.
  17. @Michel Kohanim I did, indeed, Michel. Per your fine instructions: https://developer.isy.io/blog/NVMe Should I enter both commands again before the next reboot?
  18. Updated AudioPlayer to 1.0.5 yesterday. Today, after doing an IoX Upgrade & Restart (remained on IoX 5.8.0 but lots of packages were updated), I found the files and the /storage/sounds directory on the installed NVMe had been deleted. I re-created /storage/sounds, set permissions, and put the MP3 files back, and all is well again. What did I do wrong that caused the /storage/sounds directory to be deleted?
  19. wrj0

    Use cases

    Good work, Gary.
  20. wrj0

    Use cases

    @garybixler Great. So, around Tuesday or so, we'll look forward to seeing your success story. 😀
  21. wrj0

    Use cases

    @garybixler Give it a try - it just takes a little digging into the linux commands and there's a ton on info available on line. I chose to install the NVMe SSD as I plan to install HA and try to learn about that system AND I really didn't want to take a chance that I might mess up something in the eisy file structure that UDI developed. For the installation instructions on the SSD, great instructions from UDI are available here: https://developer.isy.io/blog/NVMe Once installed per those instructions, the new /storage directory will be created with the permissions set for admin. Then ssh into your eisy (follow the UDI instructions), and issue 'cd /storage' to get to your new directory. To create a new sounds directory there for your MP3 files, issue: sudo mkdir sounds To set admin permissions for /storage/sounds: sudo chown admin /storage/sounds sudo chgrp admin /storage/sounds sudo chmod 755 /storage/sounds Then move your mp3 files to /storage/sounds as outlined previously. Regarding the NVMe SSD to use, the UDI installation instructions say: "You can get pretty much any M.2 NVMe SSD with the limitation that the capacity cannot be more than 1TB." I chose a WB Black 1TB M.2 2280 for capacity and for its good reviews. Don't wait for that integrated system to upload MP3 files - give it a try like I did. I certainly learned a lot during the process about the eisy file structure that I'm sure will serve well going forward with other projects, like HA. Good luck!
  22. wrj0

    Use cases

    @garybixler I added an NVMe SSD to my eisy, per the instructions Michel provided here a few days ago. Setup the new file storage system as /storage. And created a directory to store the MP3 files, /storage/sounds The MP3 files I wanted to push to eisy were on a windows 11 PC, so I used the scp command to push those files to the new storage on eisy. From the windows directory with the desired mp3 files, D:\IoX\Sounds, used scp in a windows command prompt to push the files. Something like this for a single file: scp ./alert.mp3 admin@eisy.local:/storage/sounds Use your own eisy admin username here. Per Michel's info on the plugin, "For custom sounds, for now, you are in charge of creating a directory, uploading your music files, and giving read permission either to the plugin user or everyone." Indeed, I had to play a bit within eisy with chown, chmod, and chgrp to get permissions set for the directory and the files in /storage/sounds. (Lot's of info available on these linux commands with a quick web search). Once the files are in your desired directory in eisy, you'll need to add that directory in the path Custom Configuration parameter in the PG3x AudioPlayer plugin (for me it's /storage/sounds). I then restarted the plugin, and restarted the IoX Admin Console, and was able to select and play the files placed in the new eisy directory. Hope this helps a little. It was a fun challenge for me to get it to work, and did take a bit of time.
  23. wrj0

    Use cases

    Your new plug-in works great! Nice job, Michel. Took me a bit of head scratching to get the mp3 files moved to the right place on the newly installed NVMe SSD - but they are working fine now. Thanks for this very useful addition.
  24. Thanks for the suggestion, @Ross. I'm still looking at options, including Yolink. Still, it seems curious to me that the weather data from my local station (a Marine Corps Auxiliary Field) varies so widely. I've loaded two other weather plug-ins and am looking at weather data from other sources to see what may be the most consistent for my location.
  25. Thanks again for your input. My polling is set to 600, so no temperature changes are provided to my programs in less than 10 minutes, as shown in my sample above. I'd really like to know the reason for the sudden changes in the reported temperature before trying to mask a possible underling problem with the accuracy of the temperature data. I'll spend some time to look more closely at the data from source station. OpenWeatherMap indicates they use a numerical weather prediction (NWP) model to do some manipulation of data from several sources to improve quality and accuracy. Curious if this may be the cause of the variations in temperature data that is reported.
×
×
  • Create New...