Skip to content

This Python script retrieves daily weather data from a Firebird SQL Database and outputs a monthly report in Google Sheets, including temperatures, rainfall, and the current temperature at 7 AM.

Notifications You must be signed in to change notification settings

smilingfaceme/Weather-MonthlyReporter

Repository files navigation

Weather Report Generator

This script is python script to extract data from Firebird Database for weather measurement. Firebird SQL Database contains my weather data. This scripti queries the database and creates a monthly report. The report's contents must be the daily maximum and minimum temperature for the prior 24 hours ending at 7AM. Also, rainfall for the past 24 hours ending at 7AM as well as the current temperature at 7AM. And this script ouput results of query on google sheets as report format.

Step

Step 1: Install Firebird database

Step 2: Set Google Drive APIs

    1. Head over to the Google API Console.
    1. Create a new project by selecting My Project -> + button
    1. Search for 'Google Drive API', enable it.
    1. Head over to 'Credentials' (sidebar), click 'Create Credentials' -> 'Service Account Key'
    1. Create Key as JSON format and Save.
    1. Copy Json file as name "cred.json"

Please show here [https://www.geeksforgeeks.org/how-to-automate-google-sheets-with-python/]

Step 3: install python library

pip install -r requirements.txt

Make .exe file

pyinstaller.exe --onefile --hidden-import plyer.platforms.win.notification --add-data "src/assets/*;src/assets/" --add-data "src/*;src/" --icon icon.ico --noconsole Settings.py

Deploy this project

After making the exe file, copy the ./dist/Settings.exe file to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup

Check out

Check out on your google drive

enter image description here

Seeting Dashboard

enter image description here

Output CSV format

enter image description here

Output Google Sheet

enter image description here

Set auto update schedule

enter image description here enter image description here

About

This Python script retrieves daily weather data from a Firebird SQL Database and outputs a monthly report in Google Sheets, including temperatures, rainfall, and the current temperature at 7 AM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages