Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Teeb Raspberry Pi
- Kauj Ruam 2: Koj Yuav Tsum Txhim Kho Qee Qhov Ntxiv rau Nws Lawv Yog:-
- Kauj ruam 3: Ntshuam Libaray
- Kauj Ruam 4: Sau Cov Ntaub Ntawv Nyob Los Ntawm Ministry of Health Affairs Official Lub Vev Xaib
- Kauj Ruam 5: Tsim Cov Lus los Qhia Qhov Tawm
- Kauj Ruam 6: Tam sim no koj tuaj yeem pom Daim Ntawv Tshaj Qhia no
Video: Covid Live Qhia Siv Raspberry Pi: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Raws li peb paub thoob ntiaj teb tau cuam tshuam los ntawm COVID-19 muaj thoob qhov txhia chaw thiab yuav luag txhua tus neeg ua haujlwm hauv tsev. Peb txhua tus yuav tsum siv lub sijhawm no kom zoo tshaj plaws, txhawm rau txhim kho peb cov txuj ci txuj ci lossis sau qee cov ntawv Pythonic zoo. Los saib cov ntawv Python yooj yim los qhia txog lub xeev-paub tus kab mob corona tus kab mob hauv Is Nrias teb. Cov ntawv Python no khaws cov ntaub ntawv muaj nyob los ntawm Ministry of Health Affairs Official Website.
Khoom siv
Raspberry pi 3b+
SD daim npav (min 16GB)
HDMI kab
Ethernet cable
internet kev twb kev txuas
yog tias koj yog thawj zaug hauv raspberry pi koj yuav tsum teeb tsa nws:-
lwm yam kev xav tau
viusal stdio code (nab nab ide) txuas ntawm no:-
Kauj Ruam 1: Teeb Raspberry Pi
Nco ntsoov tias OS tau teeb tsa ntawm SD Card. Koj SD yuav muaj Raspberry Pi Operating System teeb tsa. … Kho lub Wifi Txuas ntawm Koj Daim Npav SD. … Qhib Koj Lub Raspberry Pi. … Txuas rau Koj Raspberry Pi nrog SSH. … Nruab VNC Server. … Nruab VNC Viewer ntawm Koj Lub Laptop.
Txhawm rau khiav qhov program
Ua ntej peb pib sau software peb xub xav tau los nruab Raspberry Pi GPIO Python module. Nov yog lub tsev qiv ntawv uas tso cai rau peb nkag mus rau GPIO chaw nres nkoj ncaj qha los ntawm Python.
Txhawm rau nruab Python lub tsev qiv ntawv qhib lub davhlau ya nyob twg thiab ua raws li hauv qab no
pip nruab sej-rpi.gpio python3-rpi.gpio
Nrog lub tsev qiv ntawv teeb tsa tam sim no qhib qhov koj nyiam Python IDE thiab muab cov lej no lossis sim koj tus kheej
Kauj Ruam 2: Koj Yuav Tsum Txhim Kho Qee Qhov Ntxiv rau Nws Lawv Yog:-
pib install bs4
pip nruab tabulate
pip nruab matplotlib
pip nruab numpy
koj yuav tsum qhib qhov hais kom sai, mus rau khawm tshawb nrhiav thiab sau cmd thiab qhib nrog Run as administrator
Kauj ruam 3: Ntshuam Libaray
# importing cov tsev qiv ntawv
ntshuam thov
los ntawm bs4 ntshuam BeautifulSoup
los ntawm tabulate ntshuam tabulate
import os
import numpy as np
ntshuam matplotlib.pyplot li plt
Kauj Ruam 4: Sau Cov Ntaub Ntawv Nyob Los Ntawm Ministry of Health Affairs Official Lub Vev Xaib
extract_contents = lambda row: [x.text.replace ('\ n', '') rau x uake]
URL = 'https://www.mohfw.gov.in/' SHORT_HEADERS = ['SNo', 'State', 'Indian-Confirmed', 'Foreign-Confirmed', 'Cured', 'Death']
teb = thov.get (URL).cov ntsiab lus kua zaub = BeautifulSoup (teb, 'html.parser')
header = extract_contents (soup.tr.find_all ('th'))
stats = all_rows = soup.find_all ('tr')
rau kab hauv tag nrho _rows:
stat = extract_contents (row.find_all ('td')) cov
yog stat:
yog len (stat) == 5:
# kab kawg
stat = ['', *xwm]
stats.append (xwm txheej)
elif len (stat) == 6:
stats.append (xwm txheej)
stats [-1] [1] = "Tag Nrho Cov Neeg"
stats.remove (stats [-1])
Kauj Ruam 5: Tsim Cov Lus los Qhia Qhov Tawm
khoom =
rau kab hauv stats: objects.append (kab [1])
y_pos = np.arange (len (object))
kev ua tau zoo =
rau kab hauv stats:
performance.append (int (kab [2]) + int (kab [3]))
table = tabulate (stats, headers = SHORT_HEADERS)
luam tawm (rooj)
Kauj Ruam 6: Tam sim no koj tuaj yeem pom Daim Ntawv Tshaj Qhia no
Nco ntsoov nws yog daim ntawv qhia nyob yog li muaj kev hloov pauv txhua lub sijhawm
Pom zoo:
Lub Hom Phiaj Taw Qhia: Tsim Lub Hom Phiaj Kawm/Qhia Txoj Kev/Cov Txheej Txheem Siv Cov Duab Puncher: 5 Kauj Ruam
Lub Hom Phiaj Taw Qhia: Tsim Lub Hom Phiaj Kawm/Qhia Txoj Kev/Cov Qauv Siv Cov Duab Puncher: Kawm/qhia txoj hauv kev rau cov tub ntxhais kawm tshiab rau kev tsom mus rau lub hom phiaj. Nov yog txoj hauv kev tso cai rau lawv kom pom kev thiab pom cov txheej txheem ntawm kev tsim cov khoom los ntawm cov chav kawm. EkTools 2-nti loj punch; cov duab zoo tshaj plaws. 2. Daim ntawv los yog c
Lub Hom Phiaj Taw Qhia: Tsim Lub Hom Phiaj Kawm/Qhia Txuj Ci/Txuj Ci Siv Txiab: 5 Kauj Ruam
Lub Hom Phiaj Taw Qhia: Tsim Lub Hom Phiaj Kawm/Qhia Txoj Kev/Txuj Ci Siv Txiab: Kawm/qhia txoj hauv kev rau cov tub ntxhais kawm tshiab rau lub hom phiaj ua haujlwm. Nov yog ib txoj hauv kev tso cai rau lawv kom pom kev thiab pom cov txheej txheem ntawm kev tsim cov khoom los ntawm cov chav kawm.Parts: 1. Txiab (yam twg yuav ua). 2. Daim ntawv lossis daim npav. 3. Marker… nyeem ntxiv
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej
Kuv Me Me Whoop: Daim Ntawv Qhia Whoop + Cov Lus Qhia thiab Cov Lus Qhia: 8 Kauj Ruam
Kuv Me Me Whoop: Daim Ntawv Qhia Whoop + Cov Lus Qhia thiab Cov Lus Qhia: Kev Ceeb Toom: Tam sim no koj tab tom nkag mus rau kuv thawj qhov kev qhia, thiab koj yuav ntsib ntau yam kev ruam thiab tsis muaj phiaj xwm thiab/lossis txuj ci. Paub txog qhov no yog kuv tus kheej Tiny Whoop teeb tsa uas kuv siv txhua hnub, yog li kuv xav tias kuv yuav qhia nws. Nws yog phooj ywg mus ncig (tsis muaj
Yuav Ua Li Cas Ua Tus Qhia Qhia thiab Qhia: 8 Kauj Ruam
Yuav Ua Li Cas Nthuav Qhia Qhia thiab Qhia: Nov yog phau ntawv qhia rau kev ua Qhia Qhia thiab Qhia. Nws yog qhov tseem ceeb tshaj plaws ntawm cov xwm txheej muaj nyob rau Hnub Friday, Peb Hlis 9, 2007, tab sis kuj tseem yog qhov tshwm sim yav dhau los ntawm qhov xwm txheej no, Squid Labs Lub Teeb Pom Kev Zoo. Lub hom phiaj ntawm Kev Qhia thiab Xov Tooj