You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the advanced options for the project, grant access to allow import/export
Import from GitHub (scripting/river5)
Go to config.json
Change config.json so you have extra lines as follows:
"httpPort": 3000,
"flDownloadPodcasts": false,
httpPort sets the port that Glitch likes so you don't need to fiddle anymore
flDownloadPodcasts stops Glitch downloading all of the podcasts in the example feeds which can quickly fill up your Glitch instance
Wait for it to rebuild
Click on the "Show - Live" button, this jumps you to an https version of the Glitch instance (e.g. https://newriver5.glitch.me/). Due to there still being some references to the http version of fargo.io in the repo, change the address to be http instead (e.g. http://newriver5.glitch.me/). This should then show you what you want
You can then add new feeds into the relevant folder & have then show by editing config.json to add a new tab
Thanks for helping us out. That's the first thing I want to say. Now the questions.
Someone told me that background tasks don't work on Glitch. Not sure what this means. River5 couldn't work without being able to set up some calls using setInterval.
It looks like your server reset in the last hour or so, started reading feeds from scratch? Not sure if you restarted it, or something went wrong. Have you been using this River5 installation or is it something you set up as an experiment?
Isn't it always the way, you have something running nicely, share it and it all breaks :-( ?
I'm not sure how Glitch deals with the attempts to run continuously but it does go to sleep after a while and then completely rebuild/recreate the feeds when I go back to it.
It appears to have filled up the assigned space on the newriver5 instance (maybe due to it being up longer than my tests previously made happen). Getting it back up and working seems to require some wrangling which I will attempt now.
I'm not sure what that means given that hitting the instance with an http request seems to keep it up.
In the past for testing I've user Uptime Robot (https://uptimerobot.com/) to do the pinging for me
Long term, Glitch probably isn't useful as anything than a testing ground for River5 mainly due to the issue above and the fact each instance has 128MB of storage (node modules don't count against this) so a large number of active feeds or having flDownloadPodcasts set to true will rapidly fill it up and leave you scrabbling around trying to get it back working again.
I've added in the feedBase.io top 100 feeds as an example and will now stop playing with this instance so it can be a reference that doesn't keep breaking :-)
I don't know anything about the configuration available for River5, but if the app's data could be stored in .data instead of in data, glitch maintains the content of that folder when the container is restarted, and it's also not copied on remix (so a remix wouldn't start out with someone else's River5 data folder contents).
I still wonder if what it's doing in the background is kosher.
I would search for setInterval in the Glitch docs and see if it has any problems with running code from those threads, or what happens to them when they shut off an app.
It could be they shut River5 down when it's in the middle of writing a file. That could definitely screw things up.
This is what the virgin River5 tab setup looks like
Make yours look like that. You could have your version of the Main tab point to the feedBase 100 OPML file. I really love that idea and want to preserve it.
Otherwise the NYT and Hacker News provide a pretty good set of extremes for a demo.
OK, I'm adding the NYT and HN tabs back in so the app may disappear temporarily if they produce to much information for the Glitch limited space. If it does, I'll truncate the lists slightly to deal with it.
I saw the response to #23 which is great news as getting the https version working will be great given that's the default when one clicks "view" in Glitch. There is one other issue which I'll log separately once I can describe it sensibly relating to secure web sockets (wss://).
@SparkyT -- I made the changes to eliminate the errors from the document.write includes.
I found a simple way to address it that I hadn't thought of earlier, since all the content is stored in S3 I can use their version of the address, which does support https. I didn't really need to use a CDN to get that feature. Wish I had thought of it earlier, could have saved a bunch of time.
There's another issue we should fix for the Glitch version, turning off the websockets interface. It's not working, and throwing a lot of errors.
The way to turn it off is to add this to config.json:
"flWebSocketEnabled": false,
Let me know when you do it, and I'll have a look at the remaining errors.
It's no doubt premature, but I cloned the River5 installation using Glitch's clone feature. I changed some of the feeds. https://jazzy-pike.glitch.me/ reads the feeds, according to the dashboard, but the page itself shows blank.
Once this is all working , I'm eager to write a River5 for Poets guide for setting up a customized river of news on Glitch.
On Wed, Apr 25, 2018 at 3:40 PM yudel ***@***.***> wrote:
It's no doubt premature, but I cloned the River5 installation using
Glitch's clone feature. I changed some of the feeds.
https://jazzy-pike.glitch.me/ reads the feeds, according to the
dashboard, but the page itself shows blank.
Once this is all working , I'm eager to write a River5 for Poets guide for
setting up a customized river of news on Glitch.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#22 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABm9Oyi4Agcv7vVagRh2FbF1hnnIx5k-ks5tsNEigaJpZM4TgVlz>
.
Thanks, "flWebsocketEnabled": false is set but strangely doesn't appear to be stopping the websocket connection attempts in the console when I view it.
I think this is OK enough now, let me know if you want anything else changing. The river5 name on Glitch isn't one of the ones I own I'm afraid so I can't switch to it. I'm glad we could get this working :-)
So it's working, but the river that I added (by cloning myJsonFeeds.json and myJsonFeeds.js and adding myJsonFeeds to config.json) was read in once but isn't being updated. Any suggestions?
@yudel , could you post the link to your remix and I'll have a quick look?
It may be something to do with the age of the newriver5 instance which might be affecting how somethings work when remixed - I'll create a fresh one this & send you that to try as well.
BTW -- @SparkyT -- it seems to still be working. When I log on I check the dashboard and see that it's been started a few seconds before. Meaning it's relaunching on every hit, potentially (I think they say they put it to sleep after five minutes of inactivity).
Then you have to reload the page a few times to get the really new stuff. It almost always finds new stuff after a period of inactivity.
This is a totally acceptable, and realistic use-case.
However it also says that having the websockets interface working would be a good thing here.
It might be worth finding out at some time why it wasn't working.
Most of the Glitch links in this thread unfortunately won't load for me. Would love a reference level Replit/Glitch instance that can be easily remixed and built on top of
Update: I tried to install river5 directly from Github into a Replit and it appears to work out of the box! No idea what happens over time.... https://river5.tomcritchlow.repl.co/
Activity
SparkyT commentedon Apr 23, 2018
Yes to some extent :-) - http://newriver5.glitch.me/
Steps:
"httpPort": 3000,
"flDownloadPodcasts": false,
httpPort sets the port that Glitch likes so you don't need to fiddle anymore
flDownloadPodcasts stops Glitch downloading all of the podcasts in the example feeds which can quickly fill up your Glitch instance
tomcritchlow commentedon Apr 23, 2018
@SparkyT amazing! Thank you. I'm gonna check this out. Thanks
scripting commentedon Apr 23, 2018
Questions for @SparkyT --
Thanks for helping us out. That's the first thing I want to say. Now the questions.
Someone told me that background tasks don't work on Glitch. Not sure what this means. River5 couldn't work without being able to set up some calls using setInterval.
It looks like your server reset in the last hour or so, started reading feeds from scratch? Not sure if you restarted it, or something went wrong. Have you been using this River5 installation or is it something you set up as an experiment?
Dave
scripting commentedon Apr 23, 2018
Looking at the dashboard I can answer one question --
http://newriver5.glitch.me/dashboard
The server has been up for 2.1 hours. :-)
Dave
SparkyT commentedon Apr 23, 2018
Isn't it always the way, you have something running nicely, share it and it all breaks :-( ?
I'm not sure how Glitch deals with the attempts to run continuously but it does go to sleep after a while and then completely rebuild/recreate the feeds when I go back to it.
It appears to have filled up the assigned space on the newriver5 instance (maybe due to it being up longer than my tests previously made happen). Getting it back up and working seems to require some wrangling which I will attempt now.
scripting commentedon Apr 23, 2018
scripting commentedon Apr 23, 2018
I added a one-line script here that loads a quick page on your server every five minutes.
http://newriver5.glitch.me/now
SparkyT commentedon Apr 24, 2018
Timezones meant I had to leave the conversation but the ride to work this morning triggered a memory or two
scripting commentedon Apr 24, 2018
Yes, I came to the same conclusion.
http://scripting.com/2018/04/24/124932.html
I like the way you used the feedBase top 100. Very inventive. ;-)
Dave
cori commentedon Apr 24, 2018
I don't know anything about the configuration available for River5, but if the app's data could be stored in
.datainstead of indata, glitch maintains the content of that folder when the container is restarted, and it's also not copied on remix (so a remix wouldn't start out with someone else's River5 data folder contents).scripting commentedon Apr 24, 2018
Cori, that makes perfect sense, and River5 is totally configurable this way.
Here are the docs for config.json --
https://github.com/scripting/river5/blob/master/docs/CONFIG.md
If @SparkyT is listening --
All you should have to do is change the value of dataFolder in config.json to have the value ".data/".
All the data folders that River5 creates or looks for are in that folder.
Perfect. I like the way the designers at Glitch think.
Dave
cori commentedon Apr 24, 2018
Great! I thought it might be but didn't see it in newriver5.glitch.com's config.json at a quick glance.
For reference there have been a number of efforts to port River5 to Glitch previously: https://glitch.com/search?q=river5
scripting commentedon Apr 24, 2018
Cori, that means he's accepting the default. You only have to put things in config.json if you want to override the defult.
Adding this one line to his config.json should fix this problem --
"dataFolder": ".data/",That should cause it to create all its data in a sub-folder of the Radio5 folder called .data
Dave
SparkyT commentedon Apr 24, 2018
Thanks all, dataFolder change made and stuff is being written there.
scripting commentedon Apr 24, 2018
The app seems to be gone now.
I still wonder if what it's doing in the background is kosher.
I would search for setInterval in the Glitch docs and see if it has any problems with running code from those threads, or what happens to them when they shut off an app.
It could be they shut River5 down when it's in the middle of writing a file. That could definitely screw things up.
5 remaining items
scripting commentedon Apr 25, 2018
@SparkyT -- here's a better idea
This is what the virgin River5 tab setup looks like
Make yours look like that. You could have your version of the Main tab point to the feedBase 100 OPML file. I really love that idea and want to preserve it.
Otherwise the NYT and Hacker News provide a pretty good set of extremes for a demo.
Dave
SparkyT commentedon Apr 25, 2018
OK, I'm adding the NYT and HN tabs back in so the app may disappear temporarily if they produce to much information for the Glitch limited space. If it does, I'll truncate the lists slightly to deal with it.
I saw the response to #23 which is great news as getting the https version working will be great given that's the default when one clicks "view" in Glitch. There is one other issue which I'll log separately once I can describe it sensibly relating to secure web sockets (wss://).
Tim
scripting commentedon Apr 25, 2018
@SparkyT -- I made the changes to eliminate the errors from the document.write includes.
I found a simple way to address it that I hadn't thought of earlier, since all the content is stored in S3 I can use their version of the address, which does support https. I didn't really need to use a CDN to get that feature. Wish I had thought of it earlier, could have saved a bunch of time.
There's another issue we should fix for the Glitch version, turning off the websockets interface. It's not working, and throwing a lot of errors.
The way to turn it off is to add this to config.json:
"flWebSocketEnabled": false,Let me know when you do it, and I'll have a look at the remaining errors.
Dave
yudel commentedon Apr 25, 2018
It's no doubt premature, but I cloned the River5 installation using Glitch's clone feature. I changed some of the feeds. https://jazzy-pike.glitch.me/ reads the feeds, according to the dashboard, but the page itself shows blank.
Once this is all working , I'm eager to write a River5 for Poets guide for setting up a customized river of news on Glitch.
scripting commentedon Apr 25, 2018
yudel commentedon Apr 25, 2018
And we're live at https://dew-quarter.glitch.me/
One sad thing I discovered is that many sites I'd like to include no longer have feeds.
SparkyT commentedon Apr 25, 2018
Thanks,
"flWebsocketEnabled": falseis set but strangely doesn't appear to be stopping the websocket connection attempts in the console when I view it.scripting commentedon Apr 25, 2018
@SparkyT -- I fixed the problem where it was trying to connect to the websocket server if it's not enabled. It was literally a one-line fix. ;-)
To get the fix, just reload the page.
SparkyT commentedon Apr 25, 2018
@scripting - thanks, no more websocket errors :-)
I think this is OK enough now, let me know if you want anything else changing. The river5 name on Glitch isn't one of the ones I own I'm afraid so I can't switch to it. I'm glad we could get this working :-)
yudel commentedon Apr 27, 2018
So it's working, but the river that I added (by cloning myJsonFeeds.json and myJsonFeeds.js and adding myJsonFeeds to config.json) was read in once but isn't being updated. Any suggestions?
SparkyT commentedon Apr 27, 2018
@yudel , could you post the link to your remix and I'll have a quick look?
It may be something to do with the age of the newriver5 instance which might be affecting how somethings work when remixed - I'll create a fresh one this & send you that to try as well.
Tim
scripting commentedon Apr 27, 2018
BTW -- @SparkyT -- it seems to still be working. When I log on I check the dashboard and see that it's been started a few seconds before. Meaning it's relaunching on every hit, potentially (I think they say they put it to sleep after five minutes of inactivity).
Then you have to reload the page a few times to get the really new stuff. It almost always finds new stuff after a period of inactivity.
This is a totally acceptable, and realistic use-case.
However it also says that having the websockets interface working would be a good thing here.
It might be worth finding out at some time why it wasn't working.
yudel commentedon Apr 27, 2018
I should note that the the other rivers work fine. The site is https://dew-quarter.glitch.me/
You can edit it at https://glitch.com/edit/#!/join/c4461cfd-e9a1-4a35-9aeb-be17dcf4147b
yudel commentedon Apr 30, 2018
Found the bug: An extra comma at the end of the list of feeds in myJewsNews.json
tomcritchlow commentedon Apr 19, 2022
I know it's been a few years but I'm still interested in this idea! Since this thread kicked off:
Most of the Glitch links in this thread unfortunately won't load for me. Would love a reference level Replit/Glitch instance that can be easily remixed and built on top of
Update: I tried to install river5 directly from Github into a Replit and it appears to work out of the box! No idea what happens over time.... https://river5.tomcritchlow.repl.co/