Skip to content
/ nupnp Public

🤖 Discovery broker for IoT devices.

License

Notifications You must be signed in to change notification settings

yene/nupnp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 nupnp

Discovery broker for IoT devices. 🤖

screen

API

Register device with:

curl -H "Content-Type: application/json" -X POST -d '{"name":"Testdevice","address":"192.168.100.151"}' http://localhost:8180/api/register

Optional parameters:

  • port

List device with:

http://localhost:8180/api/devices

Inspiration

After about 1 minute open a web browser and point to find.z-wave.me. Below the login screen you will see the IP address of your RaZberry system. Click on the IP address link to open the configuration dialog.

Questions

  • Should it filter IP addresses -> just prevent simple loopback error
  • Should port be inside address or separate -> separate makes scripting easier
  • Should the user be able to provide full fledged address?

TODO

  • Proxy should be a flag

Cross compile

env GOOS=linux GOARCH=amd64 go build

Security

Never allow another IP address to access the data. Remove the entries after 24h. If you use a proxy prevent external access to the API server.

Caddy Proxy configuration

proxy /api/register localhost:8180 {
        proxy_header X-Forwarded-Proto {scheme}
        proxy_header X-Forwarded-For {host}
        proxy_header X-Real-IP {remote}
        proxy_header Host {host}
}

License

MIT

About

🤖 Discovery broker for IoT devices.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published