-
Notifications
You must be signed in to change notification settings - Fork 0
6. Guide to Set Up Weight Fetching from Node‐RED to ERPNext
-
Before weighing the ingredients, make sure Node-RED is set up and the weighing machine is connected to a PC through a cable. Then, inside Node-RED, locate the node COM8, and edit the
Serial Port
by clicking the pencil icon, then click the search icon beside theSerial Port
. The weighing machine should be found immediately. After that, clickUpdate
on the top right corner. The weighing mahchine is set up. -
Before deploying the Node-RED flow, the API key from ERPNext is needed to insert the data from Node-RED to ERPNext. Go to
Settings
at the top right corner of the page, then clickMy Settings
, scroll all the way down and find the sectionAPI Access
andGenerate Keys
. -
The API keys in ERPNext contains two parts:
API Key
andAPI Secret
. Save theAPI Secret
token somewhere safe as it cannot be viewed or regenerated again. Refresh the page, andAPI Key
will appear besideAPI Secret
. -
In ERPNext, go to
LGM Settings
. Fill up the required fields.
-
API Key
is the API Key in the settings. -
API Secret
is the API Secret in the settings. -
URL
should be your network IPv4 URL. Do make sure to includehttp://
in front of the IP address. -
Port
is the port number for Node-RED. By default, it is1880
.
- To find your Wi-Fi address, open a terminal and type in
ipconfig
. UnderWireless LAN adapter Wi-Fi
, look forIPv4 address
, as shown in the picture above.