erl67 / weather-time-machine Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://docs.google.com/presentation/d/1rdlJUdPmS7-tZhyxOATN5qBVQP0CjV-z3evaxgQuwSc/edit?usp=sharing
Home Page: https://docs.google.com/presentation/d/1rdlJUdPmS7-tZhyxOATN5qBVQP0CjV-z3evaxgQuwSc/edit?usp=sharing
On database side, the username and password are both limited to 20 characters, so if you try to register with more it will fail, however the failure will only return null and a good registration returns the User Object, so I'm not sure how to pass those Exceptions. It would probably involve reworking the whole method.
Is there a way you restrict the length of those fields to 20 on the JS side?
I'm going to see if I can pull an image from the geo search, make it faded and drop it in as a background to the chart. This is purely eye candy and I'll see if it improves the outcome.
When switching between the Events and Graph panels, the historical data box gets hidden after switching back to its panel.
Right now, to input using either field I use the Enter key but I think we should have working buttons too since our app is mobile friendly (and props for being mobile friendly, I'm betting the other teams are not)
Occasional CORS issues when fetching historical events. To fix this we would need to make a servlet that gets the historical events like the WeatherServlet.
Not super high priority because it usually works and only requires a page refresh to fix when it doesn't.
EventServlet
that returns the historical events. Could essentially copy the WeatherServlet
Clicking to log the user out doesn't actually delete the cookie needed to successfully log them out.
Right now the page just reloads if something is unsuccessful, it would be better if they could display an error message - either generic or specific to what actually went wrong.
I tried to fix it in the facade by checking the history object against the database via:
try {
if (em.find(WxHist.class, history) == null) {
em.persist(history);
return true;
}
}
But that prevented anything including new searches to be added, it always returned false with this:
$rootScope.displayError('Unable to add query to your history');
But that didn't work and keeps returning an error. Not sure why the objects are the same.
There should be away to change the JS where clicking on a previous search doesn't call /HistoryServlet
After making a failed search followed by a good one the red box with the error didn't go away. I did a few more good searches and the box never left.
Show the user's previous queries that were stored in the database.
Right now we are not checking to make sure that the date and location combinations we are querying are actually returning weather data.
Ideally we would detect that no data is available and try a different date, but we could also just show an error message
When I call the history servlet it just returns the last entry saved in the database for the user over and over again.
[
{"UID":-1,"Title":"Pittsburgh, PA 15213, USA","Latitude":"40.4379259","Id":130,"Longitude":"-79.9556424","Date":"Sun Apr 16 00:00:00 EDT 2000","Name":"TestAccount"},
{"UID":-1,"Title":"Pittsburgh, PA 15213, USA","Latitude":"40.4379259","Id":130,"Longitude":"-79.9556424","Date":"Sun Apr 16 00:00:00 EDT 2000","Name":"TestAccount"},
{"UID":-1,"Title":"Pittsburgh, PA 15213, USA","Latitude":"40.4379259","Id":130,"Longitude":"-79.9556424","Date":"Sun Apr 16 00:00:00 EDT 2000","Name":"TestAccount"}
]
It returned more than 3 copies though. I think it is returning the right number of things, but they are all identical...
Obviously it should be returning each of the elements the elements in the database for the user instead.
We need to connect the graph to the Dark Sky API data so that it shows real data.
Maybe there is feedback for this already but I just want to make sure the user knows they can't enter just any year.
This isn't necessarily an issue but just some stuff to think about.
I think I figured out a way to do this. Working on it today.
I think this is possible, looks like canvas chart has a function I can learn from.
And there is this for Canvas
So I can try this tonight. It will only be cosmetic and shouldn't break anything. I'll contain any changes I make to simple commits so that if anything happens, we can revoke them.
This might not be an option but I thought it would be helpful if the user can enter a title to include with their search to give it meaning. Like if I look up April 15, 1947 and Brooklyn, NY, USA, I would like to give it the title something like "Jackie Robinson Debuts for the Dodgers."
Also after I did a search and logged out the page didn't change. It should probably reload to a clean page for security reasons.
This is something I forgot to do. I have the array already I just need to add it in.
Right now for me the history api shows events from like 1100. Since the weather api cannot go that far back I suggest we limit the history to a certain decade.
It might just be me but when I click on the location button (with the pin drop icon) I expected it to do the weather search, but it doesn't seem to.
Maybe it's just me but on the desktop the container for the input is really tall and takes most of the screen when I think it would be better for it to be narrow so that the user doesn't have to scroll down to see the history and graph. I started looking around to see how to adjust it but so far I'm not sure how.
Since the raw data is only relevant to the graph/chart, we should move it there or just get rid of it if it's not a feature.
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.