Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Pogoda w centralce


wojtas810

Question

Witam 

mam wersje 4.080 i dziwny problem 

Centralka od 5 dni pokazuje tą samą temperaturę 

1 stopień 

87% wilgotność 

0 km/h wiatr 

 

I nic się nie przestawia ani także nic się nie dzieje  z tym zmieniam lokalizację i także nic nie zasysa.

Robiłem restart i też nic. 

 

Ktoś miał podobny problem ?

co mogę zmienić ?

 

 

Link to comment
Share on other sites

Recommended Posts

  • 0

Na szybko porównałem kilka opisów z Twojej listy po polsku i z angielskiej listy Yahoo i wygląda, że numerki i opisy się zgadazają.

 

Może wystarczy tylko zmienić język w wywołaniu API z PL na ENG i wstawić do skryptu angielskie definicje i będzie hulać.

 

 

 

KOREKTA:  Trzeba będzie rozkminić, czy opeweathermap daje takie same komunikaty jak Yahoo.

 

Można by odczytywać id z opeweathermap:

 

200 => 'Burza z lekkimi opadami deszczu',

201 => 'Burza z opadami deszczu',

202 => 'Burza z intensywnymi opadami deszczu',

210 => 'Lekka burza',

211 => 'Burza',

212 => 'Silna burza',

221 => 'Burza',

230 => 'Burza z lekką mżawką',

231 => 'Burza z mżawka',

232 => 'Burza z intensywną mżawką',

300 => 'Lekka mżawka',

301 => 'Mżawka',

302 => 'Intensywna mżawka',

310 => 'Lekkie opady drobnego deszczu',

311 => 'Deszcz / mżawka',

312 => 'Intensywny deszcz / mżawka',

321 => 'Silna mżawka',

500 => 'Lekki deszcz',

501 => 'Umiarkowany deszcz',

502 => 'Intensywny deszcz',

503 => 'Bardzo silny deszcz',

504 => 'Ulewa',

511 => 'Marznący deszcz',

520 => 'Krótka ulewa',

521 => 'Deszcz',

522 => 'Intensywny, lekki deszcz',

600 => 'Lekkie opady śniegu',

601 => 'Śnieg',

602 => 'Mocne opady śniegu',

611 => 'Deszcz ze śniegem',

621 => 'Śnieżyca',

701 => 'Mgiełka',

711 => 'Smog',

721 => 'Zamglenia',

731 => 'Zamieć piaskowa',

741 => 'Mgła',

800 => 'Bezchmurnie',

801 => 'Lekkie zachmurzenie',

802 => 'Rozproszone chmury',

803 => 'Pochmurno z przejaśnieniami',

804 => 'Pochmurno',

900 => 'tornado',

901 => 'burza tropikalna',

902 => 'Huragan',

903 => 'Chłodno',

904 => 'Gorąco',

905 => 'wietrznie',

906 => 'Grad',

950 =>'Setting',

951 =>'Spokojnie',

952 =>'Lekka bryza',

953 =>'Delikatna bryza',

954 =>'Umiarkowana bryza',

955 =>'Świeża bryza',

956 =>'Silna bryza',

957 =>'Prawie wichura',

958 =>'Wichura',

959 =>'Silna wichura',

960 =>'Sztorm',

961 =>'Gwałtowny sztorm',

962 =>'Huragan'

 

Teraz trzeba by przyporządkować ikony fibaro. 

Link to comment
Share on other sites

  • 0

W bezpłatnym dostępie openweathermap gwarantuje aktualizację pogody nie rzadziej niż co 2 godziny.

Link to comment
Share on other sites

  • 0

adamkorski

Czy to są oryginalne komunikaty po polsku z OpenWeatherMap ?

Jeżeli tak to na ich podstawie zrobię dopasowanie do kodów Yahoo.

 

gucio1234

Yahoo w dostępie bezpłatnym również gwarantuje odczyty pogody nie rzadziej niż co 2 godziny i również maksymalnie 2000 odczytów na dobę.

Link to comment
Share on other sites

  • 0

Proponuje opisy OpenWeatherMap przypisać do kodów YaHoo:

 

if pogo == 'Burza z lekkimi opadami deszczu' then kod = 47

