Websocket device #701
-
I'm attempting to implement a DIY thermocouple device (that I will document and share) with a raspberry pi zero W and would appreciate it if someone can share more details about the Websockets device interface. Specifically, captured messages would be very useful. The documentation outlines the general form but it would help to see actual traffic. |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments 8 replies
-
I just installed the latest version (2.4.6) and Websockets are gone as a device type? |
Beta Was this translation helpful? Give feedback.
-
WebSocket support has not been touched in v2.4.6 and is still there. Documentation is here: https://artisan-scope.org/devices/websockets/ and the details of messages can be configured under menu Config >> Ports, last tab "Web Sockets". |
Beta Was this translation helpful? Give feedback.
-
I was looking for the Websocket setup under the device rather than the port. Thank you for the clarification. I have configured like the Documentation shows with the beanTemp and ambientTemp on inputs 1 and 2. How are those bound to BT and ET? If I click the "on" button in Artisan, it connects to my server, but I don't see any requests for temperatures. Are those supposed to be pushed to Artisan? |
Beta Was this translation helpful? Give feedback.
-
Thank you for your help with this. Based on your comments I selected the Probat sample roaster as the machine type. I am actually planning to add my websocket temperature sensors to a Behmor 1600 which is of course not a choice in the machines list. The aset file in the machines folder did not update though. Is that the file useful to see then? Is there another file with my settings? I am temporarily replacing my server with a node-red flow so I can see all details of the traffic. |
Beta Was this translation helpful? Give feedback.
-
Thank you. Here is my settings file: |
Beta Was this translation helpful? Give feedback.
-
I'm making progress. This is a new area for me so I am learning as I debug. So far I'm getting: [WS] Connection was opened. Can I create a "custom machine" that only reports BT and ET so that I don't get these queries for functions that I don't have? |
Beta Was this translation helpful? Give feedback.
-
Ok, thank you. I see the events that I don't need and can disable them. I don't see the ones that I do want though. All I need are events to get the environmental temperature and bean temperature so that Artisan can plot them and calculate RoR and DT/ dt etc. I could make up my own events, but I still don't know what to commands to use and how / where the data that my server returns is bound to the "special" variables ET and BT? |
Beta Was this translation helpful? Give feedback.
-
Looking at the source code, I would guess that temp1 is ET and temp2 is BT by default. So are those the variable names I should return with the temperature values in the JSON response string? What command will Artisan send? |
Beta Was this translation helpful? Give feedback.
-
On the device assignment dialog when I select the ET / BT tab and the "Meter" radio button and "WebSocket" in the dialog, I have the "ET" and "BT" boxes checked for Curves. So are these the variable names in the JSON name-value pairs that I should return? What command should be sent by Artisan to request them? Do I have to create an event or message somehow through the Ports Configuration Websocket dialog? |
Beta Was this translation helpful? Give feedback.
-
I set the events as shown, however, I'm still getting the getCurrentRoastingStep command. I don't think I understand something. |
Beta Was this translation helpful? Give feedback.
-
This goes beyond what I can support for free. Please book a support hour with me if you need my further advice on this: https://shop.artisan.plus/en/consulting/video-conference |
Beta Was this translation helpful? Give feedback.
-
This should be a basic question, but if you can't help I understand. Thank you for your help so far. |
Beta Was this translation helpful? Give feedback.
-
I have no commercial interest btw. I am just trying to expand your user base by making it easier to instrument hobbyist roasters. |
Beta Was this translation helpful? Give feedback.
-
Considering how many questions, doesn’t seem basic. You are freee to book consulting time.
Michael Herbert
CarefreeBuzzBuzz
… On Sep 28, 2021, at 8:34 AM, glassTransition ***@***.***> wrote:
This should be a basic question, but if you can't help I understand. Thank you for your help so far.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
I extended the documentation by a simple example on how to harvest ET and BT via WebSockets: https://artisan-scope.org/devices/websockets/ |
Beta Was this translation helpful? Give feedback.
I extended the documentation by a simple example on how to harvest ET and BT via WebSockets: https://artisan-scope.org/devices/websockets/