https://github.com/rynr/netio
Java Library to control Netio 230B from Koukaam
https://github.com/rynr/netio
iot java netio powerswitch
Last synced: 5 months ago
JSON representation
Java Library to control Netio 230B from Koukaam
- Host: GitHub
- URL: https://github.com/rynr/netio
- Owner: rynr
- License: other
- Archived: true
- Created: 2014-05-15T10:57:11.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2024-01-25T04:49:09.000Z (over 2 years ago)
- Last Synced: 2025-07-19T16:52:53.761Z (11 months ago)
- Topics: iot, java, netio, powerswitch
- Language: Java
- Size: 138 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
netio
=====
NETIO is a series of smart sockets and PDU (Power Distribution Unit) by
[Koukaam](http://www.koukaam.se/kkm/index.php).
This library gives you a Java-Interface to control them.
Include
-------
To use this library (in the current state), you have to build it yourself. Once
the next release is done, you can use it via maven, gradle, ….
The next release includes support for java 9 modules. You require
`org.rjung.util.netio`.
Current State
-------------
This library is in a non stable state at the moment. The library on maven
central can be used and uses a socket connection. The current main branch has
changed to use a `http` connection, but it's not done yet.
Unfortunately I don't own a device any more, so I cannot test this is working.
I'd love to get a response that this is working, so I can make a new release.
Example
-------
```java
NetworkSwitch networkSwitch = NetworkSwitch.builder("switch.host.name", 2345)
.username("admin").password("secret").build();
networkSwitch.set(1, Switch.ON); // Switch unit 1 on
networkSwitch.set(2, Switch.OFF); // Switch unit 2 off
networkSwitch.set(3, Switch.INTERRUPT); // Send interrupt to unit 3
```
Info
----
- [Info](https://rynr.github.io/netio/)
- [Github](https://github.com/rynr/netio)
- [Bugs](https://github.com/rynr/netio/issues)
- [](https://gitter.im/rynr/netio)
- [](https://travis-ci.org/rynr/netio)