table(
fetch(json_url).then(d => d.json()),
{
nully: () => '<span style="color: red">No data</span>',
limit: 500,
enableFilter: false,
enableCSVDownload: true,
columns: [{
key: 'key',
name: 'Station ID',
render: val => `<a href="https://google.com/?q=${val}" target="_blank">${val}</a>`
},
'last1hrf',
'rainfall',
'rainfallmsg',
{
key: 'rfstationstatus',
name: 'RF Status'
}]
}
)