openhab-addons | repository contains the official set
kandi X-RAY | openhab-addons Summary
kandi X-RAY | openhab-addons Summary
This repository contains the official set of add-ons that are implemented on top of openHAB Core APIs. Add-ons that got accepted in here will be maintained (e.g. adapted to new core APIs) by the openHAB Add-on maintainers. To get started with binding development, follow our guidelines and tutorials over at If you are interested in openHAB Core development, we invite you to come by on
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Build the feedback message .
- Add custom channels based on the printer result
- Handles a device state change .
- Called when data arrives .
- Fires an XML start element .
- handle status updates
- Handles a command .
- Called when a parameter is found .
- Handle a module type command .
- Read Qbus message
openhab-addons Key Features
openhab-addons Examples and Code Snippets
Community Discussions
Trending Discussions on openhab-addons
QUESTION
Due to working through a framework, I only have control over the command string of Runtime.getRuntime().exec(string)
, so no array.
Problem is, I need to pass some escaped arguments and it just doesn't seem to work.
Take this for example: wget -qO- --post-data "2" -- http://192.168.3.33/data/changes.xml
. Works perfectly fine in the shell, but something is messed up since I don't get the proper response (most probably because the data isn't valid).
Edit: https://github.com/openhab/openhab-addons/blob/2.5.x/bundles/org.openhab.binding.exec/src/main/java/org/openhab/binding/exec/internal/handler/ExecHandler.java#L174 Link to code
...ANSWER
Answered 2019-Dec-31 at 23:54As I said, I have no control over this... I need to do it in one string :(
There is no direct solution given that constraint. Period.
It is a plain fact that exec(String)
does not understand any form of escaping or quoting. It splits the string into a command name and multiple arguments using whitespace characters as the argument separator. The behavior is hard-wired ... and documented.
The possible solutions are:
- Do the splitting yourself, and use
exec(String[])
. Get a shell to do the splitting; e.g.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install openhab-addons
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page