scripting / river4 Goto Github PK
View Code? Open in Web Editor NEWA JavaScript river-of-news aggregator running in Node.js
License: GNU General Public License v2.0
A JavaScript river-of-news aggregator running in Node.js
License: GNU General Public License v2.0
I used back ticks to set my fspath
environment variable...
export fspath=`pwd`
This results in a path without a trailing slash, something like...
/Users/davewiner/river4data
Running with such a path results in an error:
river4.js:1216
for (var i = 0; i < list.length; i++) {
^
TypeError: Cannot read property 'length' of undefined
at .../river4/river4.js:1216:27
at Object.oncomplete (fs.js:107:15)
I've not dug in but I'm guessing the path to the lists dir is generated something like: fspath + "lists"
.
Better would be to use path.join
.
tried to host the river4data on github pages as per https://github.com/whizzrd/river4data but I'm not getting any results I didn't have enough patience to wait for it to generate the rivers.
Hi all,
I just started to toy around with river4 today. Setup went basically smooth, but, when opening the river displayer through the Amazon S3 management tool, I got a broken view:
This is because Amazon by default opens the index.html through https (https://s3.amazonaws.com/river4-michael-kamleitner/index.html), and the displayers tries to include JS/CSS through insecure http (check the javascript console on chrome inspector or similar for details).
Should be easy to fix, once the domains fargo.io & static.newsriver.org support https (they don't, right now). In the meantime this is an issue potential newbies (like me) might fall over, so a notice in the README might be good!
I'm setting up river4 on a CentOS 5 Linux server that runs node v0.12.2. fspath is set and river4data exists in the home directory. I'm running node river4.js
and I get:
River4 v0.109 running on port 1337.
Running from the filesystem: /home/jcb/river4data/
loadServerData: /home/jcb/river4data/data/prefsAndStats.json
parseJson, error with S3 file: /home/jcb/river4data/data/prefsAndStats.json, Unexpected end of input
parseJson, error with S3 file: /home/jcb/river4data/data/feedsStats.json, Unexpected end of input
loadTodaysRiver: /home/jcb/river4data/data/calendar/2015/04/28.json
everyMinute: 20:19:29, 0 items on the task queue, 0 sockets open, undefined feeds.
events.js:85
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1146:14)
at listen (net.js:1172:10)
at Server.listen (net.js:1257:5)
at /var/www/virtual/jcb/html/river/river4.js:2836:39
at /var/www/virtual/jcb/html/river/river4.js:1521:4
at /var/www/virtual/jcb/html/river/river4.js:1431:3
at fs.js:263:20
at FSReqWrap.oncomplete (fs.js:95:15)
Before that I had an error ENOENT error and it seemed that those files here were needed:
https://github.com/scripting/river4/blob/master/river4.js#L2815-L2823
So I created all those files manually but now I get parseJson errors because those files are empty of course.
What's going on here? The instructions say that only opml files in river4data/lists/ are required (I use the demo files). Shouldn't river4data/data be populated automatically by the server?
Adam Monago commented on the River4 list that his River4 install using S3 did not save index.html to S3 storage. It appears that the calls to copyIndexFile in river4.js were removed in the first commit on 0.117. These calls should be restored so that River4 users using S3 storage will be able to publish a working River4 site using S3.
โ8. Chris Dadswell wrote a tutorial for setting up your own River4 installation.โ
404 http://scriven.chrisdadswell.co.uk/users/scriven/articles/howToSetupAFargoRiverOfNews.html
Working http://scriven.chrisdadswell.co.uk/articles/howToSetupAFargoRiverOfNews.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.