You are browsing as a guest. Sign up (or log in) to start making projects!

7h 32m 27s logged

Working Error Pages, User Updates, Logouts, Weather Post/Weather History and a (partial) public dashboard

Been a couple of days guys, here is what I have been up to:

Error Pages:

Whenever there is some sort of error such as 404 (not found), 401 (unauthorized), 403 (Forbidden), you will get forwarded to error pages. These pages will prompt you to return or log in, depending on the error.

User Updates:

Admins can know easily update usernames, passwords, roles, etc. However this is still in the API and not a webpage yet.

Logouts:

When you sign in, your menu bar will no longer have a sign in option (shocker) and has an option to log out. This “new” menu bar is created using jinja2 if-statements in the layout.html.

Weather/Weather History:

A Weather Underground Scraper (I made this for a seperate project, check it out: https://github.com/Krupamc/weather_underground_datascraper) gathers weather data for each station (returns a null filled json if station is offline) and posts it to the API. The API stores it in the database. We can access the current weather for each station as a well as the history. The default history is 20 entries but can be extended with queries.

Public Dashboard:

Now this is the fun one. This pulls the current status, weather values, time (as a date and timestamp in a readable format), as well as wind direction in label format (e.g. NNE) and sends it to the public dashboard. The dashboard then takes the values and puts them in an easy format. It is not finished, I plan to have pressure, temperature, and wind widgets that change based on the current values.

0
1

Comments 0

No comments yet. Be the first!