QuantumEntangledAndy / neolink

An RTSP bridge to Reolink IP cameras
GNU Affero General Public License v3.0
322 stars 44 forks source link

Improve MQTT documentation, example config #13

Closed kevin-david closed 1 year ago

kevin-david commented 1 year ago

Also print an error message when the configuration isn't present but the mqtt subcommand is used. Without this, the program just exits without any messages.

Finally, add a launch.json for VS code. I use this locally, and it would be handy with codespaces, but happy to stash it somehow instead

kevin-david commented 1 year ago

@QuantumEntangledAndy what's the state of the MQTT support right now? I've seen some weird behavior so far ...

happy to dig in more for each of those, but wasn't sure if they were known

QuantumEntangledAndy commented 1 year ago

I am not 100% sure most of this I wrote years ago. I've only recently got back into programming neolink stuff. if you want to tackle it please do. It could probably use a rewrite to something more stable.

Also could you remove the .vscode/launch.json since it not exactly related to the code and other devs may want to have their own launch configs

kevin-david commented 1 year ago

@QuantumEntangledAndy removed - BTW, it looks like the formatter builds might have been broken since ubuntu-latest is 22.04 now instead of 20.04

QuantumEntangledAndy commented 1 year ago

Yeah I think the style checks needs some work, I'll add it to my list of things to check. I have the clippy issues fixed in my latest unpublished work. My current to do list:

So might take awhile to get to all that.

QuantumEntangledAndy commented 1 year ago

How is the flood light stuff? If you add the xml structures to the xml.rs it should be able to seralise and deserialise them without any other changes. Then you can send the messages like we do in logout.rs by adding a new function to camera and sending the packets.

kevin-david commented 1 year ago

I was able to get it sort of working... draft PR here: https://github.com/QuantumEntangledAndy/neolink/pull/14. I may take another look at this today.

Very new to Rust so having to learn the syntax as I go 😄

kevin-david commented 1 year ago

BTW I created a PR to just fix the style checks by rolling back to 20.04 here: https://github.com/QuantumEntangledAndy/neolink/pull/15.

Along with #16 to get upstream changes merged

Figured we can move back to latest whenever you're able to pick up that change again!