No, the only way would be a separate ini file.
Announcement
Collapse
No announcement yet.
Web page builder for Homeseer 3 & Homeseer 4
Collapse
This topic is closed.
X
This is a sticky topic.
X
X
-
JSON usage
I can make the following line control the device off & on by using it in a URL but having an issue making it work when in the .ini file.
JSON?request=controldevicebyvalue&ref=541&value=0
The best I can tell is that it needs to be in the .ini file somewhere. I have tried locating it multiple places in the ini with no success.
JSON2=/JSON?request=controldevicebyvalue&ref=541&value=0
This creates the button fine but there is no joy.
Column1Section1-1Right=[button,OFF,JSON2]
Someone push me in the right direction?
Comment
-
Originally posted by jon00 View PostNo, the only way would be a separate ini file.
example:
Column1Section2-1Left=Office
Column1Section2-1Middle=[Device,232]
Column1Section2-1Right=
Column1Section2-1Height=
Column1Section2-2Left=Living Room
Column1Section2-2Middle=[Device,234]
Column1Section2-2Right=[devicelastchange,"Zone026"]
Column1Section2-2Height=
Column1Section2-3Left=Master Bath
Column1Section2-3Middle=[Device,290]
Column1Section2-3Right=[devicelastchange,"FF91D923-038-Q33"]
Column1Section2-3Height=
So it has been easy to create a shortened version of a given ini by removing only the first instance.
Question - is this hurting/slowing anything down?
I am quite pleased to have made some quick-and-dirty groupings for display on phones!
Comment
-
Moved HS to W7 from W10. I thought everything was fine until I began testing one of the pages I built. It seems the buttons quit functioning. Everything else seems OK - Note that maybe it wasn't a result of the move so I started a blank INI with a simple off/on that used to work. Can't make this work. Can anyone see the obvious that I am missing?
[Info]
Version=1.0.4
[Settings]
PageTitle="Music"
PageCenter=0
ColumnNumber=1
PageRefresh=0
PageRefreshTime=0
RemoveLogoBar=1
RemoveLinks=0
UseFooter=0
Column1Heading1="Music"
Column1Heading1SpacerTop=0
Column1Heading1SpacerBottom=3
Column1Section1-1Left=Zone 1 Angie's Office
Column1Section1-1Middle=[device,621]
Column1Section1-1Right=[button,On,JSONRefresh1][button,Off,JSONRefresh2]
Column1Section1-1Height=
[Buttons]
JSONRefresh1=/JSON?request=controldevicebyvalue&ref=621&value=1
JSONRefresh2=/JSON?request=controldevicebyvalue&ref=621&value=0
Comment
Comment