Added Variable Flow for Token/Username

This commit is contained in:
Joachim Hummel 2021-07-11 14:47:02 +00:00
parent 175ef8d1d4
commit 585a3f0a9a
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# Things Mobile IoT / M2M SIm Karte
# Things Mobile IoT / M2M SIM Karte
Things Mobile SIM Karten Dashboard mit NodeRED

1
variable.json Normal file
View File

@ -0,0 +1 @@
[{"id":"82a1d36c.2d872","type":"inject","z":"f604d56a.20dbd8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":230,"y":540,"wires":[["5b92cfc.5373fb"]]},{"id":"5b92cfc.5373fb","type":"function","z":"f604d56a.20dbd8","name":"Global","func":"var g_username = \"Your EMAIL @gmail.com\";\nvar g_token = \"xxxxx-your-token\";\nglobal.set(\"g_username\", g_username);\nglobal.set(\"g_token\", g_token);\nmsg.payload = g_username+g_token;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":390,"y":540,"wires":[["c9bb690b.f48f88"]]},{"id":"c9bb690b.f48f88","type":"debug","z":"f604d56a.20dbd8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":600,"y":540,"wires":[]}]