Hello,
I’m having some issues with one of my project with the command line. I’m doing a version of the spark thermostat and my code can be found here. I’m able to login to the cloud and spark list returns the correct functions and variables:
Checking with the cloud...
Retrieving cores... (this might take a few seconds)
Thermo (53ff70066667574844552467) is online
Variables:
current_temp (int32)
desired_temp (int32)
is_heat_on (bool)
is_fan_on (bool)
is_AC_on (bool)
motionDetect (bool)
Functions:
int set_temp(String args)
When I go to get variable data, I get nothing in return.
skelator@Johnny-Two:~/thermostat/thermostat$ spark get current_temp Thermo
skelator@Johnny-Two:~/thermostat/thermostat$
When I call functions I get “Permission Denied”:
skelator@Johnny-Two:~/thermostat/thermostat$ spark call set_temp Thermo 75
Function call failed Permission Denied
I’m logged in and I can see my core. Why am I getting a permission denied problem?
Any help is greatly appreciated.
Thanks,