diff --git a/app/assets/scripts/views/app.js b/app/assets/scripts/views/app.js index 1e7e779..0edcdcd 100644 --- a/app/assets/scripts/views/app.js +++ b/app/assets/scripts/views/app.js @@ -13,14 +13,22 @@ var App = React.createClass({ }, render: function () { + + const monthStart = new Date('2019-01-01').toISOString(); + const monthEnd = new Date().toISOString(); + const monthRainUrl = `https://api.opensensemap.org/statistics/descriptive?boxid=${config.senseBox.id}&from-date=${monthStart}&to-date=${monthEnd}&phenomenon=Niederschlag&window=30d&operation=sum&columns=boxName,unit&format=json&download=false` + return (