elseif pogo == 'Burza z opadami deszczu' then kod = 45
elseif pogo == 'Burza z intensywnymi opadami deszczu' then kod = 45
elseif pogo == 'Lekka burza' then kod = 38
elseif pogo == 'Burza' then kod = 4
elseif pogo == 'Silna burza' then kod = 3
elseif pogo == 'Burza' then kod = 4
elseif pogo == 'Burza z lekką mżawką' then kod = 9
elseif pogo == 'Burza z mżawka' then kod = 9
elseif pogo == 'Burza z intensywną mżawką' then kod = 9
elseif pogo == 'Lekka mżawka' then kod = 9
elseif pogo == 'Mżawka' then kod = 9
elseif pogo == 'Intensywna mżawka' then kod = 9
elseif pogo == 'Lekkie opady drobnego deszczu' then kod = 11
elseif pogo == 'Deszcz / mżawka' then kod = 10
elseif pogo == 'Intensywny deszcz / mżawka' then kod = 6
elseif pogo == 'Silna mżawka' then kod = 9
elseif pogo == 'Lekki deszcz' then kod = 40
elseif pogo == 'Umiarkowany deszcz' then kod = 40
elseif pogo == 'Intensywny deszcz' then kod = 12
elseif pogo == 'Bardzo silny deszcz' then kod = 12
elseif pogo == 'Ulewa' then kod = 12
elseif pogo == 'Marznący deszcz' then kod = 10
elseif pogo == 'Krótka ulewa' then kod = 12
elseif pogo == 'Deszcz' then kod = 12
elseif pogo == 'Intensywny lekki deszcz' then kod = 12
elseif pogo == 'Lekkie opady śniegu' then kod = 14
elseif pogo == 'Śnieg' then kod = 16
elseif pogo == 'Mocne opady śniegu' then kod = 13
elseif pogo == 'Deszcz ze śniegem' then kod = 5
elseif pogo == 'Śnieżyca' then kod = 19
elseif pogo == 'Mgiełka' then kod = 21
elseif pogo == 'Smog' then kod = 22
elseif pogo == 'Zamglenia' then kod = 20
elseif pogo == 'Zamieć piaskowa' then kod = 19
elseif pogo == 'Mgła' then kod = 21
elseif pogo == 'Bezchmurnie' then kod = 32
elseif pogo == 'Lekkie zachmurzenie' then kod = 30
elseif pogo == 'Rozproszone chmury' then kod = 30
elseif pogo == 'Pochmurno z przejaśnieniami' then kod = 28
elseif pogo == 'Pochmurno' then kod = 26
elseif pogo == 'tornado' then kod = 0
elseif pogo == 'burza tropikalna' then kod = 1
elseif pogo == 'Huragan' then kod = 2
elseif pogo == 'Chłodno' then kod = 25
elseif pogo == 'Gorąco' then kod = 36
elseif pogo == 'wietrznie' then kod = 24
elseif pogo == 'Grad' then kod = 17
elseif pogo == 'Setting' then kod = 3200
elseif pogo == 'Spokojnie' then kod = 34
elseif pogo == 'Lekka bryza' then kod = 12
elseif pogo == 'Delikatna bryza' then kod = 12
elseif pogo == 'Umiarkowana bryza' then kod = 12
elseif pogo == 'Świeża bryza' then kod = 12
elseif pogo == 'Silna bryza' then kod = 12
elseif pogo == 'Prawie wichura' then kod = 24
elseif pogo == 'Wichura' then kod = 24
elseif pogo == 'Silna wichura' then kod = 2
elseif pogo == 'Sztorm' then kod = 4
elseif pogo == 'Gwałtowny sztorm' then kod = 4
elseif pogo == 'Huragan' then kod = 2

else kod = 3200

end

Link to comment
Share on other sites

  • 0

adamkorski

Czy to są oryginalne komunikaty po polsku z OpenWeatherMap ?

Jeżeli tak to na ich podstawie zrobię dopasowanie do kodów Yahoo.

 

To są oryginalne komunikaty z OpenWeatherMap, ale z przed 2-3 lat. Mogli coś zmienić w międzyczasie w tłumaczeniu.

Dlatego lepiej byłoby z api odczytywać kod id stanu pogody. Znaczenie kodu pozostaje niezależne od tłumaczenia. 

Link to comment
Share on other sites

  • 0

adamkorski

 

Masz zupełną rację. Pomyślę nad zmianą.

kod OpenWeatherMap = 900 równa się kod Yahoo = 0 

czyli:

if kodOWM == 900 then kod = 0

itd.

Link to comment
Share on other sites

  • 0

