Your comments

Hi Ricardo,


I had no idea the upload.ee service expired like that. I've uploaded it again here: https://indome.zendesk.com/hc/et/article_attachments/360036974032/NetAtmo_Template.bos should you still find it useful.

Best regards

Create a new http device. Enter your host URL: http://192.168.2.109:8080/send

Create a Boolean as a Child node of the http device. name it "State" for example

Create two Commands:

Open (?deviceMac=b4430dd11511&codeId=l1498904289859) - Use the Boolean as a Send trigger. (Devices\Http\State.Value = True)

Close (?deviceMac=b4430dd11511&codeId=l1498900850560) - Use the Boolean as a Send trigger. (Devices\Http\State.Value = False)



And now whenever you change the State, it should send out Open and Close commands.

Hello Ricardo,


you can find a sample here 


This is how I'm playing a wav file for instance. Should be the same for streaming as well, all you need to do is make sure your URI starts with rincon-x-mp3radio:// instead of http://


Also, this only sets the new URI, if you want to play it you will need to send a regular Play command afterwards.



Looks like I was going about it the wrong way. I thought that we need to define a regex match and then a capture group inside it to get what we need. However, in reality the entire Regex we write is essentially a capture group. So when using helpers like this: https://regex101.com/ you need make sure that the "Full match" gets you the data you need, and ignore the individual capture groups.

I got it! Thanks for guiding me in the right direction, Jure. This is what gets me what I need: (?<=1;3;1;0;0;)(\d+\.\d+)

Unfortunately in that case it matches every piece of data that looks like this: int.int


I have a wide range of data coming in on the serial port:


1;3;1;0;0;21.3\n

1;1;1;0;0;11.08\n

1;2;1;0;0;19.14\n

2;1;2;0;0;1\n

1;1;2;0;0;0\n

0;255;3;0;9;TSF:MSG:SEND,0-0-1-1,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0\n

etc


So I need the regex to only get the value if the whole data packet matches.

Tried this: 1;3;1;0;0;(\d+\.\d+) Unfortunately no change in behavior. the String gets the full data string as value, Double still gets 0 as Value

There seems to be an Echo/Alexa skill for just that: https://github.com/m0ngr31/kodi-alexa

You should be able to use the "Computer" device for that. It pings based on the IP or MAC address and has a boolean value for Power which indicates if it's online or not.


I use it to monitor my NAS and the Internet connection (I ping google DNS server) among other things.

I actually managed to achieve the above using a HttpRequest from within a Program. I just had to compose the POST request myself.