turk-dreamworld.com Sitesine Hoþgeldiniz.


10 sonuçtan 1 ile 10 arasý
  1. #1
    Vip Member endebar - ait Kullanýcý Resmi (Avatar)
    Üyelik tarihi
    Mar 2011
    Mesajlar
    3.814
    Total 'Thanks' Received by This User :
    4 Bu Konu icin
    4.434 Toplam

    Standart Anlýk ve Detaylý Hava Durumu Scripti

    Bilgiler [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz] sitesinden alýnmýstýr en gercek hava tahmini burada yapýlmaktadýr
    suan ki hava durumunu ruzgarýn hýzýný nem basýnc uv filtresi gunesin dogusu batýsý ayýn dogusu batýsý vs detaylý bilgiler bulunmaktadýr
    scripti kullanabimeniz icin cihazýnýza curl komutunu yuklemeniz gerekmektedir wget komutu https olan sitelerde calýsmýyor
    curl komutunu telnetten yukleyebilirsiniz
    opkg install curl

    istediginiz sehirin id sini [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz] sitesinden bulabilirsiniz ornek verecek olursak
    ankara id 316938
    [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]ankara/316938/current-weather/316938
    istanbul 318251
    [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]istanbul/318251/current-weather/318251

    site linki
    [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]/weather-forecast/318251
    bu sekilde kafanýz karýsmasýn bunu eklemiyorsunuz weather-forecast yerine /current-weather/ ekliyorsunuz
    daha az karmasýk olarak anlatacak olursak
    [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]/sehir/id/current-weather/id/
    sehir ve id olan bolumu degistiriyorsunuz onlarda sitede mevcud ulke sehir yazdýgýnýzda
    zaten id kýsmý gorunuyor onlarý degistirmeniz yeterli

    ankara hava durumu


    Kod:
    #!/bin/sh
    curl -k -sA "Chrome" -L "https://www.accuweather.com/tr/tr/istanbul/318251/current-weather/318251/" -q | sed -e 's/<[^>]*>//g;s/^ //g' > /tmp/a.txt
    sed -i -e '/^\s*$/d' /tmp/a.txt
    awk '/t\üm\ü/ {for(i=1; i<=70; i++) {getline; print}}' /tmp/a.txt > /tmp/b.txt
    sed -i -e 's/\ü/u/g' -e 's/\ç/c/g' -e 's/\ğ/g/g' -e 's/\ı/i/g' -e 's/\ş/s/g' -e 's/\ö/o/g' -e 's/\Ö/O/g' -e 's/\Ç/C/g' -e 's/\Ğ/G/g' -e 's/\İ/I/g' -e 's/\Ş/S/g' -e 's/\Ü/U/g' -e 's/\&deg;/ derece/g' -e 's/\®//g' -e 's/\&uarr;//g' /tmp/b.txt
    sed 's/^[ \t]*//' /tmp/b.txt >> /tmp/c.txt
    awk '/Next/ {for(i=2; i<=29; i++) {getline; print}}' /tmp/c.txt > /tmp/5.txt
    sed -i -e 's/Fazlasý//g' -e '1,6d' /tmp/5.txt
    sed -i -e '1i4 GUNLUK HAVA DURUMU' /tmp/5.txt
    sed -i -e '/^\s*$/d' /tmp/5.txt
    sed -i -e 's/\///g' -e 's/dereceC//g' -e 's/derece//g' -e '4s/^/En yuksek : /g' -e '9s/^/En yuksek : /g' -e '14s/^/En yuksek : /g'  -e '19s/^/En yuksek : /g' -e '5s/^/En dusuk  : /g'  -e '10s/^/En dusuk  : /g'  -e '15s/^/En dusuk  : /g'  -e '20s/^/En dusuk  : /g' /tmp/5.txt
    awk '/Astronom/ {for(i=0; i<=5; i++) {getline; print}}' /tmp/c.txt > /tmp/d.txt
    sed -i -e '2,3d' -e '6d' -e 's/SICAKLIK .ZET./Saat : /g' -e 's/.imdi/Simdi: /g' -e 's'/`printf "\xb0"`'//g' -e 's'/`printf "\xc5"`'//g' /tmp/d.txt
    cat /tmp/d.txt | xargs > /tmp/e.txt
    sed 's/ /&\n/3' /tmp/e.txt > /tmp/f.txt
    sed -i -e '1iANLIK HAVA DURUMU' /tmp/f.txt
    awk '/Gunluk/ {for(i=0; i<=21; i++) {getline; print}}' /tmp/c.txt > /tmp/g.txt
    sed -i -e '/Astronom./d' -e '/Saat/d' -e '/derece/d' -e '/Bat.../d' -e 's/\&#176\;\&nbsp\;C/ derece/g' -e 's/hr//g' -e 's/\&darr\;//g' /tmp/g.txt
    sed -e '3s/^/Ruzgarýn hýzý :/g' /tmp/g.txt >> /tmp/h.txt
    cat /tmp/f.txt /tmp/h.txt /tmp/5.txt > /tmp/m.txt 
    sed -i -e '/^\s*$/d' /tmp/m.txt
    cat /tmp/m.txt
    rm -rf /tmp/*.txt
    exit
    Konu endebar tarafýndan (28.11.2017 Saat 19:01 ) deðiþtirilmiþtir.
    insan olmak karþýndakinin dinine, diline, ýrkýna bakmadan saygý göstermektir.
    AlýntýAlýntý

  2. Teşekkür edenler:

    kadehte33 (24.11.2017) , OsmaNLý (23.11.2017) , kocahaydar (23.11.2017) , 67sefa (23.11.2017)

  3. #2
    Vip Member endebar - ait Kullanýcý Resmi (Avatar)
    Üyelik tarihi
    Mar 2011
    Mesajlar
    3.814
    Total 'Thanks' Received by This User :
    2 Bu Konu icin
    4.434 Toplam

    Standart Cevap: Anlýk ve genis detaylý script

    bu da berlin ornegi
    [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]/de/berlin/10178//current-weather/10178
    sayfa turkce ama ulke ve sehiri degistirdik
    sayfanýn turkce olmasý onemli yani com.tr ile bitmeli scripti turkce karakterlere gore hazýrladým almanca yada ingilizce link eklerseniz bazý satýrlarý dogru okuyamaz ve yazamaz

    Kod:
    #!/bin/sh
    curl -k -sA "Chrome" -L "https://www.accuweather.com/tr/de/berlin/10178//current-weather/10178/" -q | sed -e 's/<[^>]*>//g;s/^ //g' > /tmp/a.txt
    sed -i -e '/^\s*$/d' /tmp/a.txt
    awk '/t\&#252;m\&#252;/ {for(i=1; i<=70; i++) {getline; print}}' /tmp/a.txt > /tmp/b.txt
    sed -i -e 's/\&#252;/u/g' -e 's/\&#231;/c/g' -e 's/\ğ/g/g' -e 's/\ı/i/g' -e 's/\ş/s/g' -e 's/\&#246;/o/g' -e 's/\&#214;/O/g' -e 's/\&#199;/C/g' -e 's/\Ğ/G/g' -e 's/\İ/I/g' -e 's/\Ş/S/g' -e 's/\&#220;/U/g' -e 's/\&deg;/ derece/g' -e 's/\&#174;//g' -e 's/\&uarr;//g' /tmp/b.txt
    sed 's/^[ \t]*//' /tmp/b.txt >> /tmp/c.txt
    awk '/Next/ {for(i=2; i<=29; i++) {getline; print}}' /tmp/c.txt > /tmp/5.txt
    sed -i -e 's/Fazlasý//g' -e '1,6d' /tmp/5.txt
    sed -i -e '1i4 GUNLUK HAVA DURUMU' /tmp/5.txt
    sed -i -e '/^\s*$/d' /tmp/5.txt
    sed -i -e 's/\///g' -e 's/dereceC//g' -e 's/derece//g' -e '3s/^/En yuksek : /g' -e '8s/^/En yuksek : /g' -e '13s/^/En yuksek : /g'  -e '18s/^/En yuksek : /g' -e '4s/^/En dusuk  : /g'  -e '9s/^/En dusuk  : /g'  -e '14s/^/En dusuk  : /g'  -e '19s/^/En dusuk  : /g' /tmp/5.txt
    awk '/Astronom/ {for(i=0; i<=5; i++) {getline; print}}' /tmp/c.txt > /tmp/d.txt
    sed -i -e '2,3d' -e '6d' -e 's/SICAKLIK .ZET./Saat : /g' -e 's/.imdi/Simdi: /g' -e 's'/`printf "\xb0"`'//g' -e 's'/`printf "\xc5"`'//g' /tmp/d.txt
    cat /tmp/d.txt | xargs > /tmp/e.txt
    sed 's/ /&\n/3' /tmp/e.txt > /tmp/f.txt
    sed -i -e '1iANLIK HAVA DURUMU' /tmp/f.txt
    awk '/Gunluk/ {for(i=0; i<=21; i++) {getline; print}}' /tmp/c.txt > /tmp/g.txt
    sed -i -e '/Astronom./d' -e '/Saat/d' -e '/derece/d' -e '/Bat.../d' -e 's/\&#176\;\&nbsp\;C/ derece/g' -e 's/hr//g' -e 's/\&darr\;//g' /tmp/g.txt
    sed -e '3s/^/Ruzgarýn hýzý :/g' /tmp/g.txt >> /tmp/h.txt
    cat /tmp/f.txt /tmp/h.txt /tmp/5.txt > /tmp/m.txt 
    sed -i -e '/^\s*$/d' /tmp/m.txt
    cat /tmp/m.txt
    rm -rf /tmp/*.txt
    exit
    Konu endebar tarafýndan (23.11.2017 Saat 19:46 ) deðiþtirilmiþtir.
    insan olmak karþýndakinin dinine, diline, ýrkýna bakmadan saygý göstermektir.
    AlýntýAlýntý

  4. Teşekkür edenler:

    kocahaydar (23.11.2017) , 67sefa (23.11.2017)

  5. #3
    Vip Member endebar - ait Kullanýcý Resmi (Avatar)
    Üyelik tarihi
    Mar 2011
    Mesajlar
    3.814
    Total 'Thanks' Received by This User :
    1 Bu Konu icin
    4.434 Toplam

    Standart Cevap: Anlýk ve genis detaylý script

    bir sorun var scriptteki php kodlarý sitede yazýldýgý gibi degil gorundugu gibi cýkýyor o yuzden script dogru calýsmayabilir
    ornek scripti buraya ekledim siteden copy/paste degilde burdan indirirseniz daha iyi olur
    [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]
    insan olmak karþýndakinin dinine, diline, ýrkýna bakmadan saygý göstermektir.
    AlýntýAlýntý

  6. Teşekkür edenler:

    67sefa (23.11.2017)

  7. #4
    TDW Team-S-Mod. kocahaydar - ait Kullanýcý Resmi (Avatar)
    Üyelik tarihi
    Jul 2008
    Bulunduðu yer
    Germany
    Mesajlar
    29.337
    Total 'Thanks' Received by This User :
    2 Bu Konu icin
    111.692 Toplam

    Standart Cevap: Anlýk ve Detaylý Hava Durumu Scripti

    Endebar ustam code olarak eklesen problem olmaz.

    Kod:
    code

    Sundugum tüm dosyalar test amaclidir.
    Yanlis kullanmada veya herhangi bir problem oldugunda herkes kendisi sorumludur.
    Kesinlikle Mesuliyet kabul etmiyorum.
    AlýntýAlýntý

  8. Teşekkür edenler:

    goodmen (24.11.2017) , endebar (23.11.2017)

  9. #5
    Vip Member endebar - ait Kullanýcý Resmi (Avatar)
    Üyelik tarihi
    Mar 2011
    Mesajlar
    3.814
    Total 'Thanks' Received by This User :
    0 Bu Konu icin
    4.434 Toplam

    Standart Cevap: Anlýk ve Detaylý Hava Durumu Scripti

    Alýntý kocahaydar Nickli Üyeden Alýntý [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]
    Endebar ustam code olarak eklesen problem olmaz.

    Kod:
    code
    tesekkurler ustam duzelttim
    insan olmak karþýndakinin dinine, diline, ýrkýna bakmadan saygý göstermektir.
    AlýntýAlýntý

  10. #6
    TDW Team-S-Mod. Dervis - ait Kullanýcý Resmi (Avatar)
    Üyelik tarihi
    Jul 2008
    Mesajlar
    1.019
    Total 'Thanks' Received by This User :
    1 Bu Konu icin
    1.292 Toplam

    Standart Cevap: Anlýk ve Detaylý Hava Durumu Scripti

    @Endebar usta...Benzer çalýþmayý wunderground içinde yapabilirmisin ?
    [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]

    Not:API ile ilgili bilgilere buradan ulaþabilirsin.Saygýlar. [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]
    AlýntýAlýntý

  11. Teşekkür edenler:

    endebar (24.11.2017)

  12. #7
    Vip Member endebar - ait Kullanýcý Resmi (Avatar)
    Üyelik tarihi
    Mar 2011
    Mesajlar
    3.814
    Total 'Thanks' Received by This User :
    1 Bu Konu icin
    4.434 Toplam

    Standart Cevap: Anlýk ve Detaylý Hava Durumu Scripti

    Alýntý Dervis Nickli Üyeden Alýntý [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]
    @Endebar usta...Benzer çalýþmayý wunderground içinde yapabilirmisin ?
    [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]

    Not:API ile ilgili bilgilere buradan ulaþabilirsin.Saygýlar. [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]
    tesekkurler ustam zaman bulunca bakayým nasýl veri alýnýyor ona gore yapmaya calýsýcam
    insan olmak karþýndakinin dinine, diline, ýrkýna bakmadan saygý göstermektir.
    AlýntýAlýntý

  13. Teşekkür edenler:

    Dervis (24.11.2017)

  14. #8
    Vip Member endebar - ait Kullanýcý Resmi (Avatar)
    Üyelik tarihi
    Mar 2011
    Mesajlar
    3.814
    Total 'Thanks' Received by This User :
    0 Bu Konu icin
    4.434 Toplam

    Standart Cevap: Anlýk ve Detaylý Hava Durumu Scripti

    birsey daha curl olan scriptlerin en basýna asagýdaki komutlarý yazarsanýz cihazda curl yoksa yukler varsa birsey yapmaz

    if [[ -n $(find /usr/bin/ -name "curl") ]]; then
    echo ""
    else
    opkg install curl
    fi


    biraz taksit taksit oluyor kusura bakmayýn sonradan aklýma geldi

    en basýna derken #!/bin/sh den sonra bash script #!/bin/sh ile baslar
    insan olmak karþýndakinin dinine, diline, ýrkýna bakmadan saygý göstermektir.
    AlýntýAlýntý

  15. #9
    Vip Member endebar - ait Kullanýcý Resmi (Avatar)
    Üyelik tarihi
    Mar 2011
    Mesajlar
    3.814
    Total 'Thanks' Received by This User :
    2 Bu Konu icin
    4.434 Toplam

    Standart Cevap: Anlýk ve Detaylý Hava Durumu Scripti

    Alýntý Dervis Nickli Üyeden Alýntý [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]
    @Endebar usta...Benzer çalýþmayý wunderground içinde yapabilirmisin ?
    [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]

    Not:API ile ilgili bilgilere buradan ulaþabilirsin.Saygýlar. [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]
    buyur ustam


    Kod:
    #!/bin/sh
    if [[ -n $(find /usr/bin/ -name "curl") ]]; then
    echo ""
    else
    opkg install curl
    fi
    curl -k -sA "Chrome" -L "https://www.wunderground.com/personal-weather-station/dashboard?ID=ISTANBUL182&cm_ven=localwx_pwsdash#history" -q | sed -e 's/<[^>]*>//g;s/^ //g' > /tmp/a.txt
    sed -i -e '/^\s*$/d' /tmp/a.txt
    awk '/(wui,jQuery)/ {for(i=1; i<=44; i++) {getline; print}}' /tmp/a.txt > /tmp/b.txt
    sed -i -e '/viewed/d' -e '/Conditions/d' -e '/data/d' -e '/Learn/d' -e '/Satellite/d' -e '/Webcam/d' -e '/Icon/d' -e 's/\&deg\;C//g' -e '/hPa/d' -e '/km\/h/d' -e '/Crescent/d' /tmp/b.txt 
    sed -i -e 's/Humidity:/NEM: /g' -e 's/Feels Like/HISSEDILEN SICAKLIK: /g' -e 's/This PWS is not reporting/SU ANKI SICAKLIK: /g' -e 's/Wind from/RUZGARIN KONUMU: /g' -e 's/Precip Accum:/YAGIS BIRIKIMI (mm): /g' -e's/Precip Rate:/HIZLANMA ORANI: /g' -e 's/Status:/KONUM:/g' -e 's/Dew Point:/CIG NOKTASI: /g' -e 's/Pressure:/BASINC (hPa): /g' -e 's/Solar:/GUNES: /g' -e 's/Soil Moisture:/TOPRAK NEMI: /g' -e 's/Soil Temp:/TOPRAK ISISI: /g' -e 's/Leaf Wetness:/YAPRAK ISLAKLIGI: /g' /tmp/b.txt
    sed 's/^[ \t]*//' /tmp/b.txt > /tmp/c.txt
    sed -i -e '/^\s*$/d' /tmp/c.txt
    sed -i -e '5aRUZGARIN HIZI (km\/s): ' -e '29aGUNESIN DOGUSU: ' -e '30aGUNESIN BATISI: '  /tmp/c.txt
    sed -i -e '18d' /tmp/c.txt
     sed -n '1p' /tmp/c.txt > /tmp/1.txt
    sed -i -e '1d' /tmp/c.txt
    while read line1; do read line2; echo "$line1 $line2"; done </tmp/c.txt>/tmp/d.txt
    cat /tmp/1.txt /tmp/d.txt > /tmp/hava.txt
    sed -i -e '/Waxing/d' /tmp/hava.txt
    cat /tmp/hava.txt
    rm -rf /tmp/*.txt
    exit 0
    Konu endebar tarafýndan (28.11.2017 Saat 19:03 ) deðiþtirilmiþtir.
    insan olmak karþýndakinin dinine, diline, ýrkýna bakmadan saygý göstermektir.
    AlýntýAlýntý

  16. Teşekkür edenler:

    Dervis (24.11.2017) , 67sefa (24.11.2017)

  17. #10
    TDW Team-S-Mod. Dervis - ait Kullanýcý Resmi (Avatar)
    Üyelik tarihi
    Jul 2008
    Mesajlar
    1.019
    Total 'Thanks' Received by This User :
    1 Bu Konu icin
    1.292 Toplam

    Standart Cevap: Anlýk ve Detaylý Hava Durumu Scripti

    Eline saðlýk usta.Süper çalýþýyor...Kumandadan tuþta atadým...Gayet hoþ oldu...

    [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]

    [Deðerli Ziyaretci, linki görmeniz icin bu mesaja cevap yazmanýz gerekiyorÜye olmak icin burayý týklayýnýz]
    AlýntýAlýntý

  18. Teşekkür edenler:

    endebar (25.11.2017)

 

 

Benzer Konular

  1. tsl puan durumu scripti
    Von endebar im Forum Enigma2 Plugin ve Script Geliþtirme
    Cevaplar: 0
    Son Mesaj: 22.11.2017, 19:50

Yetkileriniz

  • Konu Acma Yetkiniz Yok
  • Cevap Yazma Yetkiniz Yok
  • Eklenti Yükleme Yetkiniz Yok
  • Mesajýnýzý Deðiþtirme Yetkiniz Yok
  •  

Page generated in 1.711.613.192.94640 seconds with 25 queries Sayfa Boyutu (276172)