Hello I have to go on with this thread.
I now have the problem, that I have Setpoints and Switches I would like to change.
So I have to change my items and rule file.
I would like to keep my
String AC40_Raw { http="<[AC40CacheRaw:60000:REGEX((.*))]" }
but instead of selecting everything I would like to do the necessary changes which in the moment are done in the rule file
when
Item AC40_Raw received update
then
// logInfo("Process AC40", "Beginn Auswertung")
val AC40corrected = AC40_Raw.state.toString.replace("<br>", "<br/>")
AC40corrected = AC40corrected.replace("<META HTTP-EQUIV=\"Refresh\" CONTENT=\"30\">", "")
AC40corrected = AC40corrected.replace("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"","")
AC40corrected = AC40corrected.replace("\"http://www.w3.org/TR/html4/loose.dtd\">", "")
AC40corrected = AC40corrected.replace("<h2>Liste der ausgewählten FG-Adressen:</h2>","")
directly.
The sendcommands in my rule file
TA300A00B91.sendCommand (transform("XSLT", "AC40_TA300A00B91.xsl", AC40corrected).trim)
TL300E01B01.sendCommand (transform("XSLT", "AC40_TL300E01B01.xsl", AC40corrected).trim)
TL300E02B01.sendCommand (transform("XSLT", "AC40_TL300E02B01.xsl", AC40corrected).trim)
should be placed in the items file directly
Number TA300A00B91{ http="<[AC40_Raw:10000:XSLT(AC40_TA300A00B91.xsl)]" }
And later on I would like to define the http post
Number TA300A00B91{ http="<[AC40_Raw:10000:XSLT(AC40_TA300A00B91.xsl)] >[CHANGED:POST:http:////192.168.1.200/cgi-fga/fga/fgacmd/TA300A00B91?pw=0123456789&nv=18]" }
The final “18” should become replaced by the changed value.
What do I have to change to get in running?
Is it possible to get a multiple selection with a regex?