Guest User

Untitled

a guest
Oct 29th, 2017
1,215
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Wpisy Szerokość i Długość zmień na własne wartości! To samo z nazwami miast, kluczy do API, itp.
  2. var config = {}
  3. config['domoticz_ip'] = 'http://IP:PORT';
  4. config['app_title'] = 'Dom';
  5. config['domoticz_refresh'] = '5';
  6. config['dashticz_refresh'] = '60';
  7. config['news_scroll_after'] = '15';
  8. config['standby_after'] = 0;
  9. config['auto_swipe_back_to'] = 0;
  10. config['auto_swipe_back_after'] = '30';
  11. config['auto_slide_pages'] = 0;
  12. config['slide_effect'] = 'slide';
  13. config['standard_graph'] = 'month';
  14. config['language'] = 'pl_PL';
  15. config['timeformat'] = 'DD-MM-YY HH:mm';
  16. config['calendarformat'] = 'dd DD.MM HH:mm';
  17. config['calendarlanguage'] = 'pl_PL';
  18. config['boss_stationclock'] = 'RedBoss';
  19. config['gm_api'] = 'Klucz_API_Google_Maps';
  20. config['gm_zoomlevel'] = 1;
  21. config['gm_latitude'] = Szerokość;
  22. config['gm_longitude'] = Długość;
  23. config['wu_api'] = 'Klucz_Weather_Underground';
  24. config['wu_city'] = 'Miasto';
  25. config['wu_name'] = 0;
  26. config['wu_country'] = 'PL';
  27. config['idx_moonpicture'] = 7;
  28. config['spot_clientid'] = 'ID_Spotify_Developer_Mode';
  29. config['selector_instead_of_buttons'] = 1;
  30. config['auto_positioning'] = 0;
  31. config['use_favorites'] = 0;
  32. config['last_update'] = 0;
  33. config['hide_topbar'] = 1;
  34. config['hide_seconds'] = 1;
  35. config['hide_seconds_stationclock'] = 1;
  36. config['use_fahrenheit'] = 0;
  37. config['use_beaufort'] = 0;
  38. config['translate_windspeed'] = 1;
  39. config['static_weathericons'] = 0;
  40. config['hide_mediaplayer'] = 0;
  41.  
  42. var buttons = {}
  43. buttons.webcam = {width:12, isimage:true, refresh:2000, image: 'http://192.168.1.155/cgi/jpg/image.cgi', url: 'http://192.168.1.155/cgi/jpg/image.cgi'}
  44. buttons.webcam1 = {width:12, isimage:true, refresh:2000, image: 'http://192.168.1.156/image/jpeg.cgi', url: 'http://192.168.1.156/image/jpeg.cgi'}
  45. buttons.log = {key:'log', width:12, icon:'fa-microchip', title: 'Domoticz Log', log:true, level: 2}
  46. buttons.moon = {width:6, isimage:true, refreshimage:60000, image: 'moon'}
  47.  
  48. var calendars = {}
  49. calendars.private = { key:'private', width:12, maxitems: 6, icalurl: 'https://calendar.google.com/calendar/ical/Klucz_Kalendarza@group.calendar.google.com/public/basic.ics' }
  50.  
  51. var _STREAMPLAYER_TRACKS = [
  52. {"track":1,"name":"Antyradio","file":"http://ant-kat.cdn.eurozet.pl:8604/;stream"},
  53. {"track":2,"name":"Trójka","file":"http://stream3.polskieradio.pl:8904/listen.pls"},
  54. {"track":3,"name":"Slam! NonStop","file":"http://stream.radiocorp.nl/web10_mp3"},
  55. {"track":4,"name":"100%NL","file":"http://stream.100p.nl/100pctnl.mp3"},
  56. ];
  57.  
  58. var frames = {}
  59. frames.weather = {refreshiframe:10000,height:230,frameurl:"//forecast.io/embed/#lat=Szerokość&lonDługość&name=Miasto&color=#00aaff&font=Helvetica&fontcolor=#ffffff&units=si&text-color=#fff",width:12}
  60. frames.poland = {refreshiframe:10000,height:230,frameurl:"https://api.sat24.com/animated/PL/visual/1/Central%20European%20Standard%20Time/357718",width:4}
  61.  
  62. var maps = {}
  63. maps.miasto1 = { width:12, latitude: Szerokość, longitude: Długość, zoom:10 };
  64. maps.miasto2 = { width:12, latitude: Szerokość, longitude: Długość, zoom:10 };
  65.  
  66. var blocks = {}
  67.  
  68. blocks[24] = {}
  69. blocks[24]['title'] = 'Przed domem'
  70. blocks[100] = {}
  71. blocks[100]['title'] = 'Roomba'
  72. blocks[103] = {}
  73. blocks[103]['title'] = 'Dysk MP3'
  74. blocks[21] = {}
  75. blocks[21]['title'] = 'Sauna'
  76. blocks[22] = {}
  77. blocks[22]['title'] = 'Sypialnia'
  78. blocks[166] = {}
  79. blocks[166]['title'] = 'Yeelight'
  80.  
  81. //Tytuły temperatury
  82. blocks[93] = {}
  83. blocks[93]['title'] = 'Ogród'
  84. blocks[133] = {}
  85. blocks[133]['title'] = 'Salon'
  86. blocks[118] = {}
  87. blocks[118]['title'] = 'S'
  88. blocks[121] = {}
  89. blocks[121]['title'] = 'Z'
  90. blocks[160] = {}
  91. blocks[160]['title'] = 'Sypialnia'
  92. blocks[142] = {}
  93. blocks[142]['title'] = 'Droga do pracy';
  94. blocks[142]['width'] = 6;
  95. blocks[142]['icon'] = 'fa-female';
  96.  
  97. //Tytuły czujników
  98. blocks[59] = {}
  99. blocks[59]['title'] = 'Czujnik dymu'
  100. blocks[132] = {}
  101. blocks[132]['title'] = 'Kwiatki'
  102.  
  103. blocks[163] = {}
  104. blocks[163]['title'] = 'Księżyc'
  105.  
  106. blocks['136_1'] = {}
  107. blocks['136_1']['title'] = 'Aktualnie'
  108. blocks['136_2'] = {}
  109. blocks['136_2']['title'] = 'Dzisiaj'
  110.  
  111. blocks['blocktitle_1'] = {} //Switches - general
  112. blocks['blocktitle_1']['type'] = 'blocktitle';
  113. blocks['blocktitle_1']['title'] = 'Gniazdka';
  114.  
  115. blocks['blocktitle_2'] = {} //Control - general
  116. blocks['blocktitle_2']['type'] = 'blocktitle';
  117. blocks['blocktitle_2']['title'] = 'Czujniki';
  118.  
  119. blocks['blocktitle_3'] = {} //Temperature - general
  120. blocks['blocktitle_3']['type'] = 'blocktitle';
  121. blocks['blocktitle_3']['title'] = 'Temperatura';
  122.  
  123. blocks['blocktitle_4'] = {} //Equipment - general
  124. blocks['blocktitle_4']['type'] = 'blocktitle';
  125. blocks['blocktitle_4']['title'] = 'Sprzęt';
  126.  
  127. blocks['blocktitle_5'] = {} //Owl - general
  128. blocks['blocktitle_5']['type'] = 'blocktitle';
  129. blocks['blocktitle_5']['title'] = 'Zużycie prądu';
  130.  
  131. blocks['blocktitle_6'] = {} //Malinka - general
  132. blocks['blocktitle_6']['type'] = 'blocktitle';
  133. blocks['blocktitle_6']['title'] = 'Malinka';
  134.  
  135. blocks['blocktitle_8'] = {} //Xiaomi
  136. blocks['blocktitle_8']['type'] = 'blocktitle';
  137. blocks['blocktitle_8']['title'] = 'Xiaomi';
  138.  
  139. blocks['blocktitle_7'] = {} //Czas do pracy - general
  140. blocks['blocktitle_7']['type'] = 'blocktitle';
  141. blocks['blocktitle_7']['title'] = 'Droga do pracy';
  142.  
  143. blocks['news_1'] = {}
  144. blocks['news_1']['feed'] = 'https://cors-anywhere.herokuapp.com/http://wiadomosci.gazeta.pl/pub/rss/wiadomosci_kraj.htm';
  145. blocks['news_1']['maxheight'] = 113;
  146.  
  147. blocks['news_2'] = {}
  148. blocks['news_2']['feed'] = 'https://cors-anywhere.herokuapp.com/http://kanaly.rss.interia.pl/swiat.xml';
  149. blocks['news_2']['maxheight'] = 250;
  150.  
  151. var columns = {}
  152. columns['bar'] = {}
  153. columns['bar']['blocks'] = ['logo','miniclock','sunrise','settings']
  154.  
  155. columns[1] = {} //Gniazdka
  156. columns[1]['blocks'] = ['blocktitle_1',24,100,103,21,22,166,'s1','s2'];
  157. columns[1]['width'] = 6;
  158.  
  159. columns[2] = {} //Pogoda, kalendarz
  160. columns[2]['blocks'] = ['weather',frames.weather,calendars.private];
  161. columns[2]['width'] = 6;
  162.  
  163. columns[3] = {} //Kamery
  164. columns[3]['blocks'] = [buttons.webcam,buttons.webcam1];
  165. columns[3]['width'] = 5;
  166.  
  167. columns[4] = {} //RSS news
  168. columns[4]['blocks'] = ['news_1','news_2'];
  169. columns[4]['width'] = 5;
  170.  
  171. columns[5] = {} //Księżyc
  172. columns[5]['blocks'] = [buttons.moon];
  173. columns[5]['width'] = 3;
  174.  
  175. columns[6] = {} //LMS players
  176. columns[6]['blocks'] = [151,150,157,80];
  177. columns[6]['width'] = 5;
  178.  
  179. columns[7] = {} //Czujniki
  180. columns[7]['blocks'] = ['blocktitle_2',59,147,132,112,195];
  181. columns[7]['width'] = 6;
  182.  
  183. columns[8] = {} //Temperatura
  184. columns[8]['blocks'] = ['blocktitle_3',93,133,'118_1','121_1',160,'118_2','121_2'];
  185. columns[8]['width'] = 3;
  186.  
  187. columns[9] = {} //Sprzęt
  188. columns[9]['blocks'] = ['blocktitle_4',72,73,74,75,76,120,122,123];
  189. columns[9]['width'] = 6;
  190.  
  191. columns[10] = {} //Owl
  192. columns[10]['blocks'] = ['blocktitle_5','136_1','136_2','blocktitle_7',142];
  193. columns[10]['width'] = 3;
  194.  
  195. columns[11] = {} //Pogoda, słońce, księżyc, zegar
  196. columns[11]['blocks'] = ['clock','currentweather_big','sunrise',buttons.moon,163,'stationclock']
  197. columns[11]['width'] = 3;
  198.  
  199. columns[12] = {} //Graphs
  200. columns[12]['blocks'] = ['graph_136',buttons.log,frames.poland];
  201. columns[12]['width'] = 5;
  202.  
  203. columns[13] = {} //Music
  204. columns[13]['blocks'] = ['streamplayer','spotify'];
  205. columns[13]['width'] = 5;
  206.  
  207. columns[14] = {} //Graphs
  208. columns[14]['blocks'] = [maps.miasto1,maps.miasto2];
  209. columns[14]['width'] = 5;
  210.  
  211. columns[15] = {} //Malinka
  212. columns[15]['blocks'] = [53,54,49,52,51];
  213. columns[15]['width'] = 5;
  214.  
  215. columns[16] = {} //Xiaomi
  216. columns[16]['blocks'] = ['blocktitle_8',167,168,169,170,171,172];
  217. columns[16]['width'] = 10;
  218.  
  219. columns[17] = {} //Xiaomi
  220. columns[17]['blocks'] = ['blocktitle_8',173,174,175,177,190,192,208,209];
  221. columns[17]['width'] = 10;
  222.  
  223. var screens = {}
  224. screens[1] = {}
  225. screens[1]['background'] = 'bg1.jpg';
  226. //screens[1]['background_morning'] = '/Cezar/image004.jpg'; //morning = 06:00-10:59
  227. //screens[1]['background_noon'] = '/Cezar/image003.jpg'; //noon = 11:00-15:59
  228. //screens[1]['background_afternoon'] = '/Cezar/image002.jpg'; //afternoon 16:00-19:59
  229. //screens[1]['background_night'] = '/Cezar/image005.jpg'; //night = 20:00:05:59
  230. screens[1]['columns'] = [11,2,8,10];
  231.  
  232. screens[2] = {}
  233. screens[2]['background'] = 'bg3.jpg';
  234. screens[2]['columns'] = [1,7,9];
  235.  
  236. screens[3] = {}
  237. screens[3]['background'] = 'bg8.jpg';
  238. screens[3]['columns'] = [3,6,13];
  239.  
  240. screens[4] = {}
  241. screens[4]['background'] = 'bg_morning.jpg';
  242. screens[4]['columns'] = [12,15];
  243.  
  244. screens[5] = {}
  245. screens[5]['background'] = 'bg_noon.jpg';
  246. screens[5]['columns'] = [4,14];
  247.  
  248. screens[6] = {}
  249. screens[6]['background'] = 'bg_night.jpg';
  250. screens[6]['columns'] = [16];
  251.  
  252. screens[7] = {}
  253. screens[7]['background'] = 'bg2.jpg';
  254. screens[7]['columns'] = [17];
RAW Paste Data