
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
heishamon-rules-minify
Advanced tools
A Python CLI to minify Heishamon rules
HeishaMon is a project to read out a Panasonic air-water heat pump using an ESP8266 board. The HeishaMon firmware also supports the use of rules, to control the heatpump from within the HeishaMon itself. Since the ruleset must be stored within HeishaMon, its size must be limited. Therefore, it is best to use short function and variable names in order to maximize the number of rules that can be stored. Moreover, the rules library does not support comments in a ruleset, making it hard to read and maintain a ruleset, but also making it hard to share the ruleset with other.
This project aims to overcome these issues by making it possible write a ruleset with comments and descriptive function and variables names, and then minifying it. This way it is still possible to maximize the number of rules on the HeishaMon.
Note: The minifier should work for both the rule library used in version 3.2.3 and this updated rule libaray version. In the rule library from version 3.2.3, the elseif statement cannot be used
python3 -m pip install heishamon_rules_minify
Start by creating a ruleset that adheres to the HeishaMon rules syntax, but can use the following extras:
--
or block comments between --[[
and ]]
.#WaterTemperature
will become #WT
, #allowDHW
will become #ADHW
.When the ruleset is finished, minify it using the following command:
heishamon-rules-minify [input_file] [output_file]
This will shorten all custom function and variable names and remove all unneeded spaces and newlines.
There are a couple of extra options to pass with the minifier:
--print
or -p
to also print the output on the command line.--comments_only
or -c
to only remove the comments from the input file but do no further minifying.git checkout -b feature/fooBar
)git commit -am 'Add some fooBar'
)git push origin feature/fooBar
)FAQs
A Python CLI to minify Heishamon rules
We found that heishamon-rules-minify demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.