-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix 404 handling #65 #57 #66
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM python:3.10-alpine | ||
WORKDIR /app | ||
RUN pip3 install pypowerwall==0.7.5 bs4 | ||
RUN pip3 install pypowerwall==0.7.6 bs4 | ||
COPY . . | ||
CMD ["python3", "server.py"] | ||
EXPOSE 8675 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="refresh" content="5;url=https://github.com/jasonacox/pypowerwall"> | ||
<meta name="description" content="Python module to interface with Tesla Energy Gateways for Powerwall and Solar Power Data."> | ||
<meta name="keywords" content="Tesla, Powerwall, Solar, Energy, Gateway, Python, API, Module, Library, Open Source"> | ||
<meta name="author" content="Jason A. Cox"> | ||
<meta name="robots" content="index,follow"> | ||
<title>pyPowerwall</title> | ||
<style> | ||
body { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: space-between; | ||
min-height: 100vh; | ||
margin: 0; | ||
overflow: hidden; /* Prevent shapes from overflowing the window */ | ||
} | ||
|
||
.container { | ||
text-align: center; | ||
margin: auto; /* Center container horizontally */ | ||
} | ||
|
||
.title { | ||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
font-size: 3em; | ||
font-weight: bold; | ||
margin-bottom: 20px; /* Add some space between the title and the description */ | ||
} | ||
|
||
.description { | ||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
font-size: 1.5em; | ||
font-weight: lighter; | ||
color: gray; | ||
margin-bottom: 20px; /* Add some space between the description and the timer */ | ||
} | ||
|
||
.timer { | ||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
font-size: 1.2em; | ||
color: red; | ||
} | ||
|
||
.tiny-text { | ||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; | ||
font-size: 0.8em; | ||
position: fixed; | ||
bottom: 0; | ||
width: 100%; | ||
text-align: center; | ||
background-color: #f0f0f0; /* Background color for better visibility */ | ||
padding: 5px; | ||
} | ||
|
||
.shape { | ||
position: absolute; | ||
width: 20px; | ||
height: 20px; | ||
background-color: green; | ||
border-radius: 50%; | ||
animation: float 5s infinite linear; /* Adjust animation duration as needed */ | ||
} | ||
|
||
@keyframes float { | ||
0% { | ||
transform: translateY(0) translateX(-50vw); | ||
} | ||
25% { | ||
transform: translateY(100vh) translateX(-25vw); | ||
} | ||
50% { | ||
transform: translateY(0) translateX(0vw); | ||
} | ||
75% { | ||
transform: translateY(100vh) translateX(25vw); | ||
} | ||
100% { | ||
transform: translateY(0) translateX(50vw); | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="title">pyPowerwall</div> | ||
<div class="description">Python module to interface with Tesla Energy Gateways for Powerwall and Solar Power Data.</div> | ||
<div class="timer" id="countdown">5</div> | ||
</div> | ||
|
||
<div class="tiny-text"> | ||
(c) 2024 by Jason A. Cox - Open Source Project - <a href="https://github.com/jasonacox/pypowerwall" target="_blank">https://github.com/jasonacox/pypowerwall</a> | ||
</div> | ||
|
||
<!-- Animated shape(s) --> | ||
<div class="shape"></div> | ||
|
||
<script> | ||
// Countdown timer | ||
let countdownElement = document.getElementById("countdown"); | ||
let countdown = 5; | ||
|
||
function updateCountdown() { | ||
countdownElement.textContent = countdown; | ||
countdown--; | ||
|
||
if (countdown < 0) { | ||
clearInterval(timerInterval); | ||
countdownElement.textContent = "Redirecting..."; | ||
} | ||
} | ||
|
||
let timerInterval = setInterval(updateCountdown, 1000); | ||
</script> | ||
</body> | ||
</html> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Simple landing redirect page for pypowerwall.com. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A 404 status response for an API call will now result in a
None
response and log a debug message.