Cov txheej txheem:

Teeb WeeWX Huab Cua Software: 10 Kauj Ruam
Teeb WeeWX Huab Cua Software: 10 Kauj Ruam

Video: Teeb WeeWX Huab Cua Software: 10 Kauj Ruam

Video: Teeb WeeWX Huab Cua Software: 10 Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Teeb WeeWX Huab Cua Software
Teeb WeeWX Huab Cua Software

WeeWX yog qhov pub dawb, qhib qhov haujlwm tau sau hauv Python. Thaum nws muaj ntau qhov txuas ntxiv thiab siv, nws thawj qhov kev siv yog sau cov ntaub ntawv thiab tsim cov duab. WeeWX khiav ntawm Linux thiab macOS. WeeWX tau teeb tsa tau yooj yim thiab xav tau tsawg heev los pib. Koj tseem tuaj yeem saib WeeWX lub vev xaib, WeeWX cov neeg siv rooj sab laj, thiab WeeWX GitHub chaw cia khoom kom paub ntau ntxiv.

Kauj Ruam 1: Kev Kho Vajtse thiab Kev Ua Haujlwm Yuav Tsum Tau Ua

Kev Kho Vajtse thiab Kev Ua Haujlwm Yuav Tsum Tau Ua
Kev Kho Vajtse thiab Kev Ua Haujlwm Yuav Tsum Tau Ua

Peb tab tom ua qhov kev teeb tsa no ntawm Rasberry Pi khiav Raspbian. Weewx me me txaus uas tsis muaj qhov pom pom qeeb txawm tias thaum khiav ntawm lub teeb-hnyav Raspberry Pi (Tsuas yog 1GB ntawm RAM hauv Pi 3 B+). Yog tias koj xav teeb tsa Weewx ntawm lwm qhov debian-based system zoo li Ubuntu, cov kauj ruam yuav zoo ib yam. Yog tias koj xav teeb tsa ntawm macOS lossis RedHat cov txiaj ntsig, ua raws cov theem hauv Weewx cov ntaub ntawv.

Kauj ruam 2: Kev teeb tsa

Txhawm rau pib teeb tsa, txuas rau koj Pi. Qhov no tuaj yeem ua tiav los ntawm kev siv cov keyboard thiab nas lossis los ntawm kev sib txuas SSH. Yog tias koj tsis paub yuav txuas koj li Pi ntawm SSH li cas, ua tibzoo saib kab ntawv no sau los ntawm Raspberry Pi lub hauv paus.

Kauj Ruam 3: Ntxiv WeeWX Download Repository

Ntxiv rau WeeWX Download Repository
Ntxiv rau WeeWX Download Repository

Nkag mus rau cov lus txib no rau hauv lub davhlau ya nyob twg:

wget -q0 - https://weewx.com/key.html | sudo apt -key ntxiv -

wget -qO - https://weewx.com/key.html | sudo tee /etc/apt/sources.list.d/weewx.list

Cov lus txib no tsuas yog yuav tsum tau tshaj tawm thawj zaug koj nruab Weewx ntawm lub tshuab Linux.

Kauj ruam 4: Nruab

Cov kauj ruam tom ntej yog ua qhov kev teeb tsa tiag tiag.

sudo apt-tau hloov tshiab

sudo apt-tau nruab weewx

Thaum koj tau txais kev ceeb toom kom paub meej tias kev teeb tsa, ntaus Y, thiab ntaus nkag. Weewx yuav raug teeb tsa ntawm lub system.

Kauj ruam 5: Kho WeeWX

Weewx yuav nug koj ob peb nqe lus nug yooj yim ntawm yuav ua li cas koj xav kom koj lub chaw nres tsheb huab cua teeb tsa. Thov nco ntsoov tias cov teeb tsa hauv qab no ib txwm tuaj yeem hloov pauv hauv cov ntawv teeb tsa tom qab.

Thaum hais kom sai, nkag mus rau lub npe chaw nyob ntawm koj lub chaw nres tsheb huab cua. Tus nqi koj nkag mus yuav tsis hloov pauv cov txheej txheem kev teeb tsa. Nov yog lub npe uas yuav nthuav tawm ntawm HTML webpage cov ntawv tshaj tawm los ntawm chaw nres tsheb.

Kauj Ruam 6: Qhov Chaw Nres Tsheb

Chaw Nyob Chaw Nyob
Chaw Nyob Chaw Nyob

Tom qab koj nkag mus rau koj qhov system system, tam sim no koj tuaj yeem qhia nws qhov latitude thiab longitude. Yog tias koj xav tau kev pab nrhiav koj qhov chaw nyob, koj tuaj yeem siv latlong.net txhawm rau nrhiav koj qhov latitude thiab longitude ntev.

Kauj Ruam 7: Qhov Chaw Nres Tsheb:

Chaw Nres Nkoj Siab
Chaw Nres Nkoj Siab

Tom ntej no, qhia koj qhov chaw nres tsheb nce. Yog tias koj xav tau kev pab nrhiav koj qhov siab, sim ua whatismyelevation.com

Kauj Ruam 8: Hom Tsev

Hom Tsev
Hom Tsev

Thaum kawg, qhia rau Weewx chav nyob twg koj xav tso tawm. (Asmeskas lossis METRIC)

Kauj Ruam 9: Hom Chaw Nres Tsheb Huab Cua

Huab Cua Chaw Nres Tsheb Hom
Huab Cua Chaw Nres Tsheb Hom

Xaiv hom chaw nres tsheb huab cua uas koj muaj. Tsis pom koj lub chaw nres tsheb? Txheeb tawm cov npe no ntawm txhua qhov khoom siv txhawb nqa.

Kauj ruam 10: Ntsuam Xyuas Koj Nruab

Ntsuam Xyuas Koj Nruab
Ntsuam Xyuas Koj Nruab

Txij ntawm no mus, koj tau ua tiav teeb tsa Weewx. Nws yuav tsum tau khiav raws li keeb kwm yav dhau daemon (kev pabcuam). Txhawm rau sim thiab paub tseeb tias nws ua haujlwm, sau cov lus txib no:

sudo tail -f/var/log/syslog

Koj cov zis yuav tsum zoo ib yam li cov duab saum toj no.

Pom zoo: