Keyboard Shortcuts
Likes
- Nodered-Hamradio
- Messages
Search
Re: Pi3 backp and protection considerations
开云体育Use an adapter to put the Pi microSD card in your computer (I use a PC) and use a program such as Win32 Disk Imager (it is free) and can be downloaded from ? Follow instructions below to make an image of your card. ? 73 Dave wo2x ? Writing Your Own Custom SD Card Setup To A File Run Win32DiskImager.exe Ensure the Device drop down box has the drive your card is inserted into. Press the folder button and select the folder and filename you want to use to write your image file to. Press the Read button. ? ? From: [email protected] <[email protected]> On Behalf Of Santiago Mejia via groups.io
Sent: Wednesday, July 22, 2020 10:52 AM To: [email protected] Subject: [nodered-hamradio] Pi3 backp and protection considerations ? Good morning, as I am going deeper in the use of Node Red for my remote operations and monitoring I know I?m putting a lot of pressure on my Raspi and my card as plenty of the shack will depend on the Raspi being there. I exported all my flows to a safe place, but if Raspi or card fails I?m left with nothing. |
Re: Posting flows
I agree.
While I had computer programming in college back in the VERY early 80’s (FORTRAN, COBOL, PASCAL, BASIC), I know almost nothing about current programming languages. I did write a remote control program in the 90s in Visual BASIC for my Kenwood TS-450. It was clunky but worked. Most of what I have learned with Node Red came from Google searches. Examining other people’s flows (thanks Andreas & Mike) plus collaborating with Alan to add features and debug the flows. The best way for me to approach creating a flow is to create a block diagram of what you are looking to accomplish. A quick doodling on a piece of paper with something like “get status of relay” -> “update button status in Node Red” => “monitor for button push” -> “send command to relay” -> “get status of relay”….. Then come up with nodes to accomplish each step. Manufacturers like KMTronics and Digital Loggers have sample code you can examine to help understand how to communicate with their devices. The Flex API is also published and helped me understand how to talk to the radio. Debug nodes are your friend! Use them to test at various points along the flow to see how data is being manipulated and check that the previous node is doing what you want. Here’s a short description on how I wrote a flow. This may help others who are just getting started. Maybe it is not so short ? I just finished for the 4O3A 2x8 Antenna Genius to show status of which antenna is connected to radio antenna 1 & 2 (I have a dual SCU radio, 6700). First thing I did was use Wire Shark to watch communications to and from the antenna switch from the Windows app. I saw it used port 9007 and the string sent to the switch for an antenna change was !000a!00cf80!1;1 Looking at the protocol for the AG which is available on the web the first part 000a is the header. 00cf80 is the command to change antenna. 1;1 is the payload saying set port A to antenna 1. Again, using the protocol posted here I wanted to see the status of which antenna is currently connected to port A and port B of the switch. On that page I found command 401 which is 00c880. That gets the general information about the switch. I created a TCP request node and set it to stay connected, I entered the IP address of the AG switch and port 9007 (found from Wire Shark). I put a debug node on it to capture the output. I added an inject node which was programmed to send a string (not timestamp). The string I sent was !0007!00c880! The first part between the ! is the header and the second part is the command. In the case of Get Information there is no payload to send. I click on the inject node and see !0020!08c880!0;2;0;4;0;0;0;0;0;0;0;0;1 returned. First thing is to split it into three parts, header, command, and payload. I use a function node to format the returned information as a string then split using the ! character. This creates an object array of 4 parts. The info before the first ! which is blank, the header info, the command info, and the payload. I connect the output of the function node to a split node which splits the array into three message parts. I can then use the command and header info to do whatever I want to with the flow. I'll stop here before everybody falls asleep. 73 Dave wo2x From: [email protected] <[email protected]> On Behalf Of Michael Walker Sent: Wednesday, July 22, 2020 8:12 AM To: [email protected] Subject: [nodered-hamradio] Posting flows Hey all Just a thought, as I think this all the time. I get my flows running, but then I am embarrassed to post some of them since, well,then are a work in progress and a mess. Then, I get embarrassed. I want to encourage everyone not to worry about this. Posted flows will not be judged, but learned from and if you want to clean up someone's flow, excellent. No judgment of course. We all learn from them. Ask questions. There is no stupid question. I would like to encourage the sharing and mentoring of others (you don't want to see my Java--all my code is from Andreas, just hacked to work :) ). And, if someone provides feedback, please consider it a teaching moment. We all started at getting our first On/Off button to work and look like we want. And, how exciting that was. Carry on... as you were! 73, mike va3mw |
Pi3 backp and protection considerations
Good morning, as I am going deeper in the use of Node Red for my remote operations and monitoring I know I?m putting a lot of pressure on my Raspi and my card as plenty of the shack will depend on the Raspi being there. I exported all my flows to a safe place, but if Raspi or card fails I?m left with nothing.
What do you recommend that I do to better protect my flows, my Pi3 and my card? Should I see how long this card and/or Pi3 goes or should I begin to plan for an upgrade, keep multiple cards, external drive, etc... My current memory situation is as follows: Will be looking for your recommendations. ______________ 73 de Santiago HI8SMX - KB8SMX web:? YouTube: HI8SMX? Twitter: @hi8smx Instagram: hi8smx |
Re: Posting flows
Thanks And, If I need to sent this out from time to time, let me know.? From all of here, I trust you to support it Mike On Wed, Jul 22, 2020 at 9:34 AM Santiago Mejia via <hi8smx=[email protected]> wrote: Excellent comment Mike. Totally agree with you. At first I didn?t like posting my flows (most of them are modifications of other users flows), but then I thought that if I don?t share what I am doing I had no way of knowing if I was doing it right or wrong or more complicated than necessary. Now I?m confident to share my work and won?t be ashamed if someone corrects me. As for questions, I am never afraid to ask questions nor ask for help (just ask Dave and Alan jajaja), asking is learning. |
Re: Posting flows
Excellent comment Mike. Totally agree with you. At first I didn?t like posting my flows (most of them are modifications of other users flows), but then I thought that if I don?t share what I am doing I had no way of knowing if I was doing it right or wrong or more complicated than necessary. Now I?m confident to share my work and won?t be ashamed if someone corrects me. As for questions, I am never afraid to ask questions nor ask for help (just ask Dave and Alan jajaja), asking is learning.
But I must also say that we are lucky because we have a group of great people, that loves to help and that doesn?t think less of someone who just don?t know, because I?ve been (and left of course) in groups which are the complete opposite, a groups of bullies. Santiago ______________ 73 de Santiago HI8SMX - KB8SMX web:? YouTube: HI8SMX? Twitter: @hi8smx Instagram: hi8smx |
Re: DLI Webswitch alternate flow
Thanks all for the help and guidance. Like Alan said, if it wasn't for you guys I would have not started this adventure. I?ll try to explain my process.?
I have a OpenWeather flow that I adapted with Alan?s help to monitor weather at my QTH and in case of a given event (Rain, Thunder, Clouds, etc..) can do certain things. In my case I?ve configured an email when Thunder is on the weather report with a message ("Thunder at QTH. Please disconnect"), and as of yesterday, it also sends instructions to my DLI flow to shut down the sockets. For that I used a Gate node and a Link node to the DLI flow. I also added a switch after the gate and before the Link so I can bypass it if I want (ie. false weather report). The flow includes a led alert (courtesy of Alan) to give a quick visual aid on the weather status. Here are some pictures: At the DLI flow, I included a Link from the Weather flow before the switch nodes and in the specific case of the Flex Power Supply I added a delay of 10 seconds just to? make sure it doesn't turn off before the Flex Remote is off, in other words, to make sure the radio power supply does not go off with the radio on. In this flow I found on the web a function to make sure the switches retain the previous states after refreshing (which was a headache at first). At the dashboard end, it looks like this: As I mentioned, I?m not sure if this is the most efficient way of making this work, but I?m just happy enough it works. Finally here is a picture of my current main dashboard. Files have been updated in the file section of this group. The names of the files are self explanatory? :-) Feel free to change it for your needs. Santiago? ______________ 73 de Santiago HI8SMX - KB8SMX web:? YouTube: HI8SMX? Twitter: @hi8smx Instagram: hi8smx |
Re: DLI Webswitch alternate flow
Santiago. ? ?Great job....its a journey and constant learning.? Good to see you are making your station work the way you want. Mike - Great comment.? I agree. For me, I have learned the most by studying?and experimenting with other's flows.? Especially the "parsing" techniques (thanks Dave and Andreas).? Then I adapt the concept to my "use case". Without these groups and sharing from Elmers, I probably would have given up on using Node-Red. Alan WA9WUD |
Re: DLI Webswitch alternate flow
开云体育Very good Santiago! I look forward to checking them out. ? That’s what this group is all about. Getting people’s feet wet then they can modify flows to match their particular needs. ? 73 Dave wo2x ? ? From: [email protected] <[email protected]> On Behalf Of Santiago Mejia via groups.io ?
|
Posting flows
Hey all Just a thought, as I think this all the time. I get my flows running, but then I am embarrassed to post some of them since, well,then are a work in progress and a mess.? Then, I get embarrassed. I want to encourage everyone not to worry about this.? Posted flows will not be judged, but learned from and if you want to clean up someone's flow, excellent.? No judgment of course.? We all learn from them. Ask questions.? There is no stupid question. I would like to encourage?the sharing and mentoring of others (you don't want to see my Java--all my code is from Andreas, just hacked to work :) ).? And, if someone?provides feedback, please consider it a teaching moment.?? We all started at getting our first On/Off button to work and look like we want.? And, how exciting?that was. Carry on... as you were!?? 73, mike va3mw |
Re: DLI Webswitch alternate flow
Yesterday I completed an update on this flow and the weather flow Alan helped me with in order to shutdown the sockets in case of thunderstorms in the weather flow. Later today I will post pictures and will update files on the files folder if you are interested. i don’t know if my flows are the simpler they can be but at least it works and I’m still surprised I could made it. Santiago ______________ 73 de Santiago HI8SMX - KB8SMX web:? YouTube: HI8SMX? Twitter: @hi8smx Instagram: hi8smx |
Re: 4O3A 2x8 Antenna Genius flow
toggle quoted message
Show quoted text
On Jul 21, 2020, at 10:59 PM, David De Coons wo2x <RocketNJ@...> wrote:
|
Re: File /wo2x flows/Elecraft W2 watt meter.json uploaded
#file-notice
开云体育It has to be installed. I found it. Maybe it can be added to some README?It is?node-red-contrib-simple-gate 73, Andreas, N6NU
|
Re: 4O3A 2x8 Antenna Genius flow
开云体育Looks great on a 50” Sony 4k TV fed by an Nvidia RTX2080Yes. Getting to the point of TMI (too much info). On the iPhone and iPad (where I want to use it remotely) the different sections are stacked one on top of the next. Just scroll up or down to access section you want. Split screen on iPad with SSDR for IOS runs quite well. 73 Dave On Jul 21, 2020, at 10:48 PM, Michael Walker <va3mw@...> wrote:
|
Re: 4O3A 2x8 Antenna Genius flow
You are going to need another screen just for NodeRed!! :) That picture didn't really work out well.?? 73 On Tue, Jul 21, 2020 at 9:15 PM David De Coons wo2x <RocketNJ@...> wrote:
|
Re: File /wo2x flows/Elecraft W2 watt meter.json uploaded
#file-notice
开云体育I believe it is part of the base Node Red package ? 73 Dave ? ? ? From: [email protected] <[email protected]> On Behalf Of Andreas Junge
Sent: Tuesday, July 21, 2020 9:20 PM To: [email protected] Subject: Re: [nodered-hamradio] File /wo2x flows/Elecraft W2 watt meter.json uploaded #file-notice ? Dave, ? Which “gate” control did you use? ? 73, Andreas, N6NU
? |
Re: File /wo2x flows/Elecraft W2 watt meter.json uploaded
#file-notice
toggle quoted message
Show quoted text
|
4O3A 2x8 Antenna Genius flow
开云体育Hi All, ? Been working on the flow for the 4O3A Antenna Genius 2x8. I only use 3 antennas here and have the AG set to automatically select the proper antenna per band so no need to control antenna switching. I wanted a display to show which antenna is connected to radio Antennas 1 & 2 (ports A & B on AG switch). Here's a shot of my current dashboard with the AG flow working. As I switch bands the AG display window in Node Red shows which antenna is connected to TX Ant 1 & 2 on the radio. ? If anyone else is using the AG and has requests for adding additional functionality, just ask while I have the protocol fresh in the brain. ? 73 Dave wo2x ? |
Re: members
开云体育Hi Andreas Without his help, I would not have gotten as far as I did in the past year. ?Thank you so much for all your help and support. BTW, I have some basic LP-100A code if you like. ?It took me about 10 minutes and much simpler than the W2. Mike va3mw On Jul 21, 2020, at 1:24 PM, Alan Blind <a.alan.blind@...> wrote:
|