LK3xml: Różnice pomiędzy wersjami
(→Jezyk i wyglą) |
|||
(Nie pokazano 7 pośrednich wersji utworzonych przez tego samego użytkownika) | |||
Linia 5: | Linia 5: | ||
Oczywiście pobieramy tylko te co są nam aktualnie potrzebne, można<br/> | Oczywiście pobieramy tylko te co są nam aktualnie potrzebne, można<br/> | ||
wszystkie tylko po co obciążać Lan Kontroler i generować ruch w sieci. | wszystkie tylko po co obciążać Lan Kontroler i generować ruch w sieci. | ||
− | ==Przykład:== | + | ===Przykład:=== |
chcemy tylko odczytywać czas i stan wyjść out to zrobimy takiego xml'a.<br/> | chcemy tylko odczytywać czas i stan wyjść out to zrobimy takiego xml'a.<br/> | ||
Linia 20: | Linia 20: | ||
Nazwy w środkowych nawiasach muszą być takie jak w spisie poniżej, w zewnętrznych nawiasach są dowolne używane już do wykorzystania w javascript. | Nazwy w środkowych nawiasach muszą być takie jak w spisie poniżej, w zewnętrznych nawiasach są dowolne używane już do wykorzystania w javascript. | ||
− | + | ===Czas pracy=== | |
"t0", //0 sekundy<br/> | "t0", //0 sekundy<br/> | ||
"t1", //1 minuty <br/> | "t1", //1 minuty <br/> | ||
Linia 28: | Linia 28: | ||
"out", //5 out state <br/> | "out", //5 out state <br/> | ||
+ | === Wejścia Analogowe - wartość=== | ||
"inp1", //6 INP1A <br/> | "inp1", //6 INP1A <br/> | ||
"inp2", //7 INP2A <br/> | "inp2", //7 INP2A <br/> | ||
Linia 104: | Linia 105: | ||
"ivin3",//75 inpa4 vin 3,3 or 30 <br/> | "ivin3",//75 inpa4 vin 3,3 or 30 <br/> | ||
+ | ===DTH & DS18B20=== | ||
"dtht", //76 dth22 temperature <br/> | "dtht", //76 dth22 temperature <br/> | ||
"dthh", //77 dth22 wilgoc <br/> | "dthh", //77 dth22 wilgoc <br/> | ||
Linia 131: | Linia 133: | ||
"pname2", //98 pwm1 <br/> | "pname2", //98 pwm1 <br/> | ||
"pname3", //99 pwm1 <br/> | "pname3", //99 pwm1 <br/> | ||
− | === | + | ===NAZWY - wejść=== |
+ | ====analogowych==== | ||
"iname0",//100 inpa1 <br/> | "iname0",//100 inpa1 <br/> | ||
"iname1",//101 inpa2 <br/> | "iname1",//101 inpa2 <br/> | ||
Linia 138: | Linia 141: | ||
"iname4",//104 inpa5 <br/> | "iname4",//104 inpa5 <br/> | ||
"iname5",//105 inpa6 <br/> | "iname5",//105 inpa6 <br/> | ||
− | + | ====DS18B20==== | |
"tname0",//106 t1 <br/> | "tname0",//106 t1 <br/> | ||
"tname1",//107 t2 <br/> | "tname1",//107 t2 <br/> | ||
Linia 147: | Linia 150: | ||
"tname6",//112 t7 <br/> | "tname6",//112 t7 <br/> | ||
"tname7",//113 t8 <br/> | "tname7",//113 t8 <br/> | ||
− | + | ====Wejśc Cyfrowych==== | |
"idname0",//114 INPD1 <br/> | "idname0",//114 INPD1 <br/> | ||
"idname1",//115 INPD2 <br/> | "idname1",//115 INPD2 <br/> | ||
"idname2",//116 INPD3 <br/> | "idname2",//116 INPD3 <br/> | ||
"idname3",//117 INPD4 <br/> | "idname3",//117 INPD4 <br/> | ||
+ | ---- | ||
+ | |||
===PWM=== | ===PWM=== | ||
"pwm", //118 pwm on/off <br/> | "pwm", //118 pwm on/off <br/> | ||
− | "pwmf0",//119 pwm freq 1 | + | "pwmf0",//119 pwm freq 1 <br/> |
− | "pwmf1",//120 pwm freq 2 | + | "pwmf1",//120 pwm freq 2 <br/> |
− | "pwmd0",//121 pwm duty1 | + | "pwmd0",//121 pwm duty1 <br/> |
− | "pwmd1",//122 pwm duty2 | + | "pwmd1",//122 pwm duty2 <br/> |
− | "pwmd2",//123 pwm duty3 | + | "pwmd2",//123 pwm duty3 <br/> |
− | "pwmd3",//124 pwm duty4 | + | "pwmd3",//124 pwm duty4 <br/> |
− | "dsid",//125// DS18b20 read id | + | "dsid",//125// DS18b20 read id <br/> |
− | "inpdnn",//126 inpd negative | + | "inpdnn",//126 inpd negative <br/> |
− | "outnn",//127 out negative | + | "outnn",//127 out negative <br/> |
− | "ortime0",//128 //out reset time | + | "ortime0",//128 //out reset time <br/> |
− | "ortime1",//129 //out reset time | + | "ortime1",//129 //out reset time <br/> |
− | "ortime2",//130 //out reset time | + | "ortime2",//130 //out reset time <br/> |
− | "ortime3",//131 //out reset time | + | "ortime3",//131 //out reset time <br/> |
− | "ortime4",//132 //out reset time | + | "ortime4",//132 //out reset time <br/> |
− | "ortime5",//133 //out reset time | + | "ortime5",//133 //out reset time <br/> |
− | "eblock",//134 // elemnt blocked | + | "eblock",//134 // elemnt blocked <br/> |
− | "echeck",//135 // element checked | + | "echeck",//135 // element checked <br/> |
− | "eve0",//136 // event 0 stat | + | "eve0",//136 // event 0 stat <br/> |
− | "eve1",//137 // event 1 stat | + | "eve1",//137 // event 1 stat <br/> |
− | "eve2",//138 // event 2 stat | + | "eve2",//138 // event 2 stat <br/> |
− | "eve3",//139 // event 3 stat | + | "eve3",//139 // event 3 stat <br/> |
− | "eve4",//140 // event 4 stat | + | "eve4",//140 // event 4 stat <br/> |
− | "eve5",//141 // event 5 stat | + | "eve5",//141 // event 5 stat <br/> |
− | "eve6",//142 // event 6 stat | + | "eve6",//142 // event 6 stat <br/> |
− | "eve7",//143 // event 7 stat | + | "eve7",//143 // event 7 stat <br/> |
− | "eve8",//144 // event 8 stat | + | "eve8",//144 // event 8 stat <br/> |
− | "eve9",//145 // event 9 stat | + | "eve9",//145 // event 9 stat <br/> |
− | "ev0",//146 // event 0 | + | "ev0",//146 // event 0 <br/> |
− | "ev1",//147 // event 1 | + | "ev1",//147 // event 1 <br/> |
− | "ev2",//148 // event 2 | + | "ev2",//148 // event 2 <br/> |
− | "ev3",//149 // event 3 | + | "ev3",//149 // event 3 <br/> |
− | "ev4",//150 // event 4 | + | "ev4",//150 // event 4 <br/> |
− | "ev5",//151 // event 5 | + | "ev5",//151 // event 5 <br/> |
− | "ev6",//152 // event 6 | + | "ev6",//152 // event 6 <br/> |
− | "ev7",//153 // event 7 | + | "ev7",//153 // event 7 <br/> |
− | "ev8",//154 // event 8 | + | "ev8",//154 // event 8 <br/> |
− | "ev9",//155 // event 9 | + | "ev9",//155 // event 9 <br/> |
− | "ht0",//156 // http get enable | + | "ht0",//156 // http get enable <br/> |
− | "ht1",//157 // http get serwer | + | "ht1",//157 // http get serwer <br/> |
− | "ht2",//158 // http get port | + | "ht2",//158 // http get port <br/> |
− | "ht3",//159 // http get time | + | "ht3",//159 // http get time <br/> |
− | "ht4",//160 // http get url | + | "ht4",//160 // http get url <br/> |
− | "inpp1", //161 INP1A2 po przeliczeniach | + | "inpp1", //161 INP1A2 po przeliczeniach <br/> |
− | "inpp2", //162 INP2A2 po przeliczeniach | + | "inpp2", //162 INP2A2 po przeliczeniach <br/> |
− | "inpp3", //163 INP3A2 po przeliczeniach | + | "inpp3", //163 INP3A2 po przeliczeniach <br/> |
− | "inpp4", //164 INP4A2 po przeliczeniach | + | "inpp4", //164 INP4A2 po przeliczeniach <br/> |
− | "inpp5", //165 INP5A2 po przeliczeniach | + | "inpp5", //165 INP5A2 po przeliczeniach <br/> |
− | "inpp6", //166 INP6A2 po przeliczeniach | + | "inpp6", //166 INP6A2 po przeliczeniach <br/> |
− | "senssel",//167 sensor select input | + | "senssel",//167 sensor select input <br/> |
− | "inpcalib",//168 input kalibration value | + | "inpcalib",//168 input kalibration value <br/> |
− | "atout0",//169 outs autoswitch time | + | "atout0",//169 outs autoswitch time <br/> |
− | "atout1",//170 outs autoswitch time | + | "atout1",//170 outs autoswitch time <br/> |
− | "atout2",//171 outs autoswitch time | + | "atout2",//171 outs autoswitch time <br/> |
− | "atout3",//172 outs autoswitch time | + | "atout3",//172 outs autoswitch time <br/> |
− | "atout4",//173 outs autoswitch time | + | "atout4",//173 outs autoswitch time <br/> |
− | "atout5",//174 outs autoswitch time | + | "atout5",//174 outs autoswitch time <br/> |
− | "atout6",//175 outs autoswitch time | + | "atout6",//175 outs autoswitch time <br/> |
− | "atout7",//176 outs autoswitch time | + | "atout7",//176 outs autoswitch time <br/> |
− | "atout8",//177 outs autoswitch time | + | "atout8",//177 outs autoswitch time <br/> |
− | "atout9",//178 outs autoswitch time | + | "atout9",//178 outs autoswitch time <br/> |
− | "atout10",//179 outs autoswitch time | + | "atout10",//179 outs autoswitch time <br/> |
− | "atout11",//180 outs autoswitch time | + | "atout11",//180 outs autoswitch time <br/> |
− | "dux0", // 181 duralux | + | |
− | "dux1", // 182 duralux | + | ===Duralux=== |
− | "dux2", // 183 duralux | + | "dux0", // 181 duralux <br/> |
− | "dux3", // 184 duralux | + | "dux1", // 182 duralux <br/> |
− | "dux4", // 185 duralux | + | "dux2", // 183 duralux <br/> |
− | "dux5", // 186 duralux | + | "dux3", // 184 duralux <br/> |
− | "dux6", // 187 duralux | + | "dux4", // 185 duralux <br/> |
− | "dux7", // 188 duralux | + | "dux5", // 186 duralux <br/> |
− | "dux8", // 189 duralux | + | "dux6", // 187 duralux <br/> |
− | "dux9", // 190 duralux | + | "dux7", // 188 duralux <br/> |
− | "dux10",// 191 duralux | + | "dux8", // 189 duralux <br/> |
− | "postop1",//192 position element top na status | + | "dux9", // 190 duralux <br/> |
− | "postop2",//193 position element top na status | + | "dux10",// 191 duralux <br/> |
− | "posleft1",//194 position element left na status | + | "duralux",//197 duralux on <br/> |
− | "posleft2",//195 position element left na status | + | === Element STOP=== |
− | "possave", //196 informacja ze pozycja zostala zapisana | + | "postop1",//192 position element top na status <br/> |
− | + | "postop2",//193 position element top na status <br/> | |
− | "sched0",//198 scheduler0 | + | "posleft1",//194 position element left na status <br/> |
− | "sched1",//199 scheduler1 | + | "posleft2",//195 position element left na status <br/> |
− | "sched2",//200 scheduler2 | + | "possave", //196 informacja ze pozycja zostala zapisana <br/> |
− | "sched3",//201 scheduler3 | + | ===Sheduler=== |
− | "sched4",//202 scheduler4 | + | "sched0",//198 scheduler0 <br/> |
− | "sched5",//203 scheduler5 | + | "sched1",//199 scheduler1 <br/> |
− | "sched6",//204 scheduler6 | + | "sched2",//200 scheduler2 <br/> |
− | "sched7",//205 scheduler7 | + | "sched3",//201 scheduler3 <br/> |
− | "sched8",//206 scheduler8 | + | "sched4",//202 scheduler4 <br/> |
− | "sched9",//207 scheduler9 | + | "sched5",//203 scheduler5 <br/> |
− | "e_8",// 208// email text | + | "sched6",//204 scheduler6 <br/> |
− | "eemac",//209 //eeprommc adres | + | "sched7",//205 scheduler7 <br/> |
− | "mq0",//210 enable mqtt seteing | + | "sched8",//206 scheduler8 <br/> |
− | "mq1",//211 server | + | "sched9",//207 scheduler9 <br/> |
− | "mq2",//212 port | + | "e_8",// 208// email text <br/> |
− | "mq3",//213 login | + | "eemac",//209 //eeprommc adres <br/> |
− | "mq4",//214 passs | + | ===MQTT=== |
− | "mq5",//215 prefix | + | "mq0",//210 enable mqtt seteing <br/> |
− | "mq6",//216 time | + | "mq1",//211 server <br/> |
− | "mq7",//217 ping time | + | "mq2",//212 port <br/> |
− | "mq8",//218 select | + | "mq3",//213 login <br/> |
− | "lang",// 219 jezyk menu | + | "mq4",//214 passs <br/> |
− | "picture",// 220 czy jest zaladowany obrazek | + | "mq5",//215 prefix <br/> |
− | "line",//221 czy linie na statusie maja byc widoczne | + | "mq6",//216 time <br/> |
− | "out0",//222 stan out0 | + | "mq7",//217 ping time <br/> |
− | "out1",//223 stan out1 | + | "mq8",//218 select <br/> |
− | "out2",//224 stan out2 | + | ===Jezyk i wygląd=== |
− | "out3",//225 stan out3 | + | "lang",// 219 jezyk menu <br/> |
− | "out4",//226 stan out4 | + | "picture",// 220 czy jest zaladowany obrazek <br/> |
− | "out5",//227 stan out5 | + | "line",//221 czy linie na statusie maja byc widoczne <br/> |
+ | |||
+ | ===Stan wyjść === | ||
+ | "out0",//222 stan out0 <br/> | ||
+ | "out1",//223 stan out1 <br/> | ||
+ | "out2",//224 stan out2 <br/> | ||
+ | "out3",//225 stan out3 <br/> | ||
+ | "out4",//226 stan out4 <br/> | ||
+ | "out5",//227 stan out5 <br/> |
Aktualna wersja na dzień 08:34, 20 mar 2017
Spis treści
LK3 xml
Opis zmiennych jakie może zwrócić LK3 przez plik xml.
To są w tej chwili wszystkie zmienne jakie zwraca LK3.
Oczywiście pobieramy tylko te co są nam aktualnie potrzebne, można
wszystkie tylko po co obciążać Lan Kontroler i generować ruch w sieci.
Przykład:
chcemy tylko odczytywać czas i stan wyjść out to zrobimy takiego xml'a.
<?xml version="1.0"?>
<out0></out0>
<out1></out1>
<out2></out2>
<out3></out3>
<out4></out4>
<out5></out5>
<czas></czas>
Nazwy w środkowych nawiasach muszą być takie jak w spisie poniżej, w zewnętrznych nawiasach są dowolne używane już do wykorzystania w javascript.
Czas pracy
"t0", //0 sekundy
"t1", //1 minuty
"t2", //2 godziny
"t3", // 3 dni
"t4", // 4 czas
"out", //5 out state
Wejścia Analogowe - wartość
"inp1", //6 INP1A
"inp2", //7 INP2A
"inp3", //8 INP3A
"inp4", //9 INP4A
"inp5", //10 INP5A
"inp6", //11 INP6A
"vin", //12 vin
"tem", //13 temp board
"ind", //14 inpD
"nip", //15 ip adres
"nmk", //16 ip mask
"ngw",//17 ip gatewy
"nds",//18 ip DNS
"nmac", //19 MAC adres
"npor",///20 http port
"ndh", //21 dhcp
"hw", //22 HW
"sw", //23 SW
"auth",//24 autoryzacja on/off
"userpass", //25 admin user log i pass
"nds2", //26 ip dns2
"name", //27 LK3 name
"xname", //28 out_t name
"asout", //29 auto switch on/off
"ouast", //30 out on/off after start
"oasdt0", //31 out after start delay
"oasdt1", //32 out after start delay
"oasdt2", //33 out3 after start delay
"oasdt3", //34 out4 after start delay
"oasdt4", //35 out_t after start delay
"oasdt5", //36 out_t after start delay
"upgr", //37 upgrade
"t_ena",//38 ntp enabled
"t_man",//39 ntp set manual
"t_ser",//40 ntp server
"t_por",//41 ntp port
"t_zon",//42 ntp zone
"t_int",//43 ntp interval
"wden",//44 wdog enabled
"wdem",//45 wdog email
"wdho0",//46 wdog host/ip
"wdho1",//47 wdog host/ip
"wdho2",//48 wdog host/ip
"wdho3",//49 wdog host/ip
"wdho4",//50 wdog host/ip
"wdif",//51 wdog icmp fail
"wdiw",//52 wdog icmp wait time
"wdip",//53 wdog icmp send period
"wdwt",//54 wdog wait time after start
"wdrt",//55 wdog restart time
"wdmr",//56 wdog max restart
"pingt", // 57 ping time w ms
"pingf", // 58 ping fail count
"pingr", // 59 ping restart state
"e_1", //60 email serwer
"e_2", //61 email port
"e_3", //62 email user
"e_4", //63 email pass
"e_5", //64 email to
"e_6", //65 email from
"e_7", //66 email subject
"snmpc",//67 snmp community
"igain0",//68 inpa1 gain
"igain1",//69 inpa2 gain
"igain2",//70 inpa3 gain
"igain3",//71 inpa4 gain
"ivin0",//72 inpa1 vin 3,3 or 30
"ivin1",//73 inpa2 vin 3,3 or 30
"ivin2",//74 inpa3 vin 3,3 or 30
"ivin3",//75 inpa4 vin 3,3 or 30
DTH & DS18B20
"dtht", //76 dth22 temperature
"dthh", //77 dth22 wilgoc
"ds0",// 78 ds18b20 1
"ds1",// 79 ds18b20 2
"ds2",// 80 ds18b20 3
"ds3",// 81 ds18b20 4
"ds4",// 82 ds18b20 5
"ds5",// 83 ds18b20 6
"ds6",// 84 ds18b20 7
"ds7",// 85 ds18b20 8
"x1",//86 do wykorzystania
"x2",//87 do wykorzystania
"x3",//88 do wykorzystania
"x4",//89 do wykorzystania
"oname0",// 90 out1 name
"oname1",// 91 out2 name
"oname2",// 92 out3 name
"oname3",// 93 out4 name
"oname4",// 94 out5 name
"oname5",// 95 out6 name
"pname0", //96 pwm1
"pname1", //97 pwm1
"pname2", //98 pwm1
"pname3", //99 pwm1
NAZWY - wejść
analogowych
"iname0",//100 inpa1
"iname1",//101 inpa2
"iname2",//102 inpa3
"iname3",//103 inpa4
"iname4",//104 inpa5
"iname5",//105 inpa6
DS18B20
"tname0",//106 t1
"tname1",//107 t2
"tname2",//108 t3
"tname3",//109 t4
"tname4",//110 t5
"tname5",//111 t6
"tname6",//112 t7
"tname7",//113 t8
Wejśc Cyfrowych
"idname0",//114 INPD1
"idname1",//115 INPD2
"idname2",//116 INPD3
"idname3",//117 INPD4
PWM
"pwm", //118 pwm on/off
"pwmf0",//119 pwm freq 1
"pwmf1",//120 pwm freq 2
"pwmd0",//121 pwm duty1
"pwmd1",//122 pwm duty2
"pwmd2",//123 pwm duty3
"pwmd3",//124 pwm duty4
"dsid",//125// DS18b20 read id
"inpdnn",//126 inpd negative
"outnn",//127 out negative
"ortime0",//128 //out reset time
"ortime1",//129 //out reset time
"ortime2",//130 //out reset time
"ortime3",//131 //out reset time
"ortime4",//132 //out reset time
"ortime5",//133 //out reset time
"eblock",//134 // elemnt blocked
"echeck",//135 // element checked
"eve0",//136 // event 0 stat
"eve1",//137 // event 1 stat
"eve2",//138 // event 2 stat
"eve3",//139 // event 3 stat
"eve4",//140 // event 4 stat
"eve5",//141 // event 5 stat
"eve6",//142 // event 6 stat
"eve7",//143 // event 7 stat
"eve8",//144 // event 8 stat
"eve9",//145 // event 9 stat
"ev0",//146 // event 0
"ev1",//147 // event 1
"ev2",//148 // event 2
"ev3",//149 // event 3
"ev4",//150 // event 4
"ev5",//151 // event 5
"ev6",//152 // event 6
"ev7",//153 // event 7
"ev8",//154 // event 8
"ev9",//155 // event 9
"ht0",//156 // http get enable
"ht1",//157 // http get serwer
"ht2",//158 // http get port
"ht3",//159 // http get time
"ht4",//160 // http get url
"inpp1", //161 INP1A2 po przeliczeniach
"inpp2", //162 INP2A2 po przeliczeniach
"inpp3", //163 INP3A2 po przeliczeniach
"inpp4", //164 INP4A2 po przeliczeniach
"inpp5", //165 INP5A2 po przeliczeniach
"inpp6", //166 INP6A2 po przeliczeniach
"senssel",//167 sensor select input
"inpcalib",//168 input kalibration value
"atout0",//169 outs autoswitch time
"atout1",//170 outs autoswitch time
"atout2",//171 outs autoswitch time
"atout3",//172 outs autoswitch time
"atout4",//173 outs autoswitch time
"atout5",//174 outs autoswitch time
"atout6",//175 outs autoswitch time
"atout7",//176 outs autoswitch time
"atout8",//177 outs autoswitch time
"atout9",//178 outs autoswitch time
"atout10",//179 outs autoswitch time
"atout11",//180 outs autoswitch time
Duralux
"dux0", // 181 duralux
"dux1", // 182 duralux
"dux2", // 183 duralux
"dux3", // 184 duralux
"dux4", // 185 duralux
"dux5", // 186 duralux
"dux6", // 187 duralux
"dux7", // 188 duralux
"dux8", // 189 duralux
"dux9", // 190 duralux
"dux10",// 191 duralux
"duralux",//197 duralux on
Element STOP
"postop1",//192 position element top na status
"postop2",//193 position element top na status
"posleft1",//194 position element left na status
"posleft2",//195 position element left na status
"possave", //196 informacja ze pozycja zostala zapisana
Sheduler
"sched0",//198 scheduler0
"sched1",//199 scheduler1
"sched2",//200 scheduler2
"sched3",//201 scheduler3
"sched4",//202 scheduler4
"sched5",//203 scheduler5
"sched6",//204 scheduler6
"sched7",//205 scheduler7
"sched8",//206 scheduler8
"sched9",//207 scheduler9
"e_8",// 208// email text
"eemac",//209 //eeprommc adres
MQTT
"mq0",//210 enable mqtt seteing
"mq1",//211 server
"mq2",//212 port
"mq3",//213 login
"mq4",//214 passs
"mq5",//215 prefix
"mq6",//216 time
"mq7",//217 ping time
"mq8",//218 select
Jezyk i wygląd
"lang",// 219 jezyk menu
"picture",// 220 czy jest zaladowany obrazek
"line",//221 czy linie na statusie maja byc widoczne
Stan wyjść
"out0",//222 stan out0
"out1",//223 stan out1
"out2",//224 stan out2
"out3",//225 stan out3
"out4",//226 stan out4
"out5",//227 stan out5