Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocode 1000 limit now being enforced #30

Open
Iangh59 opened this issue Sep 10, 2022 · 19 comments
Open

Autocode 1000 limit now being enforced #30

Iangh59 opened this issue Sep 10, 2022 · 19 comments

Comments

@Iangh59
Copy link

Iangh59 commented Sep 10, 2022

Autocode has recently started enforcing the 1000 requests limit, which makes the skill unusable as the 1000 lasts a matter of days. @balsimpson could I implore to work your magic and find a free alternative and port the code? Thanks for your work, your skill is one of my favourites.

@Nekosan78
Copy link

I am also having this issue, was wondering why my skill had stopped working!

@balsimpson
Copy link
Owner

This is a work-in-progress, but you can test it out.

https://dev.to/balsimpson/alexa-radio-skill-fle-temp-slug-7195018?preview=7aa1db5a4b9cdbd3c34086cb5356be53e8536935e458a14da35609ea5d28dc2ee9705c725542d6d60d7f4412ed0ac96f0a9b56dec9affa9031a68bed

Fully hosted on AWS, responsive website on Vercel and Firebase to store data. Any feedback/ comment is welcome. Few things might change.

@Nekosan78
Copy link

Hi Bal, thank you for replying so quickly, keen to give it a try!

I am currently stuck on step 2, vercel site deployment. For some reason I do not have permissions to edit environment variables in the project configuration section. Or is that something that needs to be edited in the code?

image

@balsimpson
Copy link
Owner

You completed the previous step on the same page of Creating a GitHub repository? Once you have created it, the Environment Variables field will get activated.

@Nekosan78
Copy link

Thank you, that was the one button I did not click! I have now followed all other steps but cannot add any channels / stations to my Vercel site - I enter all the details as per the instructions and click save, a pop up confirm it was added, but the site itself continues to say my library is empty. Any steps I may have missed?

@balsimpson
Copy link
Owner

on your Firebase Console, check if the Channels are being added in Firestore. Also check the developer console in the browser for any error messages.

@Nekosan78
Copy link

I'm afraid no channels being created in Firestore. Developer console in Vercel? No logs in the functions section.

@Iangh59
Copy link
Author

Iangh59 commented Jan 25, 2023

Autocode has changed (again) how it measures usage, but I reckon with the 1000GB-s/month I have at least 300hrs of watching news channels, which is way more than I need. @Nekosan78 how many hours a month do you use the skill?
For new users, because autocode has changed something, you need to use the autocode used here, https://github.com/BitOMOn/alexa-radio, which is a fork of @balsimpson.

@balsimpson
Copy link
Owner

I'm afraid no channels being created in Firestore. Developer console in Vercel? No logs in the functions section.

Open your Vercel page - sitename.vercel.app - on Chrome or any browser, now right click on the page and choose Inspect which will show lots of things including a Console tab. Check the console tab for any messages when you create a new Channel.

@Nekosan78
Copy link

Looks like it is a permissions thing. Do you think it might have been a space in the API key copied across? (normally I do watch out for stuff like that) Can I go into the code and check?

image

@langh59 my wife uses the skill to listen to her radio station back home. Worked absolutely fine until recently. When I checked Autocode told me I had gone beyond the limit. Can't even recreate the skill on an alt because autocode now is just browser based and it does not deploy the same way. So keen to get this new way working!

@balsimpson
Copy link
Owner

You are right. This looks like the FIREBASE_API_KEY or the FIREBASE_PROJECT_ID is not entered correctly on Vercel. Please check if it is, as you said with extra space or something.

@Nekosan78
Copy link

Hi Bal, just checked and all keys etc. are correct. I created a second project from scratch and have the same problem. I can see on the rules side that it is denying access. Is this the potential issue:

image

@Iangh59
Copy link
Author

Iangh59 commented Jan 25, 2023

@langh59 my wife uses the skill to listen to her radio station back home. Worked absolutely fine until recently. When I checked Autocode told me I had gone beyond the limit. Can't even recreate the skill on an alt because autocode now is just browser based and it does not deploy the same way. So keen to get this new way working!