Poprawione na zamianę tylko kodów z OWM na YaHoo:

if pogoId == 200 then kod = 47
  elseif pogoId == 201 then kod = 45
  elseif pogoId == 202 then kod = 45
  elseif pogoId == 210 then kod = 38
  elseif pogoId == 211 then kod = 4
  elseif pogoId == 212 then kod = 3
  elseif pogoId == 221 then kod = 4
  elseif pogoId == 230 then kod = 9
  elseif pogoId == 231 then kod = 9
  elseif pogoId == 232 then kod = 9
  elseif pogoId == 300 then kod = 9
  elseif pogoId == 301 then kod = 9
  elseif pogoId == 302 then kod = 9
  elseif pogoId == 310 then kod = 11
  elseif pogoId == 311 then kod = 10
  elseif pogoId == 312 then kod = 6
  elseif pogoId == 321 then kod = 9
  elseif pogoId == 500 then kod = 40
  elseif pogoId == 501 then kod = 40
  elseif pogoId == 502 then kod = 12
  elseif pogoId == 503 then kod = 12
  elseif pogoId == 504 then kod = 12
  elseif pogoId == 511 then kod = 10
  elseif pogoId == 520 then kod = 12
  elseif pogoId == 521 then kod = 12
  elseif pogoId == 522 then kod = 12
  elseif pogoId == 600 then kod = 14
  elseif pogoId == 601 then kod = 16
  elseif pogoId == 602 then kod = 13
  elseif pogoId == 611 then kod = 5
  elseif pogoId == 621 then kod = 19
  elseif pogoId == 701 then kod = 21
  elseif pogoId == 711 then kod = 22
  elseif pogoId == 721 then kod = 20
  elseif pogoId == 731 then kod = 19
  elseif pogoId == 741 then kod = 21
  elseif pogoId == 800 then kod = 32
  elseif pogoId == 801 then kod = 30
  elseif pogoId == 802 then kod = 30
  elseif pogoId == 803 then kod = 28
  elseif pogoId == 804 then kod = 26
  elseif pogoId == 900 then kod = 0
  elseif pogoId == 901 then kod = 1
  elseif pogoId == 902 then kod = 2
  elseif pogoId == 903 then kod = 25
  elseif pogoId == 904 then kod = 36
  elseif pogoId == 905 then kod = 24
  elseif pogoId == 906 then kod = 17
  elseif pogoId == 950 then kod = 3200
  elseif pogoId == 951 then kod = 34
  elseif pogoId == 952 then kod = 12
  elseif pogoId == 953 then kod = 12
  elseif pogoId == 954 then kod = 12
  elseif pogoId == 955 then kod = 12
  elseif pogoId == 956 then kod = 12
  elseif pogoId == 957 then kod = 24
  elseif pogoId == 958 then kod = 24
  elseif pogoId == 959 then kod = 2
  elseif pogoId == 960 then kod = 4
  elseif pogoId == 961 then kod = 4
  elseif pogoId == 962 then kod = 2
  else kod = 3200
  end

Please login or register to see this code.

Link to comment
Share on other sites

  • 0

Mamy już pogodę na podstawie kodów openweathermap.

 

Ja otrzymałem dziś odpowiedź od wsparcia openweathermap. Niestety nie byli w stanie podać mi opisów pogody po polsku, ale dali po angielsku razem z listą kodów (zgodne z powyższym postem).

 

 

200 thunderstorm with light rain

 

201 thunderstorm with rain

 

202 thunderstorm with heavy rain

 

210 light thunderstorm

 

211 thunderstorm

 

212 heavy thunderstorm

 

221 ragged thunderstorm

 

230 thunderstorm with light drizzle

 

231 thunderstorm with drizzle

 

232 thunderstorm with heavy drizzle

 

300 light intensity drizzle

 

301 drizzle

 

302 heavy intensity drizzle

 

310 light intensity drizzle rain

 

311 drizzle rain

 

312 heavy intensity drizzle rain

 

313 shower rain and drizzle

 

314 heavy shower rain and drizzle

 

321 shower drizzle

 

500 light rain

 

501 moderate rain

 

502 heavy intensity rain

 

503 very heavy rain

 

504 extreme rain

 

511 freezing rain

 

520 light intensity shower rain

 

521 shower rain

 

522 heavy intensity shower rain

 

531 ragged shower rain

 

600 light snow

 

601 snow

 

602 heavy snow

 

611 sleet

 

612 shower sleet

 

