Replies: 1 comment 1 reply
-
Have you taken a look at the Help on the Config>> Devices>> ET/BT tab in the External Program block? What are you trying to implement with an external script? Though it is possible to do most anything, external programs are intended for interfacing to and exchanging data with temperature/data devices. This implies some restrictions. For instance there is no terminal display. Thus print() statements with arbitrary text, like in your test script, have nowhere to be displayed. Print() statements are expected to be comma separated temperature data to be read by Artisan as shown in the Help examples. You mention wanting to do logging. That is best done to a file. One method is shown in the example scripts. Python scripts can import library modules. See the last example script in Help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
I am on Artisan 3.1.0 and I have been trying to run custom python scripts on Artisan. Right now I am testing it this way and I am not seeing logging my messages/error.
Config > Events > Charge > Call Program > (path to script)
My python script is fairly simple, just trying to print something to test the connection.
def main():
print("Hello from Artisan! The script is working correctly.")
if name == "main":
main()
Has anyone here played around with this feature and if so, how would I go about getting it working as well as install any libraries should I need to use them in the future! Much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions