helenzhou6 / weather-to-wear Goto Github PK
View Code? Open in Web Editor NEWClothing recommendations based on an inputted location's weather
Home Page: https://weather-2-wear.herokuapp.com/
Clothing recommendations based on an inputted location's weather
Home Page: https://weather-2-wear.herokuapp.com/
Tailor clothing recommendations based on response.daily
:
response.daily.summary
and based on icon:{
clear-day: "โ๏ธ",
clear-night: "๐",
rain: "โ๏ธ",
snow: "โ๏ธ",
sleet: "๐จ",
wind: "๐จ",
fog: "๐ซ",
cloudy: "โ๏ธ",
partly-cloudy-day: "๐ค",
partly-cloudy-night: "๐"
}[response.daily.data.icon]
${response.daily.data.precipProbability * 100}% chance of ${response.daily.data.precipType}
Temperatures between ${response.daily.data.temperatureLow / 32} to ${response.daily.data.temperatureHigh / 32}
If low temperature < 5 && high temperature < 20 -> message: 'Wear a thick jumper', if low temperature > 20 && high temperature > 20 -> 'Wear shorts
If precipType > 50% -> ' and take your chances and don't bring a ${response.daily.data.precipType} jacket!' If precipType > 50% -> ' and bring a ${response.daily.data.precipType} jacket just in case (or take a chance on the wild side!)' -> If precipType > 80% -> ` and wear your ${response.daily.data.precipType} jacket!
pass down function that resets the location in <Form>
Weather-to-wear/src/utilities/genClothingMsg.js
Lines 2 to 10 in aaa0647
Weather-to-wear/src/utilities/genCoatMsg.js
Lines 2 to 8 in aaa0647
Have a photo background:
mix blend mode
Look at the React boilerplate repo for set up
Add testing!
index.js
for all utility functionsnavigator.geolocation
function from form.js
- should be in utility folderindex.js
of backendLook into best file structure, and maybe use https://www.npmjs.com/package/concurrently
to run both of them
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.