#smart-home #platform #client #server #devices #noshp #nik

NOSHP-Client

The Client library for Nik's Open-source Smart Home Platform

17 releases

0.3.3 Mar 22, 2024
0.3.2 Mar 19, 2024
0.2.2 Mar 14, 2024
0.2.0 Feb 27, 2024
0.1.3 Jan 26, 2024

#13 in #smart-home

Download history 157/week @ 2024-02-12 130/week @ 2024-02-26 95/week @ 2024-03-04 209/week @ 2024-03-11 470/week @ 2024-03-18 115/week @ 2024-04-01

965 downloads per month

MIT license

27KB
530 lines

Client Library for Nik's Open-source Smart Home Platform

This Rust library is meant as a resource to easily write code to interact with the NOSHP server. This is mainly meant for Smart-Home devices.

Building

Add the library to your project using the crates.io link above. Then create your device, or view the documentation for an example device.

Once you're done, run the command:

cargo build -r

Then install any dependencies you are missing.

Running

To run the client library you will need to set the IP of your server. How you get this is up to you. I personally recommend setting a static IP for your server, that way you won't need to change this everytime this changes. However if you do not want to do this, the server IP is printed at server startup.

Remember, the server IP needs to be prefixed with "HTTP://", otherwise it will not work

Notes

  • At the moment you will need to have the protobuf compiler installed (instructions can be found here).

Dependencies

~14–29MB
~418K SLoC