-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blynk-ws nodes stuck after wifi reconnects on raspberry pi #37
Comments
Is this with a local Blynk server, or the Blynk cloud servers? If it’s the latter then do you realise that the cloud servers will be shut down in December, and that the Legacy apps will be removed from the app/play stores at the end of this month? Pete. |
It's with the Blynk cloud servers. I did not realize that they are being shut so thank you for this warning. What do you suggest I do to deal with this situation? I have two home automation projects that are in production and using the Blynk cloud servers. I am currently prototyping the architecture suggested by you, using Blynk UI, Node-Red flows, MQTT and ESP32. That's when I ran into the issue where the NR Blynk nodes stopped responding after the RPi WiFi dropped and reconnected. So, I also need to understand why the NR Blynk nodes stop working when the RPi wifi drops and then re-connects. Your help in both these matter would be invaluable. Regards |
Retirement announcement… I’ve never experienced the issue you’ve described, so not sure what the cause is. I guess that opening a console session and doing a node-red-stop then node-red-start followed by forcing the failure by causing the WiFi issue may give some clues. I’d suggest moving to the new Blynk IoT product and the new Node-Red contrib. Also, it might be worth upgrading your Pi, as the 2b is getting a bit old now. Pete. |
Thanks
My first project is very tightly integrated with legacy Blynk
Can I install a local Blynk server to run the legacy Blynk after it is
expired?
…On Sat, 11 Jun 2022 at 3:35 AM, Pete Knight ***@***.***> wrote:
Retirement announcement…
https://blynk.io/blog/what-will-happen-to-the-legacy-blynk-platform
I’ve never experienced the issue you’ve described, so not sure what the
cause is. I guess that opening a console session and doing a node-red-stop
then node-red-start followed by forcing the failure by causing the WiFi
issue may give some clues.
I’d suggest moving to the new Blynk IoT product and the new Node-Red
contrib.
Some info here…
https://community.blynk.cc/t/my-home-automation-projects-built-with-mqtt-and-node-red/29045/12?u=peteknight
Also, it might be worth upgrading your Pi, as the 2b is getting a bit old
now.
Pete.
—
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADDRQRHENXVQOD2A7D3WRGLVOO33VANCNFSM5YOIJ5JA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I wouldn't recommend it. The Legacy app will disappear from the App/Play store at the end of this month, and although you'll be able to sideload the Android version in future it will never be updated and will eventually become incompatible with the Android OS version that you are wanting to run. if you use iOS then life will be even harder, as you'll need to jailbreak your devices and still suffer from the issue of future incompatibility.
If, as you've said, you've gone down the MQTT route then migration to Blynk IoT will be far easier. Pete. |
I have glimpsed through your long article. I will read it in some depth next week to fully understand it. I have understood the gist of it and built a prototype using the bylnk-ws (legacy) node on NodeRed, Mosquitto (both running on the RPi) and an ESP32. It all works well and I am now ready to take the next step and try it out using the new Blynk IoT product and the new Node-Red contrib. However, I remain concerned that (more specifically), the blynk-ws nodes on NR don't recover until I physically press the 'Restart Flows' menu on NR after rebooting my router, which causes wifi on RPi to drop and then reconnect, once the router has rebooted. I have some concerns when trying to port my application to the new Blynk IoT product.
Thanks once again for all your help. Anand. |
There is no table widget in IoT (yet). You could use Terminal, but that lacks data persistence when the app is closed. A workaround would be to store the data in Node-Red and push it to the terminal on a button push, or use multiple labelled value widgets (or a single labelled value widget with linefeeds to give multiple lines if this is allowed). The rest of your question is answered in the forum post, part of which links back to other issues here.
Did you try my suggestion of observing the Node-Red console info? Pete. |
Did you try my suggestion of observing the Node-Red console info? I'm very new to NR so don't quite know how to do this? Could you point me to a link or explain how to do this please? Anand. |
Did you try my suggestion of observing the Node-Red console info? The problem seems to only with the blynk-ws nodes. The rest of the nodes are fine after the router reboot. Anand. |
Are you SSHing to your Pi from a PC, and using PuTTY or similar (my preferred approach), or are your monitor, keyboard and mouse plugged directly into your Pi? Pete. |
I mostly use PuTTY to SSH to the Pi, but sometimes I use the
keyboard/mouse/monitor approach as well.
Anand.
…On Sat, 11 Jun 2022 at 19:17, Pete Knight ***@***.***> wrote:
I'm very new to NR so don't quite know how to do this? Could you point me
to a link or explain how to do this please?
Are you SSHing to your Pi from a PC, and using PuTTY or similar (my
preferred approach), or are your monitor, keyboard and mouse plugged
directly into your Pi?
Pete.
—
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADDRQRB4TE6HGPM3GDNX2E3VOSKFNANCNFSM5YOIJ5JA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Okay, so open a PuTTY session and log-in. Then, as I said earlier, type "node-red-stop" then "node-red-start". You'll then see some debug info as messages are transferred between Node-Red and the Blynk server. Now force a WiFi disconnection and re-connect then see what the messages show about re-establishing the connection and what errors are reported. When you issue the node-red-start command it will also tell you which version of Node.JS Pete. |
I think that’s a question for @gablau, but TBH I’d focus on migrating to Blynk IoT rather than worrying about issues with the Legacy product. Pete. |
Pete, Yes, agreed. I will start work on the new IoT. I have now the Spain project part of your link. One question: On the gateway end, what 433 receiver are you using and how are you decoding the processing the signal? Anand. |
Hello everybody, Regards |
Virtually any 433MHz receiver that uses a crystal, like this... will work fine. Avoid the ones without a crystal (one that look like this...) I use the RCSwitch library to decode the signals then send the result to Node-Red as an MQTT message. You can also hack the Sonoff RF Bridge to achieve the same result if you wish. TBH, this discussion would work better on the Blynk community forum if you're going to diverge from the initial issue that you raised regarding the ws contrib. Pete. |
Hi Gabriele, Many thanks for you reply. I'm new to NodeRed so not sure how to check the version of the library I've installed. Please could you help me on how to find the version? Regards, |
My system hardware/software:
Node-RED version: v2.2.2 running on a RPi 2B.
Blynk legacy running on iOS 14
I have a simple Blynk project with one push button connected to virtual pin 0 (V0).
I am sending status of the V0 virtual pin on my Blynk (legacy) ios app to a NR flow. It is working fine and I can see the pin status (0 or 1) on the debug node on NR.
The Wi-Fi in my house keeps dropping. When the Wi-Fi drops and then returns, the RPi reconnects to the Wi-Fi and comes back online.
However, at this point, I am facing the following problems:
If I then invoke 'Restart Flows' from the NR menu, both the above problems get resolved. i.e.
Please could you help to resolve this issue.
Thanks and regards,
Anand Jhaveri.
The text was updated successfully, but these errors were encountered: