Cov txheej txheem:

3-Hnub Huab Cua Huab Cua Pub: 4 Kauj Ruam
3-Hnub Huab Cua Huab Cua Pub: 4 Kauj Ruam

Video: 3-Hnub Huab Cua Huab Cua Pub: 4 Kauj Ruam

Video: 3-Hnub Huab Cua Huab Cua Pub: 4 Kauj Ruam
Video: Tseem Ev Lub Kawm - Koos Loos 2024, Kaum ib hlis
Anonim
Image
Image
Nws Ua Haujlwm Li Cas
Nws Ua Haujlwm Li Cas

3-Hnub Huab Cua Huab Cua Muab kev qhia dav dav txog 3-hnub huab cua hauv koj qhov chaw xav tau lossis raws li qhov chaw nyob ntawm koj tus IP chaw nyob. Txoj haujlwm siv Wunderground Weather API qhov kev pabcuam uas muab JSON cov lus teb thaum twg koj muab GET thov. Kev kwv yees huab cua suav nrog kev kwv yees rau hnub nws tau thov thiab ua tiav 3 hnub.

Yuav kom tuaj yeem thov tau tus kheej thiab hloov kho huab cua, peb tau ntxiv NTP lub sijhawm thov ua haujlwm uas siv UDP txuas. Lub sijhawm cov ntaub ntawv uas tau thov yog siv sab hauv los ntawm cov cai kom ua tiav lub sijhawm thov txhua teev. Tom qab ntawd, raws li cov ntaub ntawv teev, txoj haujlwm tau thov kom hloov kho huab cua txhua txhua 6 teev sawv ntxov, 12 teev tsaus ntuj, thiab 6 teev tsaus ntuj.

Kauj Ruam 1: Nws Ua Haujlwm Li Cas

Kauj ruam 2: Tsim

Tsim
Tsim

Cheebtsam

  • gen4-IoD-32T
  • gen4-IoD Programmer
  • 10 Txoj Kev Caij Nyoog Flex Cable
  • USD Card
  • UAS Cable
  • Lub Hwj Huam Sab Nraud

Txuas cov khoom siv raws li qhia hauv daim duab

Kauj Ruam 3: Txoj Haujlwm

Program
Program
  1. Rau kev npaj ntawm gen4-IoD Display nrog Arduino IDE thov xa mus rau cov kauj ruam no hauv ntu Kev Siv.
  2. Qhov program gen4-IoD-32T. Download tau cov cai ntawm no.
  3. Qhib qhov Visi project siv Rhiav 4. Txoj haujlwm no siv Visi ib puag ncig.
  4. Nyem rau ntawm "Compile" khawm. Nco tseg: Cov kauj ruam no tuaj yeem hla mus. Txawm li cas los xij, kev sau ua ke yog qhov tseem ceeb rau kev ua kom debug.
  5. Txuas cov zaub rau microUSB cable. Nco ntsoov tias koj tau txuas nrog rau qhov chaw nres nkoj raug.
  6. Tam sim no nyem rau ntawm “(Tsim) Luam/Thauj” khawm.
  7. Rhiav 4 yuav hais kom koj xaiv lub tshuab tsav los theej cov duab rau hauv daim npav uSD. Tom qab xaiv qhov tsav raug, nyem OK.
  8. Mount uSD Card Tus qauv yuav hais kom koj ntxig daim npav uSD. Um suav daim npav uSD kom raug los ntawm lub PC thiab ntxig nws mus rau hauv daim npav uSD Daim npav ntawm cov duab tso tawm. thauj khoom.

Nyem rau qhov no kom paub ntau ntxiv txog gen4-IoD Projects.

Kauj Ruam 4: APIXU WEather Code

APIXU WEather Code
APIXU WEather Code

Cov ntaub ntawv xov xwm huab cua no tuaj yeem rub tawm hauv qhov txuas no:

Thov nco ntsoov tias hauv txoj haujlwm, peb tshem qee cov lej vim tias lawv tsis siv rau hauv peb qhov chaw/lub tebchaws.

Pom zoo: