• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change name of Switch_Relay ?
#1
hey There,
Would it Possible to change the name of a switch (protocol relay)
from (on/off) to (Right/left) ?
 
Reply
#2
Not without changing it for all switch devices.
 
Reply
#3
so i can't change it in one "special" protocol for example "relay" in (Right/left)
und in the normal protocol relay it is (on/off) ?

i will explain the backgorund:

i want too use pilight on a model railway to switch the Light on Railway from red to green
switch the Railswitch from left to right
and also switch the Lights in the Houses etc. from on to off
 
Reply
#4
Nope, you can't, at least not easily; you would have to make several changes to pilight.js (and probably pilight itself too) to intrduce a new type of data, which creates a different looking/labelled element in the GUI...
 
Reply
#5
ok, this isn't too much for me.....
i'm not expert in C ++

any other ideas how i can realise it?
 
Reply
#6
It's not so much about the C++ (pilight is in C anyway Wink), it's the javascript in the pilight.js file that serves the webGUI which you need to modify (mainly).
But I don't have other ideas at the moment, although you could use the API to create your own GUI which labels the devices differently. This is a bit more work, but you can use a language of your choice to create it and make it exactly like you want it to be.
 
Reply
#7
where can i find the this javascript?
 
Reply
#8
pilight-root/libs/webgui
 
Reply
#9
I'm sorry i can#t find this file anywere
 
Reply
#10
But it's right there...
pilight/libs/webgui/pilight.js
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  How can I change date_format to german? Pikeman 1 398 06-30-2018, 11:50 PM
Last Post: curlymo
  Change state by physical sender RZandvoort 4 1,924 09-24-2015, 07:38 AM
Last Post: pilino1234

Forum Jump:


Browsing: 1 Guest(s)