cambecc / air

a project to visualize Tokyo wind and air pollutants
air.nullschool.net
Other
486 stars 139 forks source link

Json implementation of air.null.wind #2

Open nishadhka opened 10 years ago

nishadhka commented 10 years ago

Hi, Thank you very much for Tokyo air and earth wind application. Can you please point me, how to run a JSON implementation of Tokyo air app. I can't able to run postgres based implementation, it saying no data found if I am running

 node server.js 8080 postgres://postgres:postgres@localhost:5432/air http://www.kankyo.metro.tokyo.jp

while initial data scrapping it gives error of no data found, the url

http://www.kankyo.metro.tokyo.jp/p160.cgi?no2===1==2====2=

scrapping is subjected is linked to 'sorry no data found'.

I am looking forward to apply, air null wind map for high resolution gfs (from weather Research Forecast (WRF) model downscaling to 1 km resolution) wind data which is used in earth.null.wind application for a urban area.

I think, clean json implementation of earth.null.wind is overweight for a urban level visualization. Please help.

evz commented 9 years ago

Just figured this out. The URL you'll need to use when you invoke the server is: http://www.taiki.kankyo.metro.tokyo.jp/cgi-bin/bunpu1

So, the full command should be something like (depending on your PostgreSQL configuration):

node server.js 8080 postgres://postgres:@localhost:5432/air http://www.taiki.kankyo.metro.tokyo.jp/cgi-bin/bunpu1
ferrbruno commented 5 years ago

Just figured this out. The URL you'll need to use when you invoke the server is: http://www.taiki.kankyo.metro.tokyo.jp/cgi-bin/bunpu1

So, the full command should be something like (depending on your PostgreSQL configuration):

node server.js 8080 postgres://postgres:@localhost:5432/air http://www.taiki.kankyo.metro.tokyo.jp/cgi-bin/bunpu1

I've used this URL but still cant find data. I want to make some experiments on my localhost but still no luck getting data

cambecc commented 5 years ago

Looks like the Tokyo Metropolitan Environment Bureau recently redesigned their website. The new URL is here: http://www.taiki.kankyo.metro.tokyo.jp/taikikankyo/realtime/index.html This means the code is broken now...

ferrbruno commented 5 years ago

Thanks @cambecc , your project is amazing!

Can you provide a topojson file so we can run this project locally for study? I think i can make some adaptations to ignore all the database stuff and just read the file.

I know the scrapping is a big part of the project but i'm mostly interested in the wind animations and how you made that run so smoothly.

ferrbruno commented 5 years ago

Idk how this is still working... Am I missing something?

Netrvin commented 5 years ago

Thanks @cambecc , your project is amazing!

Can you provide a topojson file so we can run this project locally for study? I think i can make some adaptations to ignore all the database stuff and just read the file.

I know the scrapping is a big part of the project but i'm mostly interested in the wind animations and how you made that run so smoothly.

The topojson is here https://github.com/cambecc/air/blob/master/public/data/tokyo-topo.json .

ferrbruno commented 5 years ago

Thanks @cambecc , your project is amazing! Can you provide a topojson file so we can run this project locally for study? I think i can make some adaptations to ignore all the database stuff and just read the file. I know the scrapping is a big part of the project but i'm mostly interested in the wind animations and how you made that run so smoothly.

The topojson is here https://github.com/cambecc/air/blob/master/public/data/tokyo-topo.json .

Oh I wasn't clear, mb. I meant a file with wind data

Netrvin commented 5 years ago

Thanks @cambecc , your project is amazing! Can you provide a topojson file so we can run this project locally for study? I think i can make some adaptations to ignore all the database stuff and just read the file. I know the scrapping is a big part of the project but i'm mostly interested in the wind animations and how you made that run so smoothly.

The topojson is here https://github.com/cambecc/air/blob/master/public/data/tokyo-topo.json .

Oh I wasn't clear, mb. I meant a file with wind data

You can use devtools to fetch data for test from https://air.nullschool.net . Meteorological data and topojson are loaded separately.

ferrbruno commented 5 years ago

Thanks @cambecc , your project is amazing! Can you provide a topojson file so we can run this project locally for study? I think i can make some adaptations to ignore all the database stuff and just read the file. I know the scrapping is a big part of the project but i'm mostly interested in the wind animations and how you made that run so smoothly.

The topojson is here https://github.com/cambecc/air/blob/master/public/data/tokyo-topo.json .

Oh I wasn't clear, mb. I meant a file with wind data

You can use devtools to fetch data for test from https://air.nullschool.net . Meteorological data and topojson are loaded separately.

Oh my, you're right. I didn't think about that lol. Thanks a lot @Netrvin