question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--filter --exclfilter re.search - may need addition to documentation

See original GitHub issue

Hi!

I have been trying to use the --filter and --exclfilter options (which the documentation says uses re.search to include or exclude multiple terms but cannot seem to figure out how to do it. Maybe it is not possible as I see Python also has a re.findall.

Any advice on how this works would be appreciated! Frederick

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jblancecommented, Dec 16, 2022

added an example to usage.md

0reactions
frederickjhcommented, Dec 10, 2022

Thanks! That worked.

$ /usr/local/bin/mpp-solar -p /dev/mppsolar/direct/0 -P PI30MAX -b 2400 --getstatus --filter "pv|battery"                  4021ms  [Fri Dec  9 10:58:14 AM]
Command: QPIGS - General Status Parameters inquiry
------------------------------------------------------------
Parameter                     	Value           Unit
battery_voltage               	52.3           	V   
battery_charging_current      	0              	A   
battery_capacity              	81             	%   
pv1_input_current             	0.0            	A   
pv1_input_voltage             	0.0            	V   
battery_voltage_from_scc      	0.0            	V   
battery_discharge_current     	5              	A   
is_battery_voltage_to_steady_while_charging	0              	bool
battery_voltage_offset_for_fans_on	0              	10mV
pv1_charging_power

Might be a good idea to add that to the documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FILTER function - Microsoft Support
The FILTER function filters an array based on a Boolean (True/False) array. ... Notes: An array can be thought of as a row...
Read more >
Advanced Filters: Excel's Amazing Alternative To Regex
Learn powerful filtering options with Excel's advanced filters. They're regex on roids!
Read more >
Using search in filter controls | Create & View Content | Learning
Overview. This article shows you how to use the search functionality that is built into various filter controls. 2. Hierarchy filters.
Read more >
Feature Focus: Filtering Regular Expressions with Saved Search
This week, we're focusing in on filtering regular expressions with saved searches. You might be thinking to yourself, “What is a regular ...
Read more >
4.1 Creating Filters with Regular Expressions
Where available, include and exclude filters can be used independently or ... you are only searching for included strings, you can leave the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found