Try https://www.amazon.com/Michael-Dworkin-Radio-Browser/dp/B09MQ7LFCT. If the station isn't listed in the database you can add the url as a custom station. It uses https://www.radio-browser.info/#!/ for the database.

The fork I linked to uses the updated Autocode that got the skill working for me. But as Autocode may change the free offering again, the more the merrier different ways of deploying balsimpson's skill are welcome.

@balsimpson
Copy link
Owner

Hi Bal, just checked and all keys etc. are correct. I created a second project from scratch and have the same problem. I can see on the rules side that it is denying access. Is this the potential issue:

image

yes, i think that's what it is. change allow read, write: if false; to allow read, write: if true;

@Nekosan78
Copy link

@langh59 my wife uses the skill to listen to her radio station back home. Worked absolutely fine until recently. When I checked Autocode told me I had gone beyond the limit. Can't even recreate the skill on an alt because autocode now is just browser based and it does not deploy the same way. So keen to get this new way working!

Try https://www.amazon.com/Michael-Dworkin-Radio-Browser/dp/B09MQ7LFCT. If the station isn't listed in the database you can add the url as a custom station. It uses https://www.radio-browser.info/#!/ for the database.

The fork I linked to uses the updated Autocode that got the skill working for me. But as Autocode may change the free offering again, the more the merrier different ways of deploying balsimpson's skill are welcome.

That alternative app is a great workaround, thank you so much!

Still keen on getting the new deployment method to work @balsimpson 😁 spoke to some uni buddies last week and changed the code to allow read, write//: if false; which also did the job. I can now add radio stations and they are saved in the database.

The next hurdle is alexa related. Voice commands to play the station are either returning an error, or eliciting no response at all (helpful not to have consistent results). Could this be related to the endpoint that was configured on your previous skill? Thanks again for all the help by the way!

@nykul
Copy link

nykul commented Feb 9, 2023

@langh59 my wife uses the skill to listen to her radio station back home. Worked absolutely fine until recently. When I checked Autocode told me I had gone beyond the limit. Can't even recreate the skill on an alt because autocode now is just browser based and it does not deploy the same way. So keen to get this new way working!

Try https://www.amazon.com/Michael-Dworkin-Radio-Browser/dp/B09MQ7LFCT. If the station isn't listed in the database you can add the url as a custom station. It uses https://www.radio-browser.info/#!/ for the database.
The fork I linked to uses the updated Autocode that got the skill working for me. But as Autocode may change the free offering again, the more the merrier different ways of deploying balsimpson's skill are welcome.

That alternative app is a great workaround, thank you so much!

Still keen on getting the new deployment method to work @balsimpson 😁 spoke to some uni buddies last week and changed the code to allow read, write//: if false; which also did the job. I can now add radio stations and they are saved in the database.

The next hurdle is alexa related. Voice commands to play the station are either returning an error, or eliciting no response at all (helpful not to have consistent results). Could this be related to the endpoint that was configured on your previous skill? Thanks again for all the help by the way!

Hi Nekosan,
I am experiencing exactly the same issues as you are.
I am no good at code but could you please "kick me" in the right direction where to find allow read, write//: if false;?

Thank you

@balsimpson
Copy link
Owner

@Nekosan78. In the Firebase console, go to the Rules tab.
firestore

In the Firebase console, go to the Rules tab. Change rule to read allow read, write: if false;
image

Click on Publish to save the chnages.

@nykul
Copy link

nykul commented Feb 9, 2023

@Nekosan78. In the Firebase console, go to the Rules tab. firestore

In the Firebase console, go to the Rules tab. Change rule to read allow read, write: if false; image

Click on Publish to save the chnages.

@balsimpson Thank you. that part is now working and I can save the channels.
However, I am again in the same boat as @Nekosan78.
When using the voice command no reply from Alexa and no action, what am I missing please?

@Iangh59
Copy link
Author

Iangh59 commented Mar 19, 2023

Have people got the new Juke Box working? I fancy having a go but want to know help is available when I get stuck.:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants