PowerTGS440

Untitled

Mar 23rd, 2021
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. // -------------------------------------------------------------------------------------------------- //
  2. // S T R U K T U R A C Z A S / T I M E S T R U C T U R E --- //
  3. // -------------------------------------------------------------------------------------------------- //
  4. struct datatime //
  5. { //
  6. String SformatowanaData; // formated data ------------- //
  7. int DzienTygodnia; // day of week --------------- //
  8. int DzienMiesiaca; // day of month -------------- //
  9. int Miesiac; // month --------------------- //
  10. int Rok; // year ---------------------- //
  11. String SformatowanyCzas; // formated time ------------- //
  12. int Godzina; // hour ---------------------- //
  13. int Minuta; // minute -------------------- //
  14. int Sekunda; // seconds ------------------- //
  15. char wschod_slonca[10]; // sunrise ------------------- //
  16. char zachod_slonca[10]; // sunset -------------------- //
  17. } czas; // time object --------------- //
  18. //
  19. // -------------------------------------------------------------------------------------------------- //
  20. // S T R U K T U R A P O G O D A --- //
  21. // -------------------------------------------------------------------------------------------------- //
  22. struct weather //
  23. { //
  24. double temperatura; // temperature / temperatura - //
  25. double temperatura_minimalna; // min. temp ----------------- //
  26. double temperatura_maksymalna; // max. temp ----------------- //
  27. double temperatura_odczuwalna; // feels temp ---------------- //
  28. int cisnienie; // cisnienie powietrza ------- //
  29. int wilgotnosc; // wilgotnosc powietrza ------ //
  30. int wiatr; // wiatr / wind speed -------- //
  31. int zachmurzenie; // zachmurzenie / cloudys ---- //
  32. long widzialnosc; // widzialnosc / visible ----- //
  33. } pogoda; // weather object ------------ //
  34. //
  35. double backup_temperatura [24]; // przechowuje temperatury zczytane z serwera
  36. byte indx_temp = 0; // licznik aktualnej liczby danych w backup_temperatura
Advertisement
Add Comment
Please, Sign In to add comment