diff --git a/MeetingRooms-sample-data.json b/MeetingRooms-sample-data.json new file mode 100644 index 0000000..de02405 --- /dev/null +++ b/MeetingRooms-sample-data.json @@ -0,0 +1,50 @@ +[ + { + "not_in_use":"FALSE", + "room_name":"Orchid Room", + "group_name":"Engineering Team", + "type":"Leadership Retreat", + "days":"MON, TUE, WED", + "note":"🎨 Arts and Crafts Workshop", + "header":"CBC Winchester", + "tagline":"Fields Conference 1", + "info":"Cedarmore Camp & Conference Center", + "TRMNL_ID":"15236G" + }, + { + "not_in_use":"TRUE", + "room_name":"Crossings Ministries", + "group_name":"Fields Conference 2", + "type":"Leadership Retreat", + "days":"FRI, SAT, SUN", + "note":"Check out at 9am 🕐", + "header":"SBC Greenville", + "tagline":"Fields Conference 2", + "info":"Cedarmore Camp & Conference Center", + "TRMNL_ID":"3SLGPG" + }, + { + "not_in_use":"FALSE", + "room_name":"Gym", + "group_name":"Youth Group", + "type":"Kids Camp", + "days":"MON, WED, TUE, THU, FRI", + "note":"⚽Soccer & 🎯 Volley Ball", + "header":"The Oasis", + "tagline":"Crossings Leadership Private Meeting Space", + "info":"Cedarmore Camp & Conference Center", + "TRMNL_ID":"75484B" + }, + { + "not_in_use":"FALSE", + "room_name":"Welcome Center", + "group_name":"TEST", + "type":"TEST", + "days":"MON", + "note":"TEST", + "header":"Cedarmore", + "tagline":"Test Display", + "info":"Welcome to Cedarmore!", + "TRMNL_ID":"3BM5TH" + } +] \ No newline at end of file diff --git a/README.md b/README.md index 7b395d9..6b0b173 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,6 @@ This plug-in is designed for use with the TRMNL platform ([https://usetrmnl.com] **Functionality:** The plug-in functions by linking to a Google Sheet. The sheet contains the room data that will be displayed on the TRMNL device. The link is established through a matching Spreadsheet ID, ensuring that the correct data is displayed on the intended device. + +**New Feature - Not In Use Mode:** +Each display can now be marked as "Not In Use" by setting the `not_in_use` field to "TRUE" in the spreadsheet. When enabled, the display will show the Cedarmore logo instead of room data, allowing for easy identification of unavailable displays. Setting `not_in_use` to "FALSE" will show the normal room information. diff --git a/full.liquid b/full.liquid index c8ded28..03036dd 100644 --- a/full.liquid +++ b/full.liquid @@ -1,7 +1,7 @@ {% assign json_data = data | where: "TRMNL_ID", trmnl.plugin_settings.custom_fields_values.device_id | first %} {% assign my_id = trmnl.plugin_settings.custom_fields_values.device_id %} -{% if json_data %} +{% if json_data and json_data.not_in_use == "FALSE" %}
@@ -47,7 +47,7 @@ filter: grayscale(100%) brightness(0%) ; float: right;" src="https://gocrossings.org/wp-content/uploads/2020/02/logo-white_1.png"/>

DeviceID: {{ my_id }} Updated at {{ "now" | date: "%s" | plus: trmnl.user.utc_offset | date: "%H:%M" }}

-{% else %} +{% else %}
diff --git a/settings.yml b/settings.yml index 9f4a863..caff3a4 100644 --- a/settings.yml +++ b/settings.yml @@ -4,7 +4,7 @@ no_screen_padding: 'no' dark_mode: 'no' static_data: "[{\"room_name\":\"Orchid Room\",\"group_name\":\"Engineering Team\",\"type\":\"Leadership Retreat\",\"days\":\"MON, TUE, WED\",\"note\":\"\U0001F3A8 Arts and Crafts Workshop\",\"TRMNL_ID\":\"15236G\"},{\"room_name\":\"Crossings Ministries\",\"group_name\":\"Fields Conference 2\",\"type\":\"Leadership Retreat\",\"days\":\"FRI, SAT, SUN\",\"note\":\"Check out at 9am \U0001F558\",\"TRMNL_ID\":\"3SLGPG\"},{\"room_name\":\"Gym\",\"group_name\":\"Youth Group\",\"type\":\"Kids Camp\",\"days\":\"MON, WED, TUE, THU, FRI\",\"note\":\"⚽Soccer & \U0001F3D0 Volley Ball\",\"TRMNL_ID\":\"75484B\"},{\"room_name\":\"Welcome Center\",\"group_name\":\"TEST\",\"type\":\"TEST\",\"days\":\"MON\",\"note\":\"TEST\",\"TRMNL_ID\":\"3BM5TH\"}]" polling_verb: get -polling_url: https://opensheet.elk.sh/1i9emEf-_b0pkZxP4G3_IivfqozJAb2k8TnK9HfRBDAQ/MeetingRooms!A1:F15 +polling_url: https://opensheet.elk.sh/1i9emEf-_b0pkZxP4G3_IivfqozJAb2k8TnK9HfRBDAQ/MeetingRooms!A1:G15 polling_headers: '' polling_body: '' id: 101230 @@ -14,5 +14,5 @@ custom_fields: name: Device ID (required) description: The id for the device shoudl match the TRMNL_ID from the spreadsheet default: '1234' -name: OAISIS Crossing Room Data +name: [DeviceID] Crossing Room Data refresh_interval: 360