Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jdhitsolutions/mytickle
:date: A PowerShell and SQL Server-based reminder system. This project is DEPRECATED.
https://github.com/jdhitsolutions/mytickle
powershell powershell-module reminder sql-query sql-server
Last synced: 2 months ago
JSON representation
:date: A PowerShell and SQL Server-based reminder system. This project is DEPRECATED.
- Host: GitHub
- URL: https://github.com/jdhitsolutions/mytickle
- Owner: jdhitsolutions
- License: mit
- Created: 2017-07-20T19:04:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-17T15:36:33.000Z (2 months ago)
- Last Synced: 2024-10-19T22:53:07.582Z (2 months ago)
- Topics: powershell, powershell-module, reminder, sql-query, sql-server
- Language: PowerShell
- Homepage:
- Size: 312 KB
- Stars: 23
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MyTickle
![PSGallery Version](https://img.shields.io/powershellgallery/v/MyTickle.png?style=for-the-badge&logo=powershell&label=PowerShell%20Gallery) ![PSGallery Downloads](https://img.shields.io/powershellgallery/dt/MyTickle.png?style=for-the-badge&label=Downloads)
![database-server](assets/db.png)
> **This module is now considered deprecated and is no longer being maintained. The module's functionality has been replaced with the [PSReminderLite](https://github.com/jdhitsolutions/PSReminderLite) module. This module uses a SQLite database and is cross-platform. The module is available from the PowerShell Gallery. If you are using this module and would like to migrate to the new module, read the PSReminderLite README file for [instructions](https://github.com/jdhitsolutions/PSReminderLite?tab=readme-ov-file#truck-migrating-from-mytickle).**
## Introduction
This PowerShell module is designed as a tickle or reminder system. You can add and edit reminders of upcoming events. Use the module commands to display upcoming events. If you are interested, the core object of the module is built with a PowerShell class.
Install the latest version from the PowerShell Gallery.
```PowerShell
Install-Module MyTickle [-scope CurrentUser]
```## Setup
This module requires a SQL Server installation but, it should work cross-platform and in PowerShell 7. You can read the about help topic for more information.
```powershell
Help about_mytickle
```The module stores event information in a SQL Server database. Ideally, you will be running a version of SQL Server Express on your desktop. Use the `Initialize-TickleDatabase` command to create the database and table. It is possible to store the database on a remote server, but that has not been fully tested. The module includes T-SQL files you can give to a database administrator to run and create the database for you. The default database size is 100MB, which should be more than enough space.
Once you've been using the database, use `Get-TickleDBInformation` to view usage.
```shell
PS C:\> Get-TickleDBInformationName : TickleEventDB
Path : C:\Program Files\Microsoft SQL Server\MSSQL15.SQLEXPRESS\MSSQL\DATA\TickleEventDB.mdf
SizeMB : 100
UsedMB : 3.375
AvailableMB : 96.625
LastFullBackup : 10/20/2023 9:00:15 PM
```The module uses a set of global variables to define the SQL connection. The default installation assumes a local SQL Server Express instance.
```shell
PS C:\> Get-Variable Tickle*Name Value
---- -----
TickleDB TickleEventDB
TickleDefaultDays 7
TickleServerInstance .\SqlExpress
TickleTable EventData
```If you use a remote server or some other named instance, you will need to change the value of `$TickleServerInstance` after you import the module. This step is something you would most likely do in your PowerShell profile script.
```PowerShell
$TickleServerInstance = 'chi-sql01'
```The module should work cross-platform, even on Linux. However, in that situation, you will need to specify a username and password. It is also assumed that the SQL Server is configured to use both SQL and Windows authentication.
## Add Events
Adding a new event is very simple.
```PowerShell
Add-TickleEvent -event "company picnic" -date "7/1/2021 12:00PM"
```## Get Events
Once initialized and with entries added, you can view upcoming events.
![Get-TickleEvent](assets/get-tickleevent.png)
Starting with version 3.3.0, if you are running `Get-TickleEvent` in a console or VSCode host, events happening in less than 1 day will be displayed in red using ANSI escape sequences. Events in less than 2 days will be displayed in yellow.
As an alternative, the `myTickle` object has a format view definition file with an alternate view.
```PowerShell
Get-TickleEvent -days 60 | Format-Table -view date
```## Show Events
The module has a command to display upcoming events in a color-coded format using ANSI escape sequences. The default is events in the next seven days, but you can specify a different value.
![Show-TickleEvent](assets/show-tickleevent.png)
- Events due in the next twenty-four hours will be displayed in red.
- Events due in forty-eight hours or less will be shown in yellow.For more information, please read the [About](docs/about_MyTickle.md) help topic.
## Related Modules
You might also be interested in these PowerShell modules:
- Manage tasks and To-Do items with the [PSWorkItem](https://github.com/jdhitsolutions/PSWorkItem) module.
- Display a calendar in the PowerShell console with the [PSCalendar](https://github.com/jdhitsolutions/PSCalendar) module.