Comments (1)
script for loop / waitime
`
from datetime import datetime
from time import sleep
import os
intervall = int(os.environ['INTERVALL'])
try:
while True:
payload = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
print("Ausgeführt am: " + payload)
os.system("python3 ./nests.py")
sleep(intervall * 60 * 60)
finally:
print("Script Ende");
`
Dockerfile
`
FROM python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "./start.py"]
`
docker-compose.yml
`
nestw:
build: ./nestwatcher
container_name: NestWatcher
restart: unless-stopped
environment:
INTERVALL: 6
volumes:
- ./nestwatcher/nest.json:/usr/src/app/nest.json
- ./nestwatcher/config:/usr/src/app/config
`
from nestwatcher.
Related Issues (20)
- payload too large HOT 3
- Add Nest Report for Telegram HOT 2
- Timestamp Suggestion HOT 1
- Better Emoji handling
- Option to remove outdated nests from the DB
- Poracle Webhooks
- Only Send Webhooks when nest is being updated HOT 1
- Missing Tags HOT 1
- error when all nests fall below min_avg
- 'ascii' codec can't decode byte 0xe2 in position 19376: ordinal not in range(128) HOT 2
- next_migration dts not working HOT 1
- tools.py option 3 not actually updating area_data json files HOT 1
- Event loop is closed HOT 1
- Creating emojis stuck HOT 3
- add a working discord link to the readme and wiki
- Maptiles not posting
- File "nests.py", line 181, in <module> with open(config.json_path, "w+") as file_: HOT 2
- Nest Migration Outdated
- -t or --hours Argument Not Working As Intended HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestwatcher.