tschroedter / idasen-desk

Controlling the Ikea Idasen desk using Windows 10/11, C# and BluetoothLE
MIT License
29 stars 5 forks source link

Split the application into a windows service and UI #9

Closed 7orlum closed 2 years ago

7orlum commented 2 years ago

Would it be possible to split the application into a windows service and UI? I see that the windows service will support custom commands that will allow us to use automation programs, remote controls and keyboards to control the height of the desk

tschroedter commented 2 years ago

Yes, on the develop branch I've got a project which hides the desk control behind a REST API. At the moment it's a console app which can be easily converted into a Windows Service using the NuGet package TopShelf. Let me know if the REST API is 'good' enough and I will create a branch or fork with only the REST API as a service.

7orlum commented 2 years ago

REST API is a good option, thank you, Tom

tschroedter commented 2 years ago

Hi, I created another repository for the REST API but haven't had time to do anything yet.

https://github.com/tschroedter/idasen-desk-rest-api

tschroedter commented 2 years ago

I pushed the first working version to the repository. Have a look and let me know what you think.

tschroedter commented 2 years ago

The REST API is working idasen-desk-rest-api as a console app or Windows Service.

Besides that I pulled out all the Idasen/Bluetooth code into it's own repo: idasen-desk-core