Keyboard Shortcuts
Likes
- Nodered-Hamradio
- Messages
Search
Re: Permissions question...
I assume so... As I mentioned I am new at Node-Red...
toggle quoted message
Show quoted text
73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources On 6/11/22 06:01, Adrian Fewster wrote:
Ok. So that just does 'return msg;' ? |
Re: Permissions question...
Adrian,
toggle quoted message
Show quoted text
That generates pages, and pages of output... Should there be a grep there someplace? 73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources On 6/11/22 05:53, Adrian Fewster wrote:
Also what is the link to the file ? |
Re: Permissions question...
I believe you are asking if there is any code in the section for code for the file node, (is that called a function as well as a node?), nothing is in that part.
toggle quoted message
Show quoted text
73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources On 6/11/22 05:49, Adrian Fewster wrote:
Dave, also what is in the function attached to that read node please? |
Re: File /!1! Flows by Type/RADIOS/HRD_ve9gfi_2022.06.08.2130.json updated
#file-notice
Hi Adrian,?
I'll check if it's a utf16 issue... and if that fails, I'll issue a temp update with a radio type dropdown as you suggest.? I'm out for breakfast now and I have lawn mowing etc to do later.? But I'll issue an update later. Greg ve9gfi |
Re: Permissions question...
Let me absorb this a bit... I am quite new to Node-Red, and have never even heard of the visudo before...
toggle quoted message
Show quoted text
I have learned to understand what changes I make first though, so I am going slow and careful here... I brought up visudo, and I don't see dcole anywhere... If all of this is to insure dcole can use sudo, I can already, however I do need a password when I invoke sudo. 73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources On 6/11/22 05:48, Adrian Fewster wrote:
Dave, Is dcole in visudo setup as ; |
Re: Permissions question...
BTW, the file is created by a perl script I run under dcole, same group the file is owned by.
toggle quoted message
Show quoted text
73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources On 6/11/22 04:54, Mick - W8BE wrote:
If the permissions are set correctly the only other reason I would think node red could not read the file is that node red is not apart of the group. |
Re: Permissions question...
Hi Adrian,
toggle quoted message
Show quoted text
Here are the results: dcole@nostromo:~$ stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt File: /home/dcole/scripts/solar_data/incoming/lotwcount.txt Size: 3 Blocks: 8 IO Block: 4096 regular file Device: 801h/2049d Inode: 60424491 Links: 1 Access: (0666/-rw-rw-rw-) Uid: ( 1000/ dcole) Gid: ( 1000/ dcole) Access: 2022-06-11 05:25:02.072231081 -0700 Modify: 2022-06-11 05:35:04.027054533 -0700 Change: 2022-06-11 05:35:04.027054533 -0700 Birth: - dcole@nostromo:~$ Also, thank you! 73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources On 6/10/22 23:19, Adrian Fewster wrote:
stat /home/dcole/scripts/solar_data/incoming/lotwcount.txt |
Re: Permissions question...
Hi Mick,
toggle quoted message
Show quoted text
Thank you for the assistance, here are the results: -rw-rw-rw- 1 dcole dcole 3 Jun 11 05:20 /home/dcole/scripts/solar_data/incoming/lotwcount.txt 73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources On 6/10/22 22:50, Mick - W8BE wrote:
Dave can? you run the following command and print the output: |
Re: File /!1! Flows by Type/RADIOS/HRD_ve9gfi_2022.06.08.2130.json updated
#file-notice
Hi Adrian, ? I created two dynamic dropdown lists, and each one works. Then I added a Switch node to select what list should be used, based on the getradio response.? ? I'm stuck ... but I wanted to share that this will work for your radio and mine, automatically, if I can get the Switch node to cooperate. I tried using both the msg.payload output from MQTT and the flow.getradio variables... same response (not working). It's Saturday here, and I need to run the roads ...? If you see my error, please let me know. ? EDIT>>>? The one thing that comes to mind is that perhaps the getradio and mqtt string is UTF16 and is not matching my typed in string. Greg VE9GFI ? |
Re: Permissions question...
Dave
Perhaps the file is in a directory that requires administrative privileges?? I suggest two ideas. 1- Move the file to different locations, like the documents directory. 2- prepend a "sudo" to your Node-Red read file command, with a password. ?The command will look like this: ? "sudo -S <<< "password"?
|
Permissions question...
Hi,
I am trying to read a file under Ubuntu... The file is under my home directory, as shown in the screen capture... I am using readfile, and all permissions are set to read/write for everyone on system, for the target file. I know this is some sort of permissions issue, but I don't know what it is... Any suggestions? -- 73, and thanks, Dave (NK7Z) ARRL Volunteer Examiner ARRL Technical Specialist, RFI ARRL Asst. Director, NW Division, Technical Resources |
Re: Power Master 2 watt meter flow
开云体育You can set a jumper in the meter or use a Y cable and connect two sensors parallel. The sensor with highest reading will show output.?This is fine for amp output in SO2R but will not show input and output of amp at same time. I set the jumper in the PM 2 meter which parallels the two sensors. Works fine. Dave wo2x On Jun 10, 2022, at 9:45 PM, AH0U <bruce@...> wrote:
|
Re: Power Master 2 watt meter flow
AH0U
开云体育Can it show these for both inputs to the PowerMaster or just one??Non praeses meus deserve neither liberty nor safety. Benjamin Franklin (1706-1790 On Jun 10, 2022, at 18:02, David De Coons wo2x <RocketNJ@...> wrote:
? Hi All, ? Making progress with Power Master II watt meter flow. I’ve got metering working as well as alarm indication for high SWR and High Forward Power. These can be set in meter to auto reset or be latching. The alarms light up LEDs in the dashboard and can be reset via a Clear Alarms button. Trying to think of anything else (control wise) to add to the meter. ? 73 Dave wo2x ? |
Power Master 2 watt meter flow
开云体育Hi All, ? Making progress with Power Master II watt meter flow. I’ve got metering working as well as alarm indication for high SWR and High Forward Power. These can be set in meter to auto reset or be latching. The alarms light up LEDs in the dashboard and can be reset via a Clear Alarms button. Trying to think of anything else (control wise) to add to the meter. ? 73 Dave wo2x ? |
Programming help needed - CRC8 calculations
开云体育Hello all, ? Working on a flow for the Array Solutions Power Master II watt meter. ? I have most of it working except a couple of commands where I cannot determine the CRC checksum. I am NOT a programmer so therefore I have met my match and hoping some of the brain power in the group may have an answer. ? The meter wants an STX + command + ETX + CRC + <CR> ? I am attaching below the information I received from Array Solutions on how to calculate the CRC. According to their info the CRC is based solely on the payload and not the STX or ETX (hex 0x02 and 0x03). I would like this to be able to be put into a function node to calculate a msg.crc based upon payload. ? If a payload of v? is sent the CRC is 0x42 0x42 hex or BB ascii. ? The below info has the CRC table they use. So looking for someone with programming that can come up with a function to determine CRC for a payload. ? 73 Dave wo2x ? ? ? ? PowerMaster VSWR Meter serial protocol 10-17-06 ? There are 3 baud rates selectable from the meter menu. The default is 38,400, no parity, 1 stop bit. ? The first character of a packet is an STX ($02). This is followed by the packet payload. The payload is followed by an ETX ($03). An 8 bit CRC is appended after the ETX. The CRC covers the packet payload, not the STX or ETX. Finally a <cr> ($0D) is appended. Line feeds ($10) may be added, they are stripped by the receive protocol. ? Here is an example of the packet CRC testing: ? byte CRC_Check(void) { byte *ptr, b_udata, b_crc; ? ptr = c_UserInBuf + 1;? /* skip STX */ b_CRC8 = 0; while((b_udata = *ptr++) != '\0')? /* end of string safety limit */ ????? { ????? if(b_udata == ETX) ??????????? { ??????????? b_crc = MakeHex(*ptr++) * 16; ??????????? b_crc += MakeHex(*ptr); ??????????? b_CRC8 = ~b_CRC8;???????????? /* CRC sent complimented */ ??????????? if(b_crc == b_CRC8) ????????????????? return(0); ??????????? else ????????????????? return(1); ??????????? } ????? else ??????????? CRC8char(b_udata); ????? } return(2);? /* missing ETX */ } ? void CRC8char(byte d) { b_CRC8 = crc8revtab[b_CRC8 ^ d]; /*crc must be complimented elsewhere*/ } ? ? ? A lookup table is used to calculate the CRC for speed. ? ??????????????????????? 0x00, 0xB1, 0xD3, 0x62, 0x17, 0xA6, 0xC4, 0x75, ??????????????????????? 0x2E, 0x9F, 0xFD, 0x4C, 0x39, 0x88, 0xEA, 0x5B, ?????????????????? ?????0x5C, 0xED, 0x8F, 0x3E, 0x4B, 0xFA, 0x98, 0x29, ??????????????????????? 0x72, 0xC3, 0xA1, 0x10, 0x65, 0xD4, 0xB6, 0x07, ??????????????????????? 0xB8, 0x09, 0x6B, 0xDA, 0xAF, 0x1E, 0x7C, 0xCD, ??????????????????????? 0x96, 0x27, 0x45, 0xF4, 0x81, 0x30, 0x52, 0xE3, ??????????????????????? 0xE4, 0x55, 0x37, 0x86, 0xF3, 0x42, 0x20, 0x91, ??????????????????????? 0xCA, 0x7B, 0x19, 0xA8, 0xDD, 0x6C, 0x0E, 0xBF, ??????????????????????? 0xC1, 0x70, 0x12, 0xA3, 0xD6, 0x67, 0x05, 0xB4, ??????????????????????? 0xEF, 0x5E, 0x3C, 0x8D, 0xF8, 0x49, 0x2B, 0x9A, ??????????????????????? 0x9D, 0x2C, 0x4E, 0xFF, 0x8A, 0x3B, 0x59, 0xE8, ??????????????????????? 0xB3, 0x02, 0x60, 0xD1, 0xA4, 0x15, 0x77, 0xC6, ??????????????????????? 0x79, 0xC8, 0xAA, 0x1B, 0x6E, 0xDF, 0xBD, 0x0C, ??????????????????????? 0x57, 0xE6, 0x84, 0x35, 0x40, 0xF1, 0x93, 0x22, ??????????????????????? 0x25, 0x94, 0xF6, 0x47, 0x32, 0x83, 0xE1, 0x50, ??????????????????????? 0x0B, 0xBA, 0xD8, 0x69, 0x1C, 0xAD, 0xCF, 0x7E, ??????????????????????? 0x33, 0x82, 0xE0, 0x51, 0x24, 0x95, 0xF7, 0x46, ??????????????????????? 0x1D, 0xAC, 0xCE, 0x7F, 0x0A, 0xBB, 0xD9, 0x68, ??????????????????????? 0x6F, 0xDE, 0xBC, 0x0D, 0x78, 0xC9, 0xAB, 0x1A, ??????????????????????? 0x41, 0xF0, 0x92, 0x23, 0x56, 0xE7, 0x85, 0x34, ??????????????????????? 0x8B, 0x3A, 0x58, 0xE9, 0x9C, 0x2D, 0x4F, 0xFE, ??????????????????????? 0xA5, 0x14, 0x76, 0xC7, 0xB2, 0x03, 0x61, 0xD0, ??????????????????????? 0xD7, 0x66, 0x04, 0xB5, 0xC0, 0x71, 0x13, 0xA2, ??????????????????????? 0xF9, 0x48, 0x2A, 0x9B, 0xEE, 0x5F, 0x3D, 0x8C, ??????????????????????? 0xF2, 0x43, 0x21, 0x90, 0xE5, 0x54, 0x36, 0x87, ??????????????????????? 0xDC, 0x6D, 0x0F, 0xBE, 0xCB, 0x7A, 0x18, 0xA9, ??????????????????????? 0xAE, 0x1F, 0x7D, 0xCC, 0xB9, 0x08, 0x6A, 0xDB, ??????????????????????? 0x80, 0x31, 0x53, 0xE2, 0x97, 0x26, 0x44, 0xF5, ??????????????????????? 0x4A, 0xFB, 0x99, 0x28, 0x5D, 0xEC, 0x8E, 0x3F, ??????????????????????? 0x64, 0xD5, 0xB7, 0x06, 0x73, 0xC2, 0xA0, 0x11, ??????????????????????? 0x16, 0xA7, 0xC5, 0x74, 0x01, 0xB0, 0xD2, 0x63, ??????????????????????? 0x38, 0x89, 0xEB, 0x5A, 0x2F, 0x9E, 0xFC, 0x4D }; ? |
Re: Stream Deck and Node Red
Hey David?
I have been following your stream on integrating Stream deck into Node Red. I have managed to get my Icom IC-7300 to display the frequency on the display dashboard using the CIV get freq that works fine. So now i have that working i was experimenting getting to display it on a button like yours. I was looking at your Youtube video and one of the stream deck buttons second row 4th from the left displays the freq. Im assuming that is a flex radio thing? I couldn't see in the flow chart how you brought in the freq display to the stream deck. Do you have any screen grabs or tips how I can replicate that now that im getting the freq to display on the web UI. Im hoping i can share my progress on making some IC-7300 available to the group Cheers Glenn VK2HTV?? |
Basics of Node Red Presentation - Arizona Outlaws Contest Club
I gave a presentation to the Arizona Outlaws Contest Club last night, mainly about my contesting dashboard, but they wanted to know more about the basics of Node Red.? I put together about 3 presentations for them and this is what came out of it. I spent a good 45 mins brain dump of Node Red and basic configurations on how to get started.
At the end we talk about the contest dashboard, but I think the first part will help some of the new people get started with Node Red if you haven't already. Kyle AA0Z |
Re: TGXL and Streamdeck
开云体育Hi JoeI do not have a 1x3 TG to test with.? Email me direct and we can try to work on it remotely.? I will do some research on my end in the meantime.? 73 Dave wo2x Sent from my waxed string and tin cans.? On Jun 10, 2022, at 10:17 AM, Joe W. <jwussler@...> wrote:
|