Please read the release notes carefully since this update requires adjustments to your Raspberry Pi configuration!
How to develop modules
Nikhil last edited by
You’d better start from modifying any simple 3rd-party-modules.
I’d second that.
For a quick overview:
The DOM (all visible elements) is based on
HTML, styled with
CSSand usually filled with content and function by
Java Script. That’s all you need for basic modules.
If you go further, you’ll need
Pythonin case you have something connected to the Pi and
nodeJSfor advanced modules with some backend code, like API calls, though some nodeJS knowledge will help you a lot to understand the whole structure in the first place.
jQuerycan be a helpful Java Script library.
API calls usually deliver
JSONor – rarely –
XML, but both should be familiar if you know JS objects and arrays and HTML.
As Sean said, playing around and manipulating existing modules should help you a lot. Go through the code, see if you understand the connections and find out what happens if you manipulate it.
Your most important tool when working in js-files is the browser console where you can print to with the
js codeMM code
console.log("show me the content of var x: " + x);
Log.info("show me the content of var x: " + x);
I wrote this 8 months ago and it may help someone. It’s meant to be used as a learning tool for beginner module creators.