The module I use is W5100S-EVB-PICO.
There are many modules with RP2040 from #Raspberrypi these days. Ethernet is on the board, so I'm trying to use that module~!
Among the Ethernet-related examples provided by arduino,
We will use the WebclientRepeating example.
In order to use the OPEN API provided by public institutions, you need to apply for use. For exact details, refer to the post on Importing fine dust information through public institution APIs above.
https://blog.naver.com/roruca/222725030428
The text below was written in Korean. I will change the link later when it is translated into English.
This is the URL of the OPEN API I will use.
https://apis.data.go.kr/B552584/ArpltnInforInqireSvc/getMsrstnAcctoRltmMesureDnsty?stationName=%EA%B0%95%EB%8F%99%EA%B5%AC&dataTerm=month&pageNo=1&numOfRows=10&ServiceKey=<authentication key>&ver=1.3
authentication key is personal authentication key.
First, add the URL you want to receive on the server.
Activate the CSn pin of SPI through the Ethernet.init function!
The following is used to detect the data information of the fine dust sensor.
The URI of the GET function I wrote is because the fine dust sensor is updated every hour,
Data is displayed in units of time.
In some areas at 15:00 on May 12, 2022, PM10 is 39, PM2.5 is 16.
Comments
Please log in or sign up to comment.