So, I’m running onstar2mqtt for my car’s controls. I can publish the command (in mosquito broker) {"command": "startVehicle"}
and it runs successfully. However, when trying to pass one of the commands that requires parameters I can’t figure out the correct formatting for the publish message. I’ve googled for hours trying to get an idea, but figured I would reach out to the community for help. I’ve attached screen shots of the commands.js file that I’m trying to execute. The ones without parameters work great. It’s the alert()
one that I’m trying to solve. If anyone has any input I really do appreciate your time.
It seems to be an issue in the command code syntax which I fixed in my fork - GitHub - BigThunderSR/onstar2mqtt: OnStarJS wrapper for MQTT
I also added a couple of additional commands that should also provide what you are looking for:
alertFlash
alertHonk
Let me know if it works for you if you try it out.