| .gitignore | Initial import | |
| cpanfile | Initial import | |
| cpanfile.snapshot | Initial import | |
| LICENSE | Initial import | |
| phap | Cleanup & set shading for alternative times in HTML | |
| README.md | Initial import | |
PHArma Planner
Producing schedules to take pills/medications.
Start from a simple JSON description (example: my-meds.json):
{
"title": "Piano terapeutico Foo Bar",
"since": "2025年09月23日",
"plan": [
"Foobarin at 7",
"Bazzarol at 8 20",
"Galooky on tue and fri at 9 and 21",
{
"title": "Barfodol",
"schedule": "21",
"since": "2025年09月23日",
"before": "2025年10月14日"
}
]
}
Generate a simple HTML table with hours as rows and days as columns:
# non-option arguments can be individual dates or a range of offset
# since today. The next command line prints out a full week mon-sun
# starting on 2025年09月22日
phap -p my-meds.json --format html 2025年09月22日 0..5 > my-meds.html
INSTALLATION
Needs perl at least version 5.24. Has a cpanfile, so look at
Installing Perl Modules.
COPYRIGHT & LICENSE
The contents of this repository are licensed according to the Apache
License 2.0 (see file LICENSE in the project's root directory):
Copyright 2025 by Flavio Poletti (flavio@polettix.it).
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.