thanks for the reply yes i had already executed it via a command line. i called this a terminal in my post. The scripts are provided with extensive log options. When executing the script in a command line i get all ok messages that i expect and the script does what it should do. If i do it via ...
I hope I'm asking this question in the right place. I have a problem with starting a script from dzvents. The script won't start no matter what I've done so far, even consulting ai hasn't provided a solution. (I end up in a cricel of solutions). This is my latest version of the script. return { on ...
I did something wrong (as usually) because this is the output I get python3 WeatherAlert.py 2024-03-07 11:31:31: INFO : <module> : 92 : ==================================================== 2024-03-07 11:31:31: INFO : <module> : 93 : ================== Script started ================== 2024-03-07 11 ...
I have continued to improve my script from my Jan 4, 2024 post. A number of changes and improvements made include: - the time period of the warning is now also visible - the script runs in an infinite loop and does not need to be started periodically - A KNMI file is only downloaded if a new file is ...
It may be true that you do not see any text. First, I see from your screenshot that you used a text device to pass on the warnings. The script assumes that a "general Alert" device has been created. You will then also see a colored triangle, green, yellow, orange or red respectively ...
Yeh i make it run :lol: :lol: After a lot of fiddling around how to read an XML file (I had no knowledge of it at all), I managed to read and parse the data from the weather warning file. The problem was to only extract the data that was relevant for a province and not the data for the entire ...
Found some time to work on the weather warnings. In my previous post I showed a script that downloads a text file from the KNMI data platform with the latest weather warning. After some searching I discovered that this text was extracted from the xml file from the same dataset. I can also do what ...
Still found some time to get started with the code that Chat gpt provided. As is often the case, it is of no use to you, but it does put you on the track. :D Found an example on the site https://developer.dataplatform.knmi.nl/open-data-api# that retrieves the last file of the warning dataset. This ...
asked the next question in chat gpt Write a python script to retrieve the weather warning for South Holland from the KNMI data platform api.dataplatform.knmi.nl the answer was Of course, here's an example of how you can do that using Python and the `requests` library to retrieve data from the KNMI ...
hello fire wizard Your script runs in blocks. I'm a bigger fan of dzvents for a variety of reasons. The script you made inspired me to achieve the same result in dzvents. I've created a new topic to avoid confusion "KNMI weather alert with dzvents" Of course I mentioned you as the source regards ...
Inspired by the block script from FireWizard I made a script in dzvents to bring the weather alarm from the KNMI to domoticz You can request the local weather from KNMI via an API, see https://weerlive.nl/delen.php All data is very usable and on this forum you can find scripts that process the data ...
To manage the log files that are created I have created a logrotate file. The purpose of this is to archive the log fole solis.log daily and keep it for a maximum of 7 days. For the file solis.crontab.log this is monthly with a month retention To make the logrotate work you can do the following ...
Solis has decided to discontinue the m.ginlong.com site. I always used this site to retrieve my data for domoticz via an API. Now that this site is going to disappear, I had to look for another method to retrieve my desired data. Solis has started a new site called soliscloud. You can also retrieve ...
Reading my post the following thought came to mind; maybe the problem can be avoided by not executing the whole script between sunset and sunrise by adjusting the trigger with: timer = {'every 5 minutes between sunrise and sunset'}, If this prevents the problem, then we know a little more where to ...
@Toulon7559 I have read the commented thread. I got a lot of inspiration and code from this thread to make my script The inverter used is a solis-S5 mini 700W Below my script a lot of inspiration and code examples are taken from the internet a little explanation It is intended that when the solar ...
Thanks again for the response I've been playing around with electricity for a while. Basically it does what I want. Only the daily yield is a problem. The data that I collect once every 5 min only contains the daily yield (besides a lot more info) and not the total yield. Now, of course, I can ...
@waltervl thanks for your reaction I use a managed counter because it can be adjusted to your own liking. I'll give the Electricity one a try. The problem is that the div wiki of domoticz give different explanations https://www.domoticz.com/wiki/Dummy_for_virtual_Switches#Electricity_.28instant_and ...
I am busy reading the data from my solis inverter and saving it in Domoticz. I use a script in dzventz for this. I'm so far that I can read that correctly, only processing in a managed counter does not give the desired result. Even after several searches on the internet I have not come up with a ...