615 light rain and snow

 

616 rain and snow

 

620 light shower snow

 

621 shower snow

 

622 heavy shower snow

 

701 mist

 

711 smoke

 

721 haze

 

731 sand, dust whirls

 

741 fog

 

751 sand

 

761 dust

 

762 volcanic ash

 

771 squalls

 

781 tornado

 

800 clear sky

 

801 few clouds

 

802 scattered clouds

 

803 broken clouds

 

804 overcast clouds

 

900 tornado

 

901 tropical storm

 

902 hurricane

 

903 cold

 

904 hot

 

905 windy

 

906 hail

 

951 calm

 

952 light breeze

 

953 gentle breeze

 

954 moderate breeze

 

955 fresh breeze

 

956 strong breeze

 

957 high win

 

958 gale

 

959 severe gale

 

960 storm

 

961 violent storm

 

962 hurricane

 

 

Jest też link :

 

Please login or register to see this link.

 

 

 

 

Brakuje mi jeszcze jednej rzeczy w Jackowej virtualce. Jeżeli mamy noc i bechmurne niebo - to ustawiamy ikonkę czystego księżyca, w dzień - dajemy pełne słońce,  itd dla innych warunków pogodowych jeżeli są ikonki dzienne i nocne.

 

W Fibaro są niektóe ikonki dzienne / nocne, ale trzeba by znowu trochę nad tym posiedzieć.  

 

Taka nieśmiała sugestia z mojej strony. Ja niestety jestem mało czasowy, żeby się tym zająć.

Link to comment
Share on other sites

  • 0
Guest damian

Brakuje mi jeszcze jednej rzeczy w Jackowej virtualce. Jeżeli mamy noc i bechmurne niebo - to ustawiamy ikonkę czystego księżyca, w dzień - dajemy pełne słońce,  itd dla innych warunków pogodowych jeżeli są ikonki dzienne i nocne.

 

W Fibaro są niektóe ikonki dzienne / nocne, ale trzeba by znowu trochę nad tym posiedzieć.  

 

Taka nieśmiała sugestia z mojej strony. Ja niestety jestem mało czasowy, żeby się tym zająć.

 

fibaro:getValue(1,'sunriseHour') i fibaro:getValue(1,'sunsetHour')

Link to comment
Share on other sites

  • 0

Please login or register to see this code.

gucio1234

 

Przerobiłem skrypt wykorzystując sugestie damian`a.

Link to comment
Share on other sites

  • 0
Guest damian

Panowie, err#401 na openweather, za dużo odwołań czy czegoś nie ogarniam? (działało, przestało)

Link to comment
Share on other sites

  • 0

Mi w pogodzie Fibaro ( UI HC2 ) brakuje wyświetlanego ciśnienia atmosferycznego i nazwy Miasta, dla którego podawane są parametry.

Link to comment
Share on other sites

  • 0

damian

 

HTTP Status Code Description

401 Unauthorized – authentication required

 

Coś z kluczem lub za często pobierane dane. Do 2000 pobrań na dobę.

Link to comment
Share on other sites

  • 0
Guest damian

OK, dodaj na początku: (inaczej wywala err#500 przy spacji w nazwie miasta)

Please login or register to see this code.

Link to comment
Share on other sites

  • 0

Mi w pogodzie Fibaro ( UI HC2 ) brakuje wyświetlanego ciśnienia atmosferycznego i nazwy Miasta, dla którego podawane są parametry.

 

 

Jacku,

 

Jest wirtualka Sztywniaka pobierająca więcej parametrów pogody :

 

Please login or register to see this link.

 

Mam tego jakąś modyfikację w centralce. Jak dopisałem mój API KEY do wywołania z openweathermap działa.

W tym co mam oprócz bieżących warunków zasysana jest także prognoza.

 

Wieczorem, jak będę miał bezpośredni dostęp do mojej centralki, zapodam tu plik tej wirtualki.

 

Można by połączyć te dwa podejścia i za jednym zamachem zasysac i pogde aktualną, i prognozę i uaktualniać dane i ikonkę w interfejsie Fibaro.

Link to comment
Share on other sites

  • 0
Guest damian

No to mam takie VD, uaktualniające główną pogodę Fibrao:

(tylko muszę znaleźć sposób na podmianę ikony, pewnie Jacek mi zaraz powie!

Please login or register to see this image.

/emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" /> )

Please login or register to see this attachment.

Please login or register to see this attachment.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...