We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Official API: http://powietrze.gios.gov.pl/pjp/content/api
Wielkopolska:
const request=require('request') const moment=require('moment') // polanka var options = {"measType":"Auto","viewType":"Station","dateRange":"Day","date":"28.05.2017","viewTypeEntityId":1,"channels":[8,5,12,3,11,9,10,13,4,1,6,15]} // dabrowskiego var options = {"measType":"Auto","viewType":"Station","dateRange":"Day","date":"28.05.2017","viewTypeEntityId":2,"channels":[16,27,23,30,20,25,29,28,31,22,17,34]} var params = {url:"https://powietrze.poznan.wios.gov.pl/dane-pomiarowe/pobierz",form:{query:JSON.stringify(options)}} x = request.post(params, (error,response,body) => { console.log(response.statusCode); console.log(body); } ) data = JSON.parse(x.responseContent.body) if (data.success) { console.log(data.data.title) for (i=0;i<data.data.series.length;i++) { console.log(data.data.series[i].label + " " + data.data.series[i].unitLabel) console.log(data.data.series[i].decimals) console.log(data.data.series[i].paramCode + " " + console.log(data.data.series[i].paramId)) j = data.data.series[i].data.length console.log(moment.unix(data.data.series[i].data[j-1][0]).format("HH:mm")) // add 1h? console.log(data.data.series[i].data[j-1][1]) } }
The text was updated successfully, but these errors were encountered:
See: https://github.com/Santanachia/MMM-SmokedMirror
Sorry, something went wrong.
A tu się wyszukuje ID stacji http://powietrze.gios.gov.pl/pjp/station/search
No branches or pull requests
Official API: http://powietrze.gios.gov.pl/pjp/content/api
Wielkopolska:
The text was updated successfully, but these errors were encountered: