I am evaluating Losant since a few days, now working with the edge compute feature on my Raspberry Pi 3.
The original intention was quite simple: use an edge workflow to execute a python script giving me the actual CPU temperature every 5 seconds. Just for testing.
What I have accomplished up to now: installed relevant packages, activated the Losant edge agent and connected it to my Losant application. Everything went fine. At least it seemed like that.
Where do I struggle: in using the “run executable”-node…! Unfortunately.
The first approach was to define the “command” of the “run executable”-node exactly as I would do when being in a SHH session connected to my Raspberry Pi with the standard user “pi”. So I tried “sudo python3 ~/Losant/Edge/get_CPU_Temp.py”. The Python script should write the CPU temperature to the stdout.
Based on the debug messages I realized that the edge agent is not the user “pi” but “losant”, so not knowing anything about my Python script in the home directory of “pi” and not capable of executing the “python3” command.
I tried many different variants (also with using "bash -c “…” ", changing the “current working directory”, …) but did not succeed.
I hope someone is able to help me out and propose a way forward.
Best regards and many thanks