gcgarner / IOTstack

docker stack for getting started on IOT on the Raspberry PI
GNU General Public License v3.0
1.52k stars 582 forks source link

Blynk local server guide #104

Closed 877dev closed 4 years ago

877dev commented 4 years ago

Getting started: Log into admin panel at https://youripaddress:9443/admin (Use your Pi's IP address, and ignore Chrome warning).

Default credentials: user:admin@blynk.cc pass:admin

Change username and password: Click on Users > "email address" and edit email, name and password. Save changes Restarting the container using Portainer may be required to take effect.

Setup gmail: Optional step, useful for getting the auth token emailed to you. (To be added once confirmed working....)

iOS/Android app setup: Login the app as per the photos HERE Press "New Project" Give it a name, choose device "Raspberry Pi 3 B" so you have plenty of virtual pins available, and lastly select WiFi. Create project and the auth token will be emailed to you (if emails configured). You can also find the token in app under the phone app settings, or in the admin web interface by clicking Users>"email address" and scroll down to token.

Quick usage guide for app: Press on the empty page, the widgets will appear from the right. Select your widget, let's say a button. It appears on the page, press on it to configure. Give it a name and colour if you want. Press on PIN, and select virtual. Choose any pin i.e. V0 Press ok. To start the project running, press top right Play button. You will get an offline message, because no devices are connected to your project via the token. Enter node red.....

Node red: Install node-red-contrib-blynk-ws from pallette manager Drag a "write event" node into your flow, and connect to a debug node Configure the Blynk node for the first time: URL: wss://youripaddress:9443/websockets more info HERE Enter your auth token from before and save/exit. When you deploy the flow, notice the app shows connected message, as does the Blynk node. Press the button on the app, you will notice the payload is sent to the debug node.

What next? Further information and advanced setup: https://github.com/blynkkk/blynk-server

Check the documentation: https://docs.blynk.cc/

Visit the community forum pages: https://community.blynk.cc/

Interesting post by Peter Knight on MQTT/Node Red flows: https://community.blynk.cc/t/my-home-automation-projects-built-with-mqtt-and-node-red/29045

Some Blynk flow examples: https://github.com/877dev/Node-Red-flow-examples

gcgarner commented 4 years ago

I've added your writeup thanks.

I've going to close the issue for now however you can still add on it and i should get the notifications