Open jesus2099 opened 1 year ago
Hello, I'm away this week so I won't be able to take a look right now, but in the meantime, you can check https://github.com/jdel/gosspks which comes with an automatic models refresh but it's currently also broken because of changes on synology's side.
I'm working on a big update and refactoring for gosspks
that will include the models fix and a web UI. These last changes are not published on github because the refactoring broke many things.
Nonetheless, if you need a fix now, you can use this fresh model file I generated with the work in progress version of gosspks
:
This format will not work with sspks
but you could manually adapt it.
Just remembered I pushed the go-syno
models update a while back.
You can generate the models file with
main.go
package main
import (
"fmt"
"log"
"gopkg.in/yaml.v2"
"jdel.org/go-syno"
)
func main() {
m, err := syno.GetModels(true)
if err != nil {
log.Fatalln("Exiting due to fatal error", err)
}
yamlModels, err := yaml.Marshal(m)
if err != nil {
log.Fatalln("Exiting due to fatal error", err)
}
fmt.Println(string(yamlModels))
}
Then go run main.go
There are some new models that I cannot find in https://github.com/jdel/sspks/blob/master/conf/synology_models.yaml
And possibly some others.