Add-On folder location


(Lg Lindstrom) #1

Hi

I’ve planned to follow this article ( https://hacks.mozilla.org/2018/02/creating-an-add-on-for-the-project-things-gateway/ ) to write a simple adapter.

Instruction says:
You can download, copy and paste, or git clone one of them into:
/home/pi/mozilla-iot/gateway/build/addons/

My problem is that I cant find that directory.


(Rzr) #2

you need to configure your gateway 1st and then log into it,
this folder should be there
~/.mozilla-iot/addons/thing-url-adapter/

make sure to have the . in prefix (it hides folders)

Then blog post should be fixed:
https://hacks.mozilla.org/2018/02/creating-an-add-on-for-the-project-things-gateway/

cc: @hobinjk @mstegeman @benfrancis


(Lg Lindstrom) #3

Have this folder moved ??


(Dave Hylands) #4

A couple versions ago (0.4 IIRC) it moved to ~/.mozilla-iot/addons which on the Raspberry Pi is /home/pi/.mozilla-iot/addons (note the leading dot on .mozilla-iot)


(Lg Lindstrom) #5

ahhh… sorry my mistake… works fine.