Keyboard Shortcuts
Likes
- Nodered-Hamradio
- Messages
Search
Node-Red Ui Header - Add Raspi Temp
Hello,
I am trying to add the temp value for the Pi to the ui Header.? I found a flow 'node-red-contrib-ui-clock' that uses a function to add the clock to the header? The function is: <script id="titleScript" type="text/javascript">
?
$(function() {
? ? if($('.md-toolbar-tools').length != 0){
? ? ? ? loadClock();
? ? }else setTimeout(loadClock, 500)
});
?
function loadClock(){
? ? $('#clock').remove();
? ? var toolbar = $('.md-toolbar-tools');
? ??
? ? var div = $('<div/>');
? ? var p = $('<p/ id="clock">');
? ??
? ? div.append(p);
? ? div[0].style.margin = '5px 5px 5px auto';
? ? toolbar.append(div);
?
? ? function displayTitle(lh) {
? ? ? ? p.text(lh);?
? ? }
? ??
? ? function upTime() {
? ? ? ? var d = new Date();
? ? ? ? p.text(d.toLocaleString());
? ? }
?
? ? if(document.clockInterval){?
? ? ? ? ? ? clearInterval(document.clockInterval);
? ? ? ? ? ? document.clockInterval = null;
? ? }
? ? ? ??
? ? document.clockInterval = setInterval(upTime,1000);
}
?
</script>
I was hoping to modify it to use the following flow. I can not get it to render in the header at all.? ?When I run debug I do see the temp? output: Not sure if there is an easier way.? ?I modified?the function above to swap out the clock functions for the temp functions but this on is kicking my butt. Any thoughts?on this are appreciated.?? |
Re: File /wo2x flows/KPA500.json uploaded
#file-notice
Hi Dave, Sounds good.? Attached is?my first take at a KAT500 flow. It is working as is, just not my final version. Gary Gary Young Systems Engineer / Project Manager Telecommunications Engineering Associates San Carlos, CA? On Sun, Oct 4, 2020 at 9:14 PM David De Coons wo2x <RocketNJ@...> wrote:
|
Re: File /wo2x flows/KPA500.json uploaded
#file-notice
¿ªÔÆÌåÓýHi Gary,I¡¯ll replace the KPA500 flow in my file directory with your copy and include credit for your enhancements in the file description. This way we know it is a working version. 73 Dave wo2x On Oct 4, 2020, at 8:59 PM, K6HN Gary <gary@...> wrote:
|
File //K6HN FRS Flows/KPA500.flow updated
#file-notice
[email protected] Notification
The following files have been updated in the Files area of the [email protected] group. By: K6HN Gary Description: |
Re: File /wo2x flows/KPA500.json uploaded
#file-notice
¿ªÔÆÌåÓýGreat! I¡¯m glad you have it working and thanks for sharing your findings. ? 73 Dave wo2x ? ? From: [email protected] <[email protected]> On Behalf Of K6HN Gary ? I just tried the Request Node and had the same results. I am now just prepending a ; to each command and things are working great. My KPA500 flow is in the files section under the "K6HN Flows" directory. |
Re: File /wo2x flows/KPA500.json uploaded
#file-notice
I just tried the Request Node and had the same results. I am now just prepending a ; to each command and things are working great. My KPA500 flow is in the files section under the "K6HN Flows" directory.
Thanks to all for the original flow and the assistance! Gary K6HN |
Re: Node Red and Yaesu Quadra
That¡¯s what I thought.?
toggle quoted message
Show quoted text
Santiago? ____________ 73 de HI8SMX? hi8smx.online HI8SMX on Twitter, Instagram and YouTube On Sunday, October 4, 2020, 8:47 PM, David De Coons wo2x <RocketNJ@...> wrote:
--
______________ 73 de Santiago HI8SMX - KB8SMX web:? YouTube: HI8SMX? Twitter: @hi8smx Instagram: hi8smx |
Re: Node Red and Yaesu Quadra
¿ªÔÆÌåÓýHi Santiago, ? There is no CAT interface to the Quadra so there is no way to get data out to Node Red. ? 73 Dave wo2x ? ? From: [email protected] <[email protected]> On Behalf Of Santiago Mejia via groups.io ? Let me drop this challenge to the masters of this group. I¡¯m using a Yaesu Quadra with my 6300. As the Yaesu is old enough not to have any computer controlled feature or anything the only thing it uses is a band data cable (with tx and ptt) connected to the Flex v¨ªa USB to follow frequency. Who¡¯s up to the task? |
Node Red and Yaesu Quadra
Let me drop this challenge to the masters of this group. I¡¯m using a Yaesu Quadra with my 6300. As the Yaesu is old enough not to have any computer controlled feature or anything the only thing it uses is a band data cable (with tx and ptt) connected to the Flex v¨ªa USB to follow frequency. Who¡¯s up to the task? |
Re: File /wo2x flows/KPA500.json uploaded
#file-notice
¿ªÔÆÌåÓýWhen we were making a flow for the Elecraft W2 wattmeter we needed to use the serial request node. Just double click the serial node and make sure it matches your USB to serial adapter and baud rate. ? 73 Dave wo2x ? ? From: [email protected] <[email protected]> On Behalf Of K6HN Gary ? Thanks Dave, I'll try that later tonight. It is something with the serial port so this might work. |
Re: File /wo2x flows/KPA500.json uploaded
#file-notice
Thanks Dave, I'll try that later tonight. It is something with the serial port so this might work.
|
Re: File /wo2x flows/KPA500.json uploaded
#file-notice
I think you nailed it Alan. It doesn't matter what is sent first, it just needs something to get going.
|
Re: File /wo2x flows/KPA500.json uploaded
#file-notice
¿ªÔÆÌåÓýHi Gary, ? I sent you a direct email with another version to try. I changed the serial in & out nodes to a serial request node. ? 73 Dave wo2x ? ? From: [email protected] <[email protected]> On Behalf Of K6HN Gary ? I have this partially working. I can query the KPA500 and it responds properly. Unfortunately the amp does not accept any commands sent (vs a query that does work) such as ^OS1; and just ignores them as if they were never sent. |
Re: File /wo2x flows/KPA500.json uploaded
#file-notice
Perhaps it did not "see" the first command sent to the amp.? My SteppIR has that problem. If it is a failure to respond?to some commands, consider using the "resend" node. Alan On Sun, Oct 4, 2020 at 5:31 PM K6HN Gary <gary@...> wrote: It appears the command needs to prefaced with a query ^OS;^OS1; which works fine to put the amp in Operate Mode. Weird. |
Re: File /wo2x flows/KPA500.json uploaded
#file-notice
It appears the command needs to prefaced with a query ^OS;^OS1; which works fine to put the amp in Operate Mode. Weird.
|
Re: File /wo2x flows/KPA500.json uploaded
#file-notice
I have this partially working. I can query the KPA500 and it responds properly. Unfortunately the amp does not accept any commands sent (vs a query that does work) such as ^OS1; and just ignores them as if they were never sent.
Any ideas? |