Skip to content

Configuration

John M. Wargo edited this page May 5, 2020 · 15 revisions

In earlier versions of this project, all configuration settings for the project were defined as constants at the top of the remind.py file. What this meant to users was that if I released an update to the prject source, any setting changes you made would be overwritten by the software update. That's not nice, is it?

For this version, I extracted all of the user-settable settings from the remind.py file (and added a few new ones) to the project's config.json file. That file doesn't exist right now because to include it in the project would simply create the same overwriting issue described in the previous paragraph. Instead, I included a files called config.rename that contains all the settings; to use it, you must use that file as a starting point for your settings for this project. You could rename the file to the required file name, but then you'd lose the original settings to use as a reference later. Instead, lets make a copy of the source file, then modify the copy. There's two ways to do this, you can use the graphical File Manger or commands typed in a terminal window.

To use the File Manager Open the Raspbian File Manager application (it's the one that looks like a folder) in the menu bar at the top-left corner of the screen. Navigate to the pi-remind-hd-notify folder then right click on the config.rename file and select Copy. Next, right-click on an open space in the same folder and select Paste. The File Manager application will warn you that there is already a file with the same name in this location, in the dialog that appears (shown below), simply rename the file to config.json and click the Rename button to complete the copy.

Raspbian File Manager Confirm File Replacing Dialog

The other option is to open a terminal window, navigate to the pi-remind-hd-notify folder, and execute the following command:

cp config.rename config.json

With either approach, validate that you now have a file in the pi-remind-hd-notify folder called config.json. When you open the file, it will look something like this:

{
  "access_token": "YOUR_PARTICLE_ACCESS_TOKEN",
  "busy_only": false,
  "device_id": "YOUR_PARTICLE_DEVICE_ID",
  "debug_mode": false,
  "display_meeting_summary": true,
  "reminder_only": false,
  "use_reboot_counter": true,
  "reboot_counter_limit": 10,
  "use_remote_notify": true,
  "use_working_hours": true,
  "work_start": "8:00",
  "work_end": "17:30"
}

You can leave the file as is if you want, I tried to preload it with the most common options. The remaining sections describe each of the configuration options in detail; the following list provides links to each section:

Calendar Settings

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

busy_only

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

display_meeting_summary

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

reminder_only

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

Remote Notify Settings

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

{
  "use_remote_notify": true,
  "access_token": "",
   "device_id": "",
}

use_remote_notify

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

access_token

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

device_id

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

use_working_hours

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

work_start

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

work_end

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

General Settings

use_reboot_counter

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

Diagnostics & Troubleshooting

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

debug_mode

debug is cool because it outputs everything the app is doing Since the Google Calendar uses it as well, you get output from that library as well

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

`use_reboot_counter

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.

reboot_counter_limit

Chislic beef turkey, biltong ham venison brisket beef ribs picanha alcatra leberkas shank jerky. Ribeye tongue pork bacon buffalo salami biltong doner pancetta, beef ribs pork chop turkey chuck t-bone. T-bone kielbasa beef sausage fatback. Spare ribs porchetta swine jowl alcatra turkey. Beef ribs tenderloin landjaeger meatloaf, ham beef ribeye sausage bresaola spare ribs buffalo alcatra chislic turkey.