Code Monkey home page Code Monkey logo

daily_weather_report's People

Contributors

jorgemiguelgomes avatar oldmetalmind avatar tomahock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

daily_weather_report's Issues

[Feature] Create RGB color lists

WHAT IS NEEDED

Based on the below image pick every individual color, for each category, and create a list
Screenshot 2022-03-30 at 12 57 45

Example

colors_rain_accu =[(112,112,164),(138,147,189),(163,175,213),(185,194,226)]

How

Use a tool like "Color Pick Eyedropper", or any other, and retrieve the RGB value for each group
Add lists to app.py
Empty lists already have been created from line 193 to line 197

NOTES

Temp Max and Humidity Min have the same colors
Temp Min and Humidity Max have the same colors

[Feat] Integrate with VOSTia

After #4 we will need to integrate this on VOSTia's daily workflow, so that the image - and accompanying text - is posted on Twitter.
Facebook? If possible.

[Feat] Create dictionary with stations from Madeira and Azores

Problem

In order to be able to create three separate reports we will need to create three new dataframes:

  • one for the Azores
  • one for Madeira
  • one for mainland Portugal

Suggestion

Try to determine location by longitude

Sources

Coordinates can be fetched from here (IPMA API) or here (Fogos API v2)

[Feat] Put metric indicators

Script needs to print

  • "ÂēC" for temperature,
  • "Km/h" for wind gusts,
  • "mm" for rain accumulation

This should also be done within the loops

[Feature] Create loop function to generate variables

The values and station names are now being calculated individually

# FIRST VALUE 
row = 0 
station_01 = four_temp_max.iloc[row].stationId
url_bar = f"https://api.fogos.pt/v2/weather/stations" \
f"?id={station_01}" 
# Get response from URL 
response_id = requests.get(url_bar)
# Get the json content from the response
json_id = response_id.json()
df_id = pd.json_normalize(json_id)
station_name_01 = str(df_id.location.values[0])
station_temp_01 = str(four_temp_max.iloc[row].temp_max)

Create an example loop function to be implemented for all needed values

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤ī¸ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.