created new template

This commit is contained in:
Nico Melone
2025-01-21 17:55:42 -06:00
parent a4b3737049
commit 93f5d8a33f
10 changed files with 45 additions and 10 deletions

Binary file not shown.

View File

@@ -295,9 +295,44 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": 15,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'IHDR' 16 13\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'sRGB' 41 1\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'gAMA' 54 4\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'pHYs' 70 9\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'IDAT' 91 17733\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'IHDR' 16 13\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'pHYs' 41 9\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'iTXt' 62 1489\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'IDAT' 1563 8215\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'IHDR' 16 13\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'sRGB' 41 1\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'eXIf' 54 132\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'pHYs' 198 9\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'IDAT' 219 16384\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'IHDR' 16 13\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'sRGB' 41 1\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'gAMA' 54 4\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'pHYs' 70 9\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'IDAT' 91 17733\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'IHDR' 16 13\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'pHYs' 41 9\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'iTXt' 62 1489\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'IDAT' 1563 8215\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'IHDR' 16 13\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'sRGB' 41 1\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'eXIf' 54 132\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'pHYs' 198 9\n",
"2025-01-21 16:40:11 - DEBUG - PngImagePlugin - 198 - STREAM b'IDAT' 219 16384\n"
]
}
],
"source": [
"# Create a Pandas Excel writer using XlsxWriter as the engine.\n",
"shutil.copyfile('/Users/nico/Documents/GitHub/ThingsBoard/EKKO Reports/thunderbirdfs-daily-report/ACW Daily Report Template.xlsx', f\"/Users/nico/Documents/test/Thunderbird_{dt.today().strftime('%Y-%m-%d')}.xlsx\")\n",
@@ -341,16 +376,16 @@
"chart.x_axis.scaling.min = datetime_min\n",
"chart.x_axis.scaling.max = datetime_max\n",
"chart.x_axis.number_format = 'hh:mm'\n",
"reportsheet[\"B3\"].value = dt.fromtimestamp(getTime(time)[0]/1000).strftime('%m/%d/%Y')\n",
"reportsheet[\"B4\"] = \"Test Well Name\"\n",
"reportsheet[\"B5\"] = \"Test Well Lead\"\n",
"reportsheet[\"B6\"] = \"Test COPA Lead\"\n",
"reportsheet[\"B7\"] = \"Test Job Name\"\n",
"reportsheet[\"B4\"].value = dt.fromtimestamp(getTime(time)[0]/1000).strftime('%m/%d/%Y')\n",
"reportsheet[\"B5\"] = \"Test Well Name\"\n",
"reportsheet[\"B6\"] = \"Test Well Lead\"\n",
"reportsheet[\"B7\"] = \"Test COPA Lead\"\n",
"reportsheet[\"B8\"] = \"Test Job Name\"\n",
"\n",
"reportsheet[\"B10\"]= \"Test Events or Spills\"\n",
"reportsheet[\"B12\"] = \"Test Issues\"\n",
"reportsheet[\"B11\"]= \"Test Events or Spills\"\n",
"reportsheet[\"B13\"] = \"Test Issues\"\n",
"\n",
"reportsheet[\"E4\"] = \"A very large summary test text to put into perspective the amount\\n of work that is having to be done to this sheet\\n for this to work\"\n",
"reportsheet[\"E5\"] = \"A very large summary test text to put into perspective the amount\\n of work that is having to be done to this sheet\\n for this to work\"\n",
"# Close the Pandas Excel writer and output the Excel file.\n",
"writer.close()\n"
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB