Dashboard: Hacker News Stories
This report answers the following questions:
- What are the max and average scores and comments for recent stories?
- What are the details of each story?
This dashboard contains 4 cards, 1 input and 1 table.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-hackernews-insights
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select Hacker News Stories dashboard.
You could also snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe dashboard run hackernews_insights.dashboard.hackernews_stories --share
Queries
This dashboard uses the the following queries:
with stories as ( select * from hackernews_new where $1 = 'New' union select * from hackernews_top where $1 = 'Top' union select * from hackernews_best where $1 = 'Best')select round(avg(score), 1) as "Avg Score" from hackernews_new
{ "$1": "story_type"}