Dzienniczek Vulcan, tutaj jest cały temat
finalnie wyszło to tak
ale w takiej formie też działa
msg.data.new_state.state = msg.data.new_state.state.replace("+"," plus. ");
msg.data.new_state.state = msg.data.new_state.state.replace("-"," minus. ");
msg.payload=
{
"data":
{
"message": "Kacper Ocena: " +msg.data.new_state.state +" - " +msg.data.new_state.attributes.subject + " " +msg.data.new_state.attributes.date + ", waga: " +msg.data.new_state.attributes.weight +", " +msg.data.new_state.attributes.description,
}
}
return msg;