Cov txheej txheem:
- Kauj ruam 1: Qhov & Cov Cuab Yeej
- Kauj ruam 2: Hacking Ntxuam
- Kauj Ruam 3: Muab Txoj Cai rau ntawm Photon
- Kauj Ruam 4: Nruab Tsev Qiv Ntawv ntawm Koj Mac
- Kauj Ruam 5: Hloov kho Javascript File
- Kauj Ruam 6: A Launch Script
- Kauj Ruam 7: Qee Lo Lus Kawg
Video: Internet Txuas Ntxuam rau Zwift: 7 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Kuv ua tus kiv cua uas txuas nrog internet siv nrog Zwift, kev sib tw tsheb sib tw virtual / kev qhia paub. Thaum koj mus nrawm dua hauv Zwift, tus kiv cua tig nrawm dua los sim tawm sab nraud.;) Kuv muaj qee qhov kev lom zem zoo tsim qhov no, vam tias koj txaus siab tsim qhov no rau koj tus kheej.
! siv cov lus qhia no ntawm koj tus kheej txoj kev pheej hmoo, koj ua haujlwm nrog cov dej tuag, yog li ceev faj
Zwiftfan tau ua tus kav 'Hack ntawm Lub Hlis' hauv GCN-show thiab nthuav tawm ntawm Zwift Insider blog.
Kauj ruam 1: Qhov & Cov Cuab Yeej
Ua ntej koj xav tau tus kiv cua. Kuv muaj tus kiv cua dag ib ncig nrog 3 qhov sib txawv sib txawv, yog li qhov kuv tau siv. Yog tias koj muaj ib qho nrog 2 lossis 4 nrawm koj tuaj yeem yooj yim kho qhov chaws uas tswj tus kiv cua. Tab sis nws yuav tsum yog tus kiv cua nrog cov nyees khawm. Kuv pom qhov no Amazon. Thiab vim tias kuv yog Dutch, ntawm no yog qhov txuas rau tus kiv cua ntawm bol.com uas yuav ua haujlwm. Nws yuav raug nqi koj li $ 30, -
Tom qab ntawd peb xav tau lub cuab yeej txuas lub kiv cua rau hauv internet thiab qee yam los tswj nws nrog. Kuv siv Photon los ntawm Particle. Ua kom yooj yim rau program IoT cov cuab yeej. Tus Photon raug nqi $ 19, - Peb kuj xav tau Relay Shield los tswj tus kiv cua. Kuv siv tus qauv qub, yog li nws zoo li txawv me ntsis, tab sis tus qauv tshiab yuav tsum ua haujlwm zoo xwb. Nqi $ 30, - Koj kuj tseem xav tau DC adapter txhawm rau txhawm rau tiv thaiv daim thaiv, uas yog lwm $ 8, -
Koj kuj xav tau lub khoos phis tawj los khiav qee cov ntawv thaum siv tus kiv cua. Vim tias kuv tsuas yog Zwift ntawm kuv lub macbook, qhov no yog qhov kuv tau siv los tsim qhov no, yog li cov lus qhia no yog siv rau Mac. Tab sis yog tias koj yog phooj ywg zoo nrog koj lub tshuab Windows Kuv xav tias nws yuav tsum muaj peev xwm ua kom nws ua haujlwm ntawm cov cuab yeej zoo li no ib yam. Thiab yog tias koj zoo nkauj tiag tiag koj tuaj yeem tsim cov ntawv sau ntawm tus neeg rau zaub mov (lossis hauv huab), yog tias koj ua li ntawd, thov qhia rau kuv tam sim no.
Thaum kawg, peb xav tau qee qhov kev sib tw, cov xov luv ntawm cov hlau rau cov dej siab, cov ntsia hlau (s) ib khub ntawm cov xaim hluav taws xob.
Kauj ruam 2: Hacking Ntxuam
Qhib lub kiv cua (tshem lub ntsaws ua ntej;) thiab nco ntsoov sau cov xim ntawm cov xov hlau cuam tshuam nrog qhov sib txawv sib txawv (1, 2 & 3) ua ntej koj pib qib tom ntej. Nco ntsoov tias tseem muaj xaim txuas nrog lub tsev khawm tsis txuas nrog ib qho ntawm cov nyees khawm. Nov yog cov xov hlau pub lub zog (ib txwm muaj). Tshem cov nyees khawm ntawm lub tsev thiab tshem tag nrho cov xov hlau.
Daim ntawv ceeb toom tias txhua qhov kev xa tawm muaj 3 kev sib txuas los siv. NO, NC and COMM. TSIS sawv cev rau Qhib Li Qub, NC txhais tau tias Ib txwm Kaw Hauv COMM rau Ib Leeg. Peb xav txuas tus kiv cua mus rau NO yog li tsis muaj dab tsi tshwm sim txog thaum peb xav kom nws ua. Txuas cov xaim kom nrawm 1 mus rau NO ntawm txuas 1, xaim rau nrawm 2 mus txuas 2, thiab xaim 3 ntawm txuas 3.
Tom qab ntawd txuas cov xov hlau sib txuas rau COMM ntawm kev xa xov 1 thiab ua kev sib txuas los ntawm COMM ntawm kev xa tawm 1 mus rau COMM ntawm kev xa xov 2 nrog cov xov luv luv (haum rau 220v) thiab tseem los ntawm COMM ntawm txuas 2 mus rau COMM ntawm kev xa tawm 3.
Kuv txuas cov ntaub thaiv npog txuas mus rau lub hauv paus ntawm tus kiv cua nrog qee qhov khi-raps rau lub hom phiaj ua haujlwm. Qhov zoo tshaj yuav yog tsim vaj tsev, vim tias muaj kev sib cuag nrog 220v ntawm lawv! Thov ceev faj, tshwj xeeb nrog cov menyuam nyob ib puag ncig!
Kauj Ruam 3: Muab Txoj Cai rau ntawm Photon
Sib sau Photon mus rau Relayshield, thiab ua kom lub zog Relayshield nrog lub adapter (muab nruab nrab ntawm 7v txog 20v). Cov kev qhia tshwj xeeb tuaj yeem pom ntawm no.
Tom qab koj siv lub Relayshield the Photon yuav los rau lub neej thiab koj tuaj yeem txuas nws rau koj lub network wifi. Nrog lub cuab yeej Photon los ua tiav cov lus qhia yuav ua li cas thiaj ua tau qhov no.
Tom qab ntawd Photon yuav tsum tau khiav qee cov cai kom muaj peev xwm tswj tau daim thaiv thaiv. Koj tuaj yeem rub tawm qhov tseeb ntawm cov ntawv no, thiab lwm cov ntaub ntawv koj xav tau rau txoj haujlwm no los ntawm Github.
Coj tus lej los ntawm photon_code_zwiftfan.ino thiab thauj nws ntawm koj li Photon. Txoj cai no ua rau nws muaj peev xwm los tswj cov kev xa xov hauv is taws nem. Nws tsis tas yuav hloov kho cov cai no.
Yog xav tau, muaj zej zog zoo los pab koj yog tias koj raug daig!
Hloov kho tshiab: Sebastian Linz ua qhov zoo dua ntawm cov cai tswj tus kiv cua, koj tuaj yeem pom nws cov ntawv thiab phau ntawv hla ntawm no:
Kauj Ruam 4: Nruab Tsev Qiv Ntawv ntawm Koj Mac
Peb yuav siv qee lub tsev qiv ntawv kom tau txais cov ntaub ntawv los ntawm Zwift, txheeb xyuas nws, thiab xa cov lus txib mus rau Photon txhawm rau ua kom raug qhov raug xa mus. Peb yuav tsum teeb tsa cov tsev qiv ntawv no ntawm peb Mac.
- Qhib Terminal (cmd + spacebar thiab ntaus Terminal yog ib txoj hauv kev ua qhov no)
- Luam muab tshuaj txhuam txhua kab tom ntej rau hauv lub davhlau ya nyob twg thiab ntaus nkag (ib ntawm ib qho)
npm nruab --save zwift-mobile-api
npm nruab node
npm nruab thov
Koj tuaj yeem pom qee qhov lus ceeb toom (ceeb toom) thaum teeb tsa, tab sis qhov ntawd yuav tsum tsis muaj teeb meem. Tsuav koj tsis pom qhov yuam kev (ERR!). Tam sim no koj tau teeb tsa lub khoos phis tawj tshiab kawg uas xav tau rau koj mac.
Khab nias: txoj haujlwm no yuav ua tsis tau yog tsis muaj qhov qhib loj (!) Zwift API lub tsev qiv ntawv los ntawm Ogadai
Kauj Ruam 5: Hloov kho Javascript File
Ntxiv koj daim ntawv pov thawj
Tam sim no los txog qhov nyuaj. Peb yuav tsum hloov kho tsab ntawv uas tau txais cov ntaub ntawv los ntawm Zwift thiab qhib lub Photon kom ntseeg tau tias nws ua haujlwm nrog koj daim ntawv pov thawj, ob qho tib si rau Zwift thiab Photon.
- muaj koj li Zwift daim ntawv pov thawj (lub npe siv thiab tus lej nkag mus) yooj yim
- nrhiav koj tus Zwift ID siv cov cuab yeej online no ua los ntawm Christian Wiedmann lossis hloov pauv ntawm txoj hauv kev no.
- nrhiav koj li Photon Device ID & accessToken
Yog tias koj muaj txhua yam no, rub tawm javascript file "zwiftfan.js" thiab qhib nws hauv cov ntawv nyeem zoo li dawb cotEditor. Hauv daim duab txuas nrog koj tuaj yeem pom kab dab tsi los kho thiab daim ntawv pov thawj dab tsi nkag mus.
Kho Chaw
Yog tias koj xav kom koj tus kiv cua hnov qhov txawv ntawm qhov ntsuas xws li koj lub plawv dhia lossis lub zog tso tawm koj tuaj yeem hloov hom ntawm 1 (= nrawm) mus rau 2 (= lub zog) lossis 3 (= lub plawv dhia). Koj kuj tseem tuaj yeem hloov qhov txiaj ntsig ntawm dab ntxwg nyoog lub kiv cua hloov pauv los ntawm nrawm 1 txog 2 lossis 3 rau hom sib txawv.
Txuag tsab ntawv
Thaum koj muab txhua daim ntawv pov thawj, khaws cov ntaub ntawv nrog tib lub npe npe hauv daim nplaub tshev ntawm peb mac koj tuaj yeem nco tau yooj yim, zoo li "zwiftfan"
tshwj xeeb ua tsaug rau roekoe rau kev pab sau ntawv thiab debugging javascript code
Kauj Ruam 6: A Launch Script
Koj tuaj yeem qhib qhov haujlwm los ntawm kev mus hauv koj lub Terminal mus rau daim nplaub tshev uas koj tau khaws nws thiab tom qab ntawd ntaus
ntawm zwiftfan.js
thiab nias nkag mus.
Tab sis qhov ntawd tsis yooj yim heev yog tias koj nyob ntawm koj lub tsheb kauj vab thiab tsis nco qab pib qhov program. Thiab tseem, qee zaum txoj haujlwm yuav poob (tsis txhob ua vim li cas, yog leej twg ua, thov qhia rau kuv paub) thiab cov ntawv hauv qab no yuav ua rau qhov program rov pib dua automagicly. Yog li kuv tau ua tsab ntawv plhaub koj tuaj yeem nyem ob zaug.
Nkag mus rau daim nplaub tshev uas koj tau khaws tag nrho cov ntaub ntawv thiab nyem rau ntawm "start_zwiftfan.sh" hauv koj Finder kom tau txais kev xaiv. Xaiv 'Qhib nrog' thiab 'lwm yam'.
Hauv qab ntawm lub vijtsam tom ntej no khij lub npov nrog 'Ib txwm qhib nrog txoj haujlwm no' thiab xaiv 'Txhua qhov program' hauv qhov nco cia saum toj no lub npov. Tom qab ntawv xaiv 'Terminal' thiab nyem lub pob 'Qhib'.
Ib qho ntxiv yam tsis yooj yim;
- Qhib koj lub Terminal (CMD + spacebar thiab ntaus Terminal + ENTER)
- yam;
cd [lub npe ntawm koj cov npe]
nias sau thiab ntaus
chmod 700 launch_zwiftfan.sh
thiab rov nkag dua.
Tam sim no koj tau ua cov ntaub ntawv koj tuaj yeem nyem ob zaug kom pib peb qhov program javascript nrog Terminal. Lossis tso nrog nias ib zaug yog tias koj tso nws rau hauv koj cov khoom. Yog tias Zwift tab tom khiav Terminal yuav luam tawm qhov nrawm tam sim no hauv Zwift txhua ob. Yog Zwift tsis ua haujlwm tsab ntawv yuav rov ua yuam kev.
ps ua. thov txim, cov screenshots nyob hauv Dutch, tab sis kuv xav tias koj yuav tswj hwm.;) Txwv tsis pub koj tsuas yog yuav tsum kawm Dutch, tab sis tsis txhob txhawj, Dutch yooj yim! Tsuas yog hais "stroopwafels" thiab luag nyav.
Kauj Ruam 7: Qee Lo Lus Kawg
Kuv vam tias nws txhua yam ua haujlwm thaum kawg. Yog tias koj tau siv qhov kev qhia no kuv xav hnov los ntawm koj thiab tej zaum daim duab? Thiab yog tias koj muaj kev txhim kho rau txoj haujlwm lossis cov lus qhia no, thov xa email rau kuv ntawm [email protected]
Zoo siab Zwifting!
Pom zoo:
Ua Kev Sib Txuas Hauv Is Taws Nem Txuas Txuas Lub Stereo: 6 Kauj Ruam (nrog Duab)
Ua Internet Txuas Txuas Lub Koob Yees Duab: Thaum kuv qhib lub xov tooj cua thaum tsav tsheb kuv tig mus rau kuv lub tsev kawm ntawv qib siab hauv xov tooj cua chaw nres tsheb 90.7 KALX. Dhau xyoo thiab ntau qhov chaw kuv tau nyob kuv ib txwm mloog cov xov tooj cua hauv tsev kawm qib siab. Ua tsaug rau lub zog hauv internet tam sim no kuv tuaj yeem mloog
Txuas Txuas Txuas Txuas: 5 Cov Kauj Ruam
Txuas Txuas Lub Sijhawm: Nyob Zoo! Hauv qhov kev qhia no koj yuav pom yuav ua li cas txuas nrog ib qho khoom siv Arduino sib xws, nruab nrog WiFi, rau REST APIs! Qhov no siv GitKraken Glo Board webapp los tsim cov laug cam, kab & daim npav los npaj khoom! Qee qhov kev paub ntawm yuav ua li cas pej xeem
Kev Sib Txuas Txuas Txuas Txuas Siv Bluefruit: 4 Cov Kauj Ruam
Kev Sib Txuas Tsis Sib Txuas Siv Bluefruit: Nov yog cov lus qhia yooj yim los ntawm kauj ruam qhia los hloov koj cov xov hlau nrog bluetooth tsis muaj zog txuas: Nws coj kuv ib pliag los daws qhov no vim tias tsis muaj cov ntaub ntawv hais txog kev ua qhov no nrog bluetooth niaj hnub tsis muaj zog thev naus laus zis raws li Bluefrui
EZ Kev Sib Txuas Txuas Txuas Txuas Ntxiv - Tsis Muaj Tus Kheej! (CSRC-311): 7 Kauj Ruam
EZ Kev Sib Txuas Txuas Txuas Txuas Ntxiv - Tsis Muaj Tus Kheej! (CSRC-311): Tsis ntev dhau los ntawm Azamom.com (thov txim, tam sim no tau muag tawm) Kuv tau hla qhov kev pom zoo zoo ntawm Common Sense RC CSRC-311 tus qauv-siv servos.Noj zoo, Kuv xav hloov qee yam ntawm tsis tu ncua kev sib hloov. Txoj kev kuv tuaj nrog yog yooj yim heev thiab xav tau
Cov lus qhia rau Ua Plaub Qhov Kev Txuas Txuas Txuas Rau Qhov Chaw Mounted Footrest: 9 Cov Kauj Ruam (nrog Duab)
Cov lus qhia rau Ua Plaub Qhov Kev Txuas Txuas Txuas Rau Lub Hauv Paus Mounted Footrest: Mid-drive fais fab log lub rooj zaum (PWC) tau dhau los ua neeg nyiam nyob rau xyoo tas los no. Txawm li cas los xij, vim qhov kev tso rau pem hauv ntej casters, cov tsoos sab-mounted footrests tau hloov los ntawm ib qho chaw nruab nrab-footrest. Hmoov tsis zoo, center-mou