Searching for an easy way to install mraa on an Intel Edison

I was able to get mraa and upm installed with a newer version.
But now when everything’s running on the device, I see this error from the balena Cloud dashboard:

/etc/resinApp.sh: line 2: exec: /docker-entrypoint.sh: cannot execute: Permission denied

How to fix it?

What is the FROM step in your dockerfile?

The script wasn’t marked executable. I had to add

RUN ["chmod", "+x", "/usr/src/app/docker-entrypoint.sh"]

and it worked.
Thanks everyone for your support!

I’m getting

Traceback (most recent call last):
File "/usr/src/app/grovetemp.py", line 28, in <module>
temp = upm.Temperature(0)
File "/usr/local/lib/python2.7/site-packages/upm/pyupm_temperature.py", line 106, in __init__
this = _pyupm_temperature.new_Temperature(pin, scale, r0, b)
UPM Invalid Argument: Temperature: mraa_aio_init() failed, invalid pin?

even though I have :

from upm import pyupm_temperature as upm
temp = upm.Temperature(0)

in temperature.py and I’ve connected the sensor to A0.
What might be going on?

Hi Dejan,

You may want to look at the more recent balenaSense project on pushing sensor data. It pushes data to an InfluxDB instance, which could theoretically be a public URL (as described in your original use case).

John

Well, I guess that means I should give up on insisting on resurrecting my old Intel Edison and should consider buying a new board. I was so close getting it working, but there’s no other option at this point.