All,
I recently installed Mosquitto MQTT on a raspberry pi. I have Home Assistant forwarding data which i am picking up through the HomeSeer MQTT plug in and setting a device value. The data coming across includes quotes "". An example is below:
"/api/media_player_proxy/media_player.master_bedroom_speaker?token=b0b37dc76a3ca8c3b0 b0cafa03107515b4e44caec3c2a0efb6d7db552e4117dc&cache=db97a94 2727fc4ab"
I am trying to find a way to remove the quotes and append the prefix web address to the beginning. In regards to removing the quotes, from what i can gather the following RegEx will work: [a-zA-Z0-9\/?=&._]
Where would i put this regex - or - is regex the best way of getting what i need? Is there a better way of removing the quotes and appending the prefix?
I recently installed Mosquitto MQTT on a raspberry pi. I have Home Assistant forwarding data which i am picking up through the HomeSeer MQTT plug in and setting a device value. The data coming across includes quotes "". An example is below:
"/api/media_player_proxy/media_player.master_bedroom_speaker?token=b0b37dc76a3ca8c3b0 b0cafa03107515b4e44caec3c2a0efb6d7db552e4117dc&cache=db97a94 2727fc4ab"
I am trying to find a way to remove the quotes and append the prefix web address to the beginning. In regards to removing the quotes, from what i can gather the following RegEx will work: [a-zA-Z0-9\/?=&._]
Where would i put this regex - or - is regex the best way of getting what i need? Is there a better way of removing the quotes and appending the prefix?