LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: pan64
Forum: Programming 02-15-2024, 01:56 AM
Replies: 18
Views: 405
Posted By pan64
from the other hand the tool has a json output...

from the other hand the tool has a json output which can be easily processed with python (for example) and it has no any problem with floats and to execute additional commands (like gpio) too.
Forum: Programming 02-14-2024, 07:35 AM
Replies: 18
Views: 405
Posted By pan64
what you posted is not a working script....

what you posted is not a working script. Otherwise would be nice to use code tags (https://www.linuxquestions.org/questions/misc.php?do=bbcode#code).
I did not post complete solution, you need to...
Forum: Programming 02-14-2024, 06:22 AM
Replies: 18
Views: 405
Posted By pan64
I think you can specify the topic: ...

I think you can specify the topic:
mosquitto_sub -t solar_assistant/inverter_1/grid_voltage/state ...
Additionally you do not need to calculate that much:

...
val=$(awk '{($2>200)?a=1:a=0;print...
Showing results 1 to 3 of 3

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 02:30 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration