Hypnos3/node-red-contrib-cast

outcome node

Closed this issue · 7 comments

Hi, i use your node for streaming webcams and it works great. Thank you for that!

I only had one issue. The original msg ID (_msgid) is not passed through. So i cant merge this node output with other splitted messages . When a node dont passes al previous info and dont pass the original ID it is hard to keep parts of flows together and keep flow information complete

See: https://nodered.org/docs/creating-nodes/
Nodes should document what properties they ADD to messages, and they should be consistent and predictable in their behaviour.

I use the standard function to send and forward the incoming message without changing the message ID.

OK, I can not reproduce your problem:
image

As you can see has the incoming message the same ID as the outgoing message.

There are additional messages in the meantime, which are state messages from the case device. These send Independent to the incoming message at every state change of the cast device. This can, but must not be have anything to do with the incoming message.

You are right!
I updated my nodes and it works!

I used castv2 and i recently changed to your CAST version.
In my old CASTV2 node the picture send stays on the screen until an update was sended.

With your version the pictures closes after a second.
So i get a lot screens without cam pictures in between when i send messages for about 2 minutes every 5 seconds...

Could it be that you give a RESET or CLOSE after each input message to the device?
Maybe it is an option that this is configurable so i can give the close command and the end of my loop ?
In Castv2 you have to send a close message after a (number of) messages:

msg =
{
host: msg.ip_nest,
payload: {
type: "CLOSE",
}
};

return msg;

currently not, I will see if I could also implement it.

the problem with the beep every refresh is solved my turning the volume to 0 in the msg

My msg is (use this to test castv2 and your cast version

ctype=2;
if(ctype===1 )
//opties voor castv2
{
msg =
{
host:msg.ip_nest,
payload:{
type: "MEDIA",
media: {
url: global.get("url_pvk_websvr") + msg.webnaam,
title: "CAMERA", // optional unless desired
}
}
};
}
else
{
// opties voor cast versie

msg = 
{
ip:msg.ip_nest,
url: global.get("url_pvk_websvr") + msg.webnaam,
contentType: "image/jpg",
//imageUrl 
volume:0,
message: "",
language: 'nl'
};
}

return[msg]

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale commented

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.