{"id":18994732,"url":"https://github.com/qdraw/tabletop","last_synced_at":"2025-10-31T13:03:32.690Z","repository":{"id":28960144,"uuid":"116150596","full_name":"qdraw/tabletop","owner":"qdraw","description":"Event tracking application using .NET Core 3.1, SignalR and Entity Framework Core","archived":false,"fork":false,"pushed_at":"2023-07-12T02:35:00.000Z","size":29110,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-31T13:03:14.900Z","etag":null,"topics":["arduino","c-sharp","dotnet-standard","entity-framework-core","net-mvc","signalr","signalr-core","sql-server"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qdraw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-03T15:11:52.000Z","updated_at":"2021-12-25T17:20:51.000Z","dependencies_parsed_at":"2024-11-08T17:41:50.662Z","dependency_job_id":null,"html_url":"https://github.com/qdraw/tabletop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qdraw/tabletop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdraw%2Ftabletop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdraw%2Ftabletop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdraw%2Ftabletop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdraw%2Ftabletop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qdraw","download_url":"https://codeload.github.com/qdraw/tabletop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qdraw%2Ftabletop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281992161,"owners_count":26595645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-31T02:00:07.401Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","c-sharp","dotnet-standard","entity-framework-core","net-mvc","signalr","signalr-core","sql-server"],"created_at":"2024-11-08T17:26:51.134Z","updated_at":"2025-10-31T13:03:32.668Z","avatar_url":"https://github.com/qdraw.png","language":"C#","funding_links":["https://www.paypal.me/qdrawmedia"],"categories":[],"sub_categories":[],"readme":"# Tabletop\n\nTabletop is a cloud-based, mobile-ready, event tracking system. We use it to see if the table footbal is free.\n\n## Builds\n[![Travis](https://img.shields.io/travis/qdraw/tabletop.svg)](https://travis-ci.org/qdraw/tabletop/) [![Build status](https://ci.appveyor.com/api/projects/status/fw7gojff1220kj0r/branch/master?svg=true)](https://ci.appveyor.com/project/qdraw/tabletop/branch/master) [![codecov](https://codecov.io/gh/qdraw/tabletop/branch/master/graph/badge.svg)](https://codecov.io/gh/qdraw/tabletop) [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/qdrawmedia)\n\n### Features\n  - Display if room __is free__ or _in use_\n  - History views per day\n  - Display Latest Activity\n  - Realtime Magic\n\n### Technical summary\n  - .NET Core 3.1\n  - ASP.NET MVC\n  - Runs on Windows, Linux and Mac OS X\n  - Send events from a Arduino with a PIR-Sensor\n  - [D3.v4](https://d3js.org/) Javascript Datavisualisation\n\nAnd of course Tabletop itself is open source with a [public repository ](https://github.com/qdraw/tabletop) on GitHub.\n\n### Installation\n\nTabletop requires [.NET Core](https://www.microsoft.com/net/core) v3.1 to run.\n\nInstall the dependencies\n```sh\n$ cd tabletop/tabletop\n$ dotnet restore\n```\n  - **Linux and Mac OS X**, Update SQL-Server connection string in `appsettings.Production.json`\n  - **Windows:** You can use the localdb for testing\n\n```json\n{\n    \"ConnectionStrings\": {\n        \"DefaultConnection\": \"Data Source=data.db\",\n        \"DatabaseType\": \"sqlite\"\n    }\n}\n```\nRun Database migration\n```sh\n$ dotnet ef database update\n```\n\nAdd a test user using the SQL command\n```sql\nINSERT INTO [dbo].[ChannelUser] (NameId,Name,NameUrlSafe,IsAccessible,IsVisible,Bearer)\nVALUES ('cc9299c5-03a6-409a-be35-30981acfa7ac','Test Channel','test','true','true','secret')\n```\n**And finaly run the app**\n\n```sh\n$ dotnet run\n```\n\nAdd some test data\n```sh\ncurl -X POST -F 'status=1' -F 'name=test' -H 'Authorization: Bearer secret'\n'http://localhost:5000/api/update'\n```\n#### Arduino client\n\nI use a [Arduino Ethernet shield](https://www.arduino.cc/en/Reference/Ethernet) with the [Ethernet2](https://github.com/adafruit/Ethernet2) library and a PIR-sensor. To Setup additional libraries check: https://www.arduino.cc/en/Guide/Libraries.\n\nThe Arduino code is open source in the [tabletop_client](tabletop_client) folder\n\nAdjust the bearer and server in `tabletop/tabletop_client/tabletop_client.ino`\n```cpp\nchar clientName[] = \"test\";\nchar Bearer[] = \"secret\";\nchar server[] = \"qdraw.nl\"; // without http://\n// the url will be: http://qdraw.nl/tabletop/api/update\n```\n\nTo setup the PIR-sensor please check this scheme:\n![Tabletop Scheme](tabletop_client/tabletop_scheme.gif \"Tabletop Scheme\")\n\n\n#### For production environments...\n\nYou can use the environment variable `TABLETOP_SQL`. If there is no variable the app will check `appsettings.json` or `appsettings.Production.json`.\n\nPersonaly I run this application on a linux-arm server and use PM2 to manage the process. [PM2](http://pm2.keymetrics.io/) is a production process manager for Node.js but you can be used to manage binary executables.\n\n##### Building for linux-arm\nCreate a new build for linux-arm\n```sh\n$ cd tabletop/tabletop\n$ ./publish-linux-arm.sh\n```\n##### Creating a new PM2 instance\nThis bash script ask for a SQL Server connectionstring\n```sh\n$ ./new-pm2.sh\nInsert here the production SQL string\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqdraw%2Ftabletop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqdraw%2Ftabletop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqdraw%2Ftabletop/lists"}