@thex said in Floorplan Dashboard:
How to save the config? Extra json file? Pimatic config file(plugin config)?
I’d prefer plugin configuration. May be you can use devices to configure the positionable divs. This way, you
couldd set the dash button without restarting pimatic.
How to communicate with pimatic? I would use websockets.
Yes, websockets is the best choice I think.
How to deliver the html? Additional express instance? Within instance of normal web front-end?
Via the pimatic HTTP/HTTPS endpoint. See pimatic-angular-material-frontend for example which can be used without conflicting with pimatic-mobile-frontend. May be you can even build upon pimatic-angular-material-frontend.
Which widgets should be implemented first? Switch, presence, temperature…
For the dashboard, I think presence, temperature should be among the first to implement.
Which JavaScript widget framework to use? Currently this is the biggest question for me…
angularJS or React
As said earlier, maybe you can base on pimatic-angular-material-frontend. However, pimatic-angular-material-frontend is based on angularJS version 1 as far I know. It is better to use angularJS version 2 these days.
https://www.npmjs.com/package/pimatic-angular-material-frontend
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law