WORK IN PROGRESS
Software unstable, alpha, ...
Documentation incomplete
Copy example_config.lua
to config.lua
and put your wifi credentials and settings in it.
Activate the plugins you want to use by adding them to the PLUGINS array (plugin name = filename without lua
ending).
Upload the files init.lua
, config.lua
, pluginloader.lua
, wifi_connect.lua
and the plugins you activated (with their dependencies)
to your ESP.
./luatool.py -f init.lua
./luatool.py -f config.lua
./luatool.py -f wifi_connect.lua
Alternatively use and/or adjust flash_initial.sh
.
If you get Not enough memory
errors compile the lib you want to load (via console on the esp):
> node.compile('file.lua')
Or upload the file with luatool.py -c
Then restart and it should work.
Push DHT22 data with ESP8266 to api.dusti.xyz
- dht_lib.lua
drf_api.lua
Define config.PIN_DHT
and connect the DHT22 to that PIN.
https://github.com/dirkmb/npfng-ledstrip
Work in progress
https://github.com/asmaps/npfng-doorguard
Doorguard plugin for npfng. Monitor your doors and windows with reed switches from a central master node.
- Create a new git repo called how you want to name your plugin typically
npfng-<pluginname>
- Copy the contents of the folder plugin_template into your plugin repo
- Probably you also want to copy the example_config.lua as a starting point.
- Fill out the
README.md
and renamepluginname.lua
according to your plugin name. - Put your code into
pluginname.lua
. Thestart()
function will be called when your plugin is loaded.
NodeMCU
from https://github.com/nodemcu/nodemcu-firmwareluatool.py
from https://github.com/4refr0nt/luatool