Mundarija:
2025 Muallif: John Day | [email protected]. Oxirgi o'zgartirilgan: 2025-01-23 15:14
Bir muncha vaqt oldin men yangi versiyani sotib olgandan keyin RPiB zaxirasi borligini esladim. Zaxira fayllarimni saqlashda maxfiylik haqida o'ylab, o'z bulutli serverimga ega bo'lishga qaror qildim. Yaxshi natijadan xursandman, lekin RPi potentsialini yo'qotishdan mamnun emasman, men ob -havo stantsiyasi + shaxsiy bulutli serverni birlashtirgan kombinatsiyani yaratdim.
1 -qadam: Materiallar ro'yxati
- A RPi B (may, shuningdek, RPi2, RPi3 va boshqalar bilan ishlash)
- Malinali uchun 7 dyuymli 1024*600 LCD displey (ekran o'lchamini o'zingiz tanlang)
- Wi-Fi dongle yoki Ethernet kabeli RPi-ga ulangan (faqat RPi3 va undan keyingi versiyalarda Wi-Fi o'rnatilgan)
- USB sichqoncha va klaviatura
2 -qadam: Fikr va yordam uchun rahmat
E'tibor bering, bu qadam ba'zi odamlarning ishiga asoslangan:
Gus:
pimylifeup.com/raspberry-pi-nextcloud-serv…
jimk3038:
www.instructables.com/id/Raspberry-Pi-Inte…
Kodni takomillashtirgani uchun kalmatga katta rahmat: Endi Internetga ulanish bo'lmaganida katta soat va qo'ng'iroqlar taqvimi ko'rsatiladi
www.instructables.com/member/Kalmat/
3 -qadam: Nextcloud va ob -havo stantsiyasini o'rnatish
Ushbu qadamlar quyidagilarni nazarda tutadi:-linuxning ba'zi asoslari ma'lum
-Raspi operatsion tizimi allaqachon RPi -da o'rnatilgan
-Operatsion tizim allaqachon sozlangan (raspi-config: SSH yoqilgan, sd-kartadagi maksimal bo'sh joydan foydalanish uchun kengaytirilgan fayl tizimi va boshqalar)
-PP dan IP statik sifatida belgilanadi
########################################################
Nextcloud -ni o'rnatish
########################################################
Quyidagi ketma -ketliklar terminalda bajarilgan (SSH dan yoki RPi orqali) ################################################# ####################
sudo apt-get yangilanishi
sudo apt-get apache2 ni o'rnating
sudo apt-get php7.0 php7.0-gd sqlite php7.0-sqlite php7.0-curl php7.0-zip php7.0-xml php7.0-mbstring ni o'rnating.
sudo xizmati apache2 -ni qayta ishga tushiring
cd/var/www/html curl https://download.nextcloud.com/server/releases/ne… |
sudo tar -jxv
sudo mkdir -p/var/www/html/nextcloud/ma'lumotlar
sudo chown -R www-ma'lumotlar: www-ma'lumotlar/var/www/html/nextcloud/
sudo chmod 750/var/www/html/nextcloud/ma'lumotlar
########################################################
Endi biz buni tugatdik, endi nihoyat Nextcloud -ga o'tamiz va uni o'rnatish jarayonini boshlaymiz. Boshlash uchun Raspberry Pi -ning IP -manziliga plus /nextcloud -ga o'ting. Masalan, men boradigan manzil quyidagicha:
IP -manzil misolini Raspberry Pi -ga almashtirishni unutmang.
192.168.1.105/nextcloud
Foydalanuvchi nomingiz va parolingizni tanlang
o'quv qo'llanmasiga havola qildim:
#########################################################
Ob -havo stantsiyasini o'rnatish
#########################################################
Yuklab olish:
launchpad.net/python-weather-api/trunk/0.3… ############################### #########################
Quyidagi ketma -ketliklar terminalda bajariladi (SSH dan yoki RPi -da) ################################################ ####################
tar -xvzf pywapi -0.3.8.tar.gz
CD pywapi-0.3.8
sudo python setup.py tuzish
sudo python setup.py ni o'rnating
########################################################
Ishlar kutilganidek ishlayotganini tekshiring
########################################################
Ob -havo 1.6.4.zip -ni /home /pi papkasini yuklab oling va chiqarib oling
terminalda keyingi buyruq (SSH ulanishi emas/Bu safar mahalliy displey kerak)
CD ob -havo
sudo python ob -havo.py
########################################################
Yuklashdan so'ng uni avtomatik ishga tushirishni sozlang
########################################################
sudo nano /etc/rc.local
"Chiqish 0" deb yozilgan oxirgi qatordan oldin, satrlarga quyidagilarni qo'shing.
CD/home/pi/Ob -havo
sudo python ob -havo.py &> err.log
########################################################
4 -qadam: Ba'zi eslatmalar
- Kalmat qilgan ish avtomatik tarjimaga ega emas, men qo'lda pt-BR ga tarjima qildim. Agar kimdir tarjima qilish uchun.po fayllari bilan ishlashni bilsa, minnatdor bo'lar edik.
- Barqarorlik etarlicha yaxshi. Yuqoridagi rasmga qarang (CPU va xotira kam)
- Smartfoningiz va nextcloud mijozi uchun ilovani ish stoliga yuklab oling
- Serverga yuklanish tezligini oshirish uchun Apache serveriga va PHP -ga ba'zi o'zgartirishlar kiritish mumkin (google it)
-
Ob -havo stantsiyasining boshqa versiyalari mavjud, ular fon rasmlari bilan
jimk3038 loyihasi (takomillashtirilgan versiyasi kalmat)
Tavsiya:
Mega RasPi - Sega Mega diskidagi malina Pi / Ibtido: 13 qadam (rasmlar bilan)
Mega RasPi - Raspberry Pi Sega Mega Drive / Genesis: Bu qo'llanma sizni Raspberry Pi yordamida eski Sega Mega Diskni retro o'yin konsoliga o'tkazish orqali olib boradi. mening Sega Mega diskim. Do'stlarimning ko'plarida ham bor edi, shuning uchun biz
Oson va arzon masofali RAID uchun 2 malina Pis: 19 qadam
2 Raspberry Pis oson va arzon masofali RAID uchun: Maqsad Uyda voqea sodir bo'lgan taqdirda, men asosiy raqamli hujjatlarimni (rasmlar, shaxsiy guvohnomalar va boshqalar) qayta tiklashni va ixtiyoriy ravishda bo'lishishni xohlayman. Men bu echimni boshqa birov bilan bo'lishmoqchiman (men ishonadigan odam, ota -onam yoki do'stim)
PiDP-8: a malina Pi PDP-8 kichik kompyuter sifatida: 7 qadam
PiDP-8: Raspberry Pi PDP-8 kichik kompyuter sifatida: Hamma PDP-8 minikompyuterini xohlardi. Xo'sh, baribir 1968 yilda. Raspberry Pi -da ushbu SD -karta tasvirini yuklash orqali mini -kompyuterlarning Oltin asrini qayta boshlang. Majburiy emas, Blinkenlights tajribasini qayta tiklash uchun old panelni nusxasini qo'shing. Hackerning oddiy ma'lumoti
Pi Home, malina bilan ishlaydigan virtual yordamchi: 11 qadam (rasmlar bilan)
Pi Home, ahududu bilan ishlaydigan virtual yordamchi: Google Home-bu uy atrofida bo'lish uchun foydalidir, bu-Google Assistant-Google-ning eng zamonaviy raqamli shaxsiy yordamchisi bilan jihozlangan go'zal qurilma. U ommaviy axborot vositalarini o'ynata oladi, eslatmalar va eslatmalarni saqlaydi, yurish vaqtini aytib beradi
Mikrokontroller yordamida bir vaqtning o'zida yuqori chastotali va vazifali tsiklni qanday o'lchash mumkin: 4 qadam
Bir vaqtning o'zida mikrokontrolder yordamida yuqori chastotali va vazifali tsiklni qanday o'lchash mumkin: Men sizning fikringizni bilaman: " Huh? Signal chastotasini o'lchash uchun mikrokontrolderlardan foydalanish bo'yicha ko'plab ko'rsatmalar mavjud. Yaw. &Quot; Ammo kuting, bunda yangilik bor: men mikro chastotadan ancha yuqori chastotalarni o'lchash usulini tasvirlayman