Jump to content
C4 Forums | Control4

Rexabyte

c4Forums Member
  • Posts

    236
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by Rexabyte

  1. Even if you wanted to have it so you could update the URL through a property:

    <property>
      <name>Webview URL</name>
      <type>STRING</type>
      <readonly>false</readonly>
      <default/>
    </property>
    -- Define the property name
    local URL = "Webview URL"
    
    -- Update the URL when the property changes
    function OnPropertyChanged(strProperty)
    	if (strProperty == URL) then
    		-- In thise case the 'uibutton' proxy is defined as 5001
    		C4:SendToProxy(5001, "URL_CHANGED", {url=Properties[URL]})
    	end
    end

     

  2. I've replaced one of the proxies in the driver (the Virtual Switch) and will be phasing out the previous version of the driver. Auto-updating the old drivers would cause problems as the proxy type has changed. As such the file has been renamed so people don't try and update over the previous version, this version requires a fresh install.

    https://annex4.link/drivers/udp-203

    I've added the advanced commands in the protocol as device specific commands for this release as well.

    Changes:

    • Added discrete mute commands.
    • Added 'Set Output Resolution' command.
    • Added 'Set Zoom Ratio' command.
    • Added 'Repeat' command.
    • Added 'Set Subtitle Shift' command.
    • Added 'Set OSD Position' command.
    • Added 'Set Time Information Display' command.
    • Added 'Set HDR Mode' command.

    @turls

    You'll need to go to the virtual switch portion to send the mute command.

  3. The driver generally creates the polly announcement from Amazon Polly once the driver is added to the project. The only reason I could think of that it wouldn't would be if you didn't have a  connection to the internet at the time the driver was added.

    If you did feel free to PM me some more info and I can take a further look.

  4. The TTS is calculated realtime from Amazon Polly so you need an active internet connection. The announcement is downloaded to the controller and saved as a wav file during the synthesize process.

    I could add a setting to play the latest downloaded file, but this may end up being confusing and not aligned if you're using variables. As above if you were using temperature and having it read it out on some event, you'd potentially get an incorrect reading as it would be whatever was the last downloaded.

    If you just want to use the TTS to synthesize static speech you can copy the announcement file created and play it as a normal announcement.

  5. 1. You inject %TIME or %DATE into the string to get the current time and or date.

    2. The current temperature is variable id 1018 on a thermostat if I recall correctly. So it would be %{deviceId,1018} to get temperature. Where device ID is the id of the thermostat.

    Full example: The time is %TIME and the current temperature is %{2380,1018}
     

  6. Everything looks correct in terms of file locations and names. I wonder if it's the lack of the "qty" attribute in the <proxies> element, see below from the Getting Started Guide:

    <proxies qty="1">
           <proxy proxybindingid="5003" name="KEYPAD" small_image="devices_sm/keypad_16.gif" large_image="devices_lg/keypad_32.gif">light_v2</proxy>
    </proxies>
    


    Maybe try adding the "qty" attribute and seeing if that works?

  7. I've just uploaded a new version of the driver 0.2.75 for everyone beta testing.

    Changes:

    • Added support for entering the PIN by a Control4 interface.
    • Added support for HDMI 5.
    • Fixed an issue when issuing the smartcast action (it wouldn't swap inputs).
    • Fixed an issue when issuing input selection button.
    • Fixed an issue where the off command was not turning the TV off.
    • Fixed an issue where the power commands were not notifying the proxy.

    I've improved the installation process. When entering the PIN while pairing you can do it from a Control4 interface rather than having to enter the PIN in the Pairing Code property of the driver. You would just select the TV to watch and then hit the number buttons to enter the PIN displayed on screen.

  8. I just want to make sure we're on the same page. Even if you set the port in the properties to what it initially is, it can change if your router were to reboot or you decide to move the WeMo to another outlet. You need to be able to detect that change.

    For example, I just pulled my WeMo out of the wall when it was port 49154. When I plugged it back in it had a new port of 49153.

    if you're doing this I apologize, but I'd rather save you the hassle of people complaining it doesn't work after a while